can't start on my Windows 7 64bit

Bug #880452 reported by Edwin Yip
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
DreamPie
Incomplete
Undecided
Unassigned

Bug Description

I really want to be able to use dreampie!

error message:

Variables:
  File "dreampie.py", line 4, <module>()
  File "dreampielib\gui\__init__.pyc", line 1146, main()
  File "dreampielib\gui\__init__.pyc", line 160, __init__(self=DreamPie(path..."window_main"), pyexec='C:\\Python27\\python.exe')
  File "dreampielib\gui\__init__.pyc", line 995, configure(self=DreamPie(path..."window_main"))
  File "dreampielib\gui\tags.pyc", line 296, apply_theme_source(sourcebuffer=<gtksour...290c160)>, theme={('bracket-match', 'bg', 'color'): 'darkblue', ('bracket-match', 'bg', 'isset'): True, ('bracket-match', 'fg', 'color'): 'white', ('bracket-match', 'fg', 'isset'): False, ...})

Traceback (most recent call last):
  File "dreampie.py", line 4, in <module>
  File "dreampielib\gui\__init__.pyc", line 1146, in main
  File "dreampielib\gui\__init__.pyc", line 160, in __init__
  File "dreampielib\gui\__init__.pyc", line 995, in configure
  File "dreampielib\gui\tags.pyc", line 296, in apply_theme_source
TypeError: GtkSourceBuffer.set_style_scheme() argument 1 must be gtksourceview2.StyleScheme, not None

Revision history for this message
Edwin Yip (edwin-yip) wrote :

Hi! I found the source of the problem - my windows user name is in Chinese! It's ok when logged in as another windows account which is in pure English...

Revision history for this message
Edwin Yip (edwin-yip) wrote :

This problem maybe caused by the very same bug I found in the standard Python lib ntpath.py, check it here:http://code.google.com/p/spyderlib/issues/detail?id=812

Revision history for this message
Edwin Yip (edwin-yip) wrote :

update: changing the system's TEMP and TMP environment variables will solve the problem.

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

Thanks for investigating this!

I have an idea: Can you try to change the line in dreampielib/gui/tags.py

    ssm.set_search_path([dir])

to:

    ssm.set_search_path([dir.encode('utf8')])

and see if it works?

The function _make_style_scheme creates a temporary directory, and I guess that it is made inside you home directory. I think that the problem is that the function set_search_path has a problem with accepting the directory name, because of the characters it contains or the encoding. Perhaps encoding it in UTF8 (which is what GTK functions expect, I believe) will help.

Thanks,
Noam

Changed in dreampie:
status: New → Incomplete
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.