[NumPy-Tickets] [NumPy] #1601: distutils/ccompiler.py:68 UnicodeEncodeError on Python 3.2

NumPy Trac numpy-tickets@scipy....
Thu Sep 2 13:28:22 CDT 2010


#1601: distutils/ccompiler.py:68 UnicodeEncodeError on Python 3.2
-----------------------------+----------------------------------------------
 Reporter:  srid             |       Owner:  cdavid
     Type:  defect           |      Status:  new   
 Priority:  normal           |   Milestone:  2.0.0 
Component:  numpy.distutils  |     Version:  devel 
 Keywords:                   |  
-----------------------------+----------------------------------------------
 Python 3.2 py3k branch | Linux 64-bit (FC4) | GCC 4.0.x | numpy-1.5.0 |
 ATLAS

 {{{
 Running from numpy source directory.Traceback (most recent call last):
   File "setup.py", line 211, in <module>
     setup_package()
   File "setup.py", line 204, in setup_package
     configuration=configuration )
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/core.py", line 186, in
 setup
     return old_setup(**new_attr)
   File "/opt/ActivePython-3.2/lib/python3.2/distutils/core.py", line 149,
 in setup
     dist.run_commands()
   File "/opt/ActivePython-3.2/lib/python3.2/distutils/dist.py", line 919,
 in run_commands
     self.run_command(cmd)
   File "/opt/ActivePython-3.2/lib/python3.2/distutils/dist.py", line 938,
 in run_command
     cmd_obj.run()
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/command/build.py", line
 37, in run
     old_build.run(self)
   File "/opt/ActivePython-3.2/lib/python3.2/distutils/command/build.py",
 line 128, in run
     self.run_command(cmd_name)
   File "/opt/ActivePython-3.2/lib/python3.2/distutils/cmd.py", line 315,
 in run_command
     self.distribution.run_command(command)
   File "/opt/ActivePython-3.2/lib/python3.2/distutils/dist.py", line 938,
 in run_command
     cmd_obj.run()
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/command/build_src.py",
 line 152, in run
     self.build_sources()
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/command/build_src.py",
 line 169, in build_sources
     self.build_extension_sources(ext)
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/command/build_src.py",
 line 328, in build_extension_sources
     sources = self.generate_sources(sources, ext)
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/command/build_src.py",
 line 385, in generate_sources
     source = func(extension, build_dir)
   File "numpy/core/setup.py", line 399, in generate_config_h
     moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
   File "numpy/core/setup.py", line 41, in check_types
     out = check_types(*a, **kw)
   File "numpy/core/setup.py", line 294, in check_types
     res = config_cmd.check_type_size(complex_def,
 expected=2*expected[type])
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/command/config.py",
 line 236, in check_type_size
     headers, include_dirs, 'c')
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/command/config.py",
 line 99, in _compile
     (body, headers, include_dirs, lang))
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/command/config.py",
 line 89, in _wrap_method
     ret = mth(*((self,)+args))
   File "/opt/ActivePython-3.2/lib/python3.2/distutils/command/config.py",
 line 135, in _compile
     self.compiler.compile([src], include_dirs=include_dirs)
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/ccompiler.py", line 33,
 in <lambda>
     m = lambda self, *args, **kw: func(self, *args, **kw)
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/ccompiler.py", line
 206, in CCompiler_compile
     self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/ccompiler.py", line 33,
 in <lambda>
     m = lambda self, *args, **kw: func(self, *args, **kw)
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/unixccompiler.py", line
 23, in UnixCCompiler__compile
     extra_postargs, display = display)
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/ccompiler.py", line 33,
 in <lambda>
     m = lambda self, *args, **kw: func(self, *args, **kw)
   File "/tmp/tmpJXOWDV-pypm-
 numpy-1.5.0/numpy-1.5.0/build/py3k/numpy/distutils/ccompiler.py", line 68,
 in CCompiler_spawn
     print(o)
 UnicodeEncodeError: 'ascii' codec can't encode characters in position
 50-52: ordinal not in range(128)
 }}}

 (BTW, there is no 1.5.0 version in 'Version' list)

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1601>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list