[Python-bugs-list] [ python-Bugs-509117 ] encoding error when joining path

noreply@sourceforge.net noreply@sourceforge.net
Sun, 27 Jan 2002 03:30:13 -0800


Bugs item #509117, was opened at 2002-01-27 03:22
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=509117&group_id=5470

Category: Distutils
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Laurent Pointal (pointal)
Assigned to: Nobody/Anonymous (nobody)
Summary: encoding error when joining path

Initial Comment:
[platform]
Problem on Python 2.1.1 and Python 2.2.
Platform 
Windows 2000 SP2, french version.
With MSVC++6 
SP4.

[seealso]
It looks like to be a non-us platform problem, 
see:
http://mail.python.org/pipermail/python-list/2002-
January/083903.html

[description]
While installing 
StandaloneZODB, python setup.py build ended with the followiong 
traceback:
...[zipped many file copying & Co]...
copying 
zdaemon\ZDaemonLogging.py -> build\lib.win32-
2.1\zdaemon
copying zdaemon\__init__.py -> build\lib.win32-
2.1\zdaemon
running build_ext
Traceback (most recent call 
last):
  File "setup.py", line 108, in ?
    headers = 
['ExtensionClass/src/ExtensionClass.h', 
'ZODB/cPersistence.h'],
  File 
"t:\dev\python21\lib\distutils\core.py", line 138, in setup
    
dist.run_commands()
  File 
"t:\dev\python21\lib\distutils\dist.py", line 899, in 
run_commands
    self.run_command(cmd)
  File 
"t:\dev\python21\lib\distutils\dist.py", line 919, in 
run_command
    cmd_obj.run()
  File 
"t:\dev\python21\lib\distutils\command\build.py", line 106, 
in run
    self.run_command(cmd_name)
  File 
"t:\dev\python21\lib\distutils\cmd.py", line 328, in 
run_command
    self.distribution.run_command(command)
  File 
"t:\dev\python21\lib\distutils\dist.py", line 919, in 
run_command
    cmd_obj.run()
  File 
"t:\dev\python21\lib\distutils\command\build_ext.py", line 
230, in run
    force=self.force)
  File 
"t:\dev\python21\lib\distutils\ccompiler.py", line 957, in 
new_compiler
    return klass (verbose, dry_run, force)
  File 
"t:\dev\python21\lib\distutils\msvccompiler.py", line 220, 
in __init__
    os.environ['path'] = string.join(path,';')
  
File "t:\dev\python21\lib\string.py", line 128, in join
    
return sep.join(words)
UnicodeError: ASCII decoding error: 
ordinal not in range(128)




----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-01-27 03:30

Message:
Logged In: YES 
user_id=21627

Can you please enhance your local copy of
distutils/msvccompiler to add a line of

print repr(path)

immediately above line 220, and report the output?

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=509117&group_id=5470