[win] Scribes presumes paths to be unix -like

Bug #480179 reported by Sir.Rainbow
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scribes
Triaged
Wishlist
Unassigned

Bug Description

Scribes makes the assumption to run on Linux, which is all good and well so long you are on Linux..
But on Windows everything fails..

Here the error:

PS E:\marco\src\scribes> python scribes.py
dbus daemon already exists
Traceback (most recent call last):
  File "scribes.py", line 11, in <module>
    main(argv[1:])
  File "E:\marco\src\scribes\SCRIBES\Main.py", line 7, in main
    __open(argv)
  File "E:\marco\src\scribes\SCRIBES\Main.py", line 20, in __open
    Manager().open_files(uris)
  File "E:\marco\src\scribes\SCRIBES\InstanceManager.py", line 8, in __init__
    Manager()
  File "E:\marco\src\scribes\SCRIBES\SaveProcessInitializer\Manager.py", line 15, in __init__
    Initializer(self)
  File "E:\marco\src\scribes\SCRIBES\SaveProcessInitializer\Initializer.py", line 6, in __init__
    self.__start()
  File "E:\marco\src\scribes\SCRIBES\SaveProcessInitializer\Initializer.py", line 18, in __start
    spawn_async([python, module, python_path], working_directory=folder)
gobject.GError: Failed to execute child process (No such file or directory)

I think the problem is pretty general, we have to substitute things like:

folder_ = home_folder + "/Desktop"

to
import os
folder_ = os.path.join(home_folder, "Desktop")

or :
from os.path import join
folder_ = join(home_folder, "Desktop")

Tags: win
tags: added: win
Revision history for this message
Mystilleef (mystilleef) wrote :

Fixed in build 507

Changed in scribes:
status: New → Fix Released
assignee: nobody → Mystilleef (mystilleef)
Revision history for this message
Sir.Rainbow (sir-rainbow) wrote :

I still have the same error, because of python_path (still unix slashes, on windows Python path is usually C:\PythonXX , with XX Version number (here for ex 25)) and of some unix paths in \SCRIBES\SaveProcessInitializer\Initializer.py, which i fixed... I'll upload a patch within a moment...

Changed in scribes:
status: Fix Released → Fix Committed
Revision history for this message
Sir.Rainbow (sir-rainbow) wrote :

The fix for python_path is suboptimal, it should use some sort of platform-independent way to get that folder.. (I don't kown if python provides it), and I don't know if it map to the main folder of python on Windows, what's in that folder? With this fix the bug goes away.

Revision history for this message
Sir.Rainbow (sir-rainbow) wrote :
Revision history for this message
Mystilleef (mystilleef) wrote :

I'm reopening this. I'll look at the patch soon.

Changed in scribes:
status: Fix Committed → In Progress
Revision history for this message
Mystilleef (mystilleef) wrote :

I think I've addressed most of this. If not please let me know. How's this port coming along.

Revision history for this message
Sir.Rainbow (sir-rainbow) wrote :

The port is not coming along at all, because i've not had any time to work on it (i'm studiyng math at a university and don't really have much free time), and I don't know how much still needs to be done. I think the path problem is now resolved, what comes next is
Bug #481480, the one on bindtextdomain ... The next thing I'll do is to make a step-by-step instruction on how to come to the point where you get that msg, so that somebody could takeover the work. So don't expect too much from me, but I hope to still do something for Scribes, maybe in the summer.

Revision history for this message
Mystilleef (mystilleef) wrote :

I understand. Thanks for initiating the project. Look forward to your contributions in the future when you're less busy.

Mystilleef (mystilleef)
Changed in scribes:
status: In Progress → Triaged
assignee: Mystilleef (mystilleef) → nobody
Mystilleef (mystilleef)
Changed in scribes:
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.