Re: [python(x,y)] Installation problem Windows 7 32 bit

101 views
Skip to first unread message

Jed Ludlow

unread,
Feb 4, 2013, 3:02:22 PM2/4/13
to Python(x,y) List
On Sun, Feb 3, 2013 at 2:16 PM, Michael Swanson <mickey....@gmail.com> wrote:
Hi
Been trying to get this running for a few days now.
Upon completion of a full install as administrator, I have the python shortcut on desktop but it does not connect. 
I tried in interactive mode, and it seems I have a permissions problem.'
Could someone please help. 
This is the error..

"Traceback (most recent call last):
  File "C:\Python27\Scripts\xyhome.pyw", line 20, in <module>
    from xy import xyhome
  File "C:\Python27\lib\site-packages\xy\xyhome.pyw", line 28, in <module>
    from xy.config import (CONF, STARTUP_PATH, LOG_PATH, PLUGINS, XY_VERSION,
  File "C:\Python27\lib\site-packages\xy\config.py", line 33, in <module>
    CONF = UserConfig('xy', defaults=DEFAULTS, version=__version__, subfolder='.
xy')
  File "C:\Python27\lib\site-packages\xy\userconfig.py", line 105, in __init__
    self.__save()
  File "C:\Python27\lib\site-packages\xy\userconfig.py", line 139, in __save
    conf_file = file(self.filename(),'w')
IOError: [Errno 13] Permission denied: u'C:\\Users\\Michael\\.xy\\.xy.ini'
>>>


Michael,

We experienced a similar bug [1] on the Spyder project which uses very similar code to manage user configuration. As an experiment, if you are willing to replace userconfig.py at this location

C:\Python27\lib\site-packages\xy\userconfig.py

with the attached (make a backup copy first!) that might get you up and going. If this works for you, reply back and I'll submit an issue with the solution.

Regards,

Jed

userconfig.py

Michael Swanson

unread,
Feb 5, 2013, 2:42:55 PM2/5/13
to pyth...@googlegroups.com
Hi Jed
Thanks for the response.
I used the your suggested userconfig.py and still cannot open. 
The positive news is that i have a different error now. This is now my new output.

Traceback (most recent call last):
  File "C:\Python27\Scripts\xyhome.pyw", line 20, in <module>
    from xy import xyhome
  File "C:\Python27\lib\site-packages\xy\xyhome.pyw", line 28, in <module>
    from xy.config import (CONF, STARTUP_PATH, LOG_PATH, PLUGINS, XY_VERSION,
  File "C:\Python27\lib\site-packages\xy\config.py", line 25, in <module>
    from xy.userconfig import UserConfig, get_home_dir
  File "C:\Python27\lib\site-packages\xy\userconfig.py", line 145
    with open(self.filename(), 'w') as configfile:
    ^
IndentationError: unexpected indent
>>>

Regards

Michael

Jed Ludlow

unread,
Feb 5, 2013, 4:18:31 PM2/5/13
to Python(x,y) List
On Tue, Feb 5, 2013 at 12:42 PM, Michael Swanson <mickey....@gmail.com> wrote:
Hi Jed
Thanks for the response.
I used the your suggested userconfig.py and still cannot open. 
The positive news is that i have a different error now. This is now my new output.

Traceback (most recent call last):
  File "C:\Python27\Scripts\xyhome.pyw", line 20, in <module>
    from xy import xyhome
  File "C:\Python27\lib\site-packages\xy\xyhome.pyw", line 28, in <module>
    from xy.config import (CONF, STARTUP_PATH, LOG_PATH, PLUGINS, XY_VERSION,
  File "C:\Python27\lib\site-packages\xy\config.py", line 25, in <module>
    from xy.userconfig import UserConfig, get_home_dir
  File "C:\Python27\lib\site-packages\xy\userconfig.py", line 145
    with open(self.filename(), 'w') as configfile:
    ^
IndentationError: unexpected indent
>>>

Regards

Michael


Well, that's embarrassing---an indentation error, which I myself injected by misusing my text editor. Sorry about that, Michael. The attached will resolve the indentation problem. Let's hope is solves the permissions problem, too.
userconfig.py
Reply all
Reply to author
Forward
0 new messages