os.path.expanduser on Windows: UnicodeEncodeError

2005-07-18 Thread Bob Swerdlow
My application is getting this error on Windows XP (works fine on Mac OS X) 
when it calls os.path.expanduser:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 
52-56: ordinal not in range(128)

The code was built with Python 2.3.4.

I found referenes to Path 957650, but I'm not familiar with how such fixes 
are processed.  Is there a patch I can add to fix this?  How do I know what 
version of Python it is fixed in - that is, will upgrading to Python 2.3.5 
fix this?

Thanks for your help,

Bob Swerdlow
VP Engineering
Goombah - Music Discovery
[EMAIL PROTECTED] 


-- 
http://mail.python.org/mailman/listinfo/python-list


py2app can't find boot_app.py

2005-03-14 Thread Bob Swerdlow
I'm trying to move my application from bundlebuilder to py2app.  I upgraded 
to PyObjC 1.2, which include py2app 1.7, but I got the following error.  I 
saw a note on the py2app site that earlier versions need to be removed 
before the upgrade, so I deleted the py2app directory and downloaded and 
installed it separately, but got the same result.  How do I get it to find 
this boot_app.py file?

Thanks,
Bob

Excerpts from the py2app run:

% python setup.py py2app
running py2app
...

Traceback (most recent call last):
   File /tmp/tmptCCn9S.py, line 218, in ?
 direct=1)
   File
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/py2app/py2app/util.py, line 208, in
byte_compile
 if force or newer(mod.filename, cfile):
   File
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/distutils/dep_util.py, line 22, in newer
 raise DistutilsFileError, file '%s' does not exist % source
distutils.errors.DistutilsFileError: file 'boot_app.py' does not exist
error: command '/usr/bin/python' failed with exit status 1



-- 
http://mail.python.org/mailman/listinfo/python-list