[Python-Dev] in latest Py3k site.py: configparser.NoSectionError: No section: 'posix_prefix'

Stefan Behnel stefan_ml at behnel.de
Fri May 20 21:04:49 CEST 2011


Hi,

since May 19, I get the exception below in the latest py3k site.py when 
trying to run a distutils build with it (building Cython). The changelog 
since the previous (working) CPython build is here:

https://sage.math.washington.edu:8091/hudson/job/py3k-hg/374/

The failing build is here:

https://sage.math.washington.edu:8091/hudson/job/cython-devel-build-py3k/1313/console

This is on 64bit Linux. I tried with a clean checkout, no difference. Is 
this problem obvious to someone, is there anything that needs adaptation on 
our side (I hope not), or should I file a bug report?

Thanks,

Stefan


"""
$ python setup.py bdist --formats=gztar --cython-profile
Traceback (most recent call last):
   File "/.../python/lib/python3.3/configparser.py", line 842, in items
     d.update(self._sections[section])
KeyError: 'posix_prefix'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/.../python/lib/python3.3/site.py", line 537, in <module>
     main()
   File "/.../python/lib/python3.3/site.py", line 522, in main
     known_paths = addusersitepackages(known_paths)
   File "/.../python/lib/python3.3/site.py", line 263, in addusersitepackages
     user_site = getusersitepackages()
   File "/.../python/lib/python3.3/site.py", line 238, in getusersitepackages
     user_base = getuserbase() # this will also set USER_BASE
   File "/.../python/lib/python3.3/site.py", line 228, in getuserbase
     USER_BASE = get_config_var('userbase')
   File "/.../python/lib/python3.3/sysconfig.py", line 576, in get_config_var
     return get_config_vars().get(name)
   File "/.../python/lib/python3.3/sysconfig.py", line 472, in get_config_vars
     _init_posix(_CONFIG_VARS)
   File "/.../python/lib/python3.3/sysconfig.py", line 324, in _init_posix
     makefile = get_makefile_filename()
   File "/.../python/lib/python3.3/sysconfig.py", line 318, in 
get_makefile_filename
     return os.path.join(get_path('stdlib'), config_dir_name, 'Makefile')
   File "/.../python/lib/python3.3/sysconfig.py", line 436, in get_path
     return get_paths(scheme, vars, expand)[name]
   File "/.../python/lib/python3.3/sysconfig.py", line 426, in get_paths
     return _expand_vars(scheme, vars)
   File "/.../python/lib/python3.3/sysconfig.py", line 142, in _expand_vars
     for key, value in _SCHEMES.items(scheme):
   File "/.../python/lib/python3.3/configparser.py", line 845, in items
     raise NoSectionError(section)
configparser.NoSectionError: No section: 'posix_prefix'
"""



More information about the Python-Dev mailing list