Description of problem: $ python3 Traceback (most recent call last): File "/usr/lib64/python3.2/sysconfig.py", line 314, in _init_posix parse_config_h(open(config_h), vars) IOError: [Errno 2] No such file or directory: '/usr/include/python3.2/pyconfig.h' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.2/site.py", line 559, in <module> main() File "/usr/lib64/python3.2/site.py", line 541, in main known_paths = addusersitepackages(known_paths) File "/usr/lib64/python3.2/site.py", line 261, in addusersitepackages user_site = getusersitepackages() File "/usr/lib64/python3.2/site.py", line 236, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/usr/lib64/python3.2/site.py", line 226, in getuserbase USER_BASE = get_config_var('userbase') File "/usr/lib64/python3.2/sysconfig.py", line 553, in get_config_var return get_config_vars().get(name) File "/usr/lib64/python3.2/sysconfig.py", line 454, in get_config_vars _init_posix(_CONFIG_VARS) File "/usr/lib64/python3.2/sysconfig.py", line 319, in _init_posix raise IOError(msg) IOError: invalid Python installation: unable to open /usr/include/python3.2/pyconfig.h (No such file or directory) After installing python3-devel, this issue was fixed. then python3 package doesn't require python3-devel package. Version-Release number of selected component (if applicable): 3.2-0.4.a1.fc15.x86_64 How reproducible: always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The python2 package has this: %files [...] # "Makefile" and the config-32/64.h file are needed by # distutils/sysconfig.py:_init_posix(), so we include them in the libs # package, along with their parent directories (bug 531901): %dir %{pylibdir}/config %{pylibdir}/config/Makefile %dir %{_includedir}/python%{pybasever} %{_includedir}/python%{pybasever}/%{_pyconfig_h} Probably need to apply something similar to the python3 package.
(In reply to comment #1) (snip) > Probably need to apply something similar to the python3 package. The python3.src.rpm does have this already. What is the output of running the following command: rpm -qa "python3*" | sort Interestingly, the error report refers to "/usr/include/python3.2/pyconfig.h" rather than pyconfig-64.h, so I think we're seeing something akin to this from the python.spec file: > * Thu Jul 22 2010 David Malcolm <dmalcolm> - 2.7-4 > - fix reference to pyconfig.h in sysconfig that led to failure on startup if > python-devel was not installed
Fix (I hope) committed and pushed to git: Building python3-3.2-0.5.a1.fc15 for dist-rawhide Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=2607156
I believe this is now fixed (in python3-3.2-0.5.a1.fc15).