[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


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:


The failing build is here:


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?



$ python setup.py bdist --formats=gztar --cython-profile
Traceback (most recent call last):
   File "/.../python/lib/python3.3/configparser.py", line 842, in items
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>
   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
   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 
     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