Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383609 - python doesn't work on the live/minimal-cd
Summary: python doesn't work on the live/minimal-cd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: InstallCD (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
: 385043 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-19 09:03 UTC by KinG-InFeT
Modified: 2011-11-05 20:07 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KinG-InFeT 2011-09-19 09:03:00 UTC
run this command:

mirrorselect -i -o >> /mnt/gentoo/etc/make.conf

for installation new gentoo anche out this error

Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 554, in <module>
   main()
File "/usr/lib/python2.7/site.py", line 536, in <module>
   known_paths = addusersitepackage(known_paths)
File "/usr/lib/python2.7/site.py", line 268, in <module>
  user_base = getusersitepackage()
File "/usr/lib/python2.7/site.py", line 243, in <module>
  user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python2.7/site.py", line 233, in <module>
   USER_BASE = get_config_var('userbase')
File "/usr/lib/python2.7/sysconfig.py", line 535, in <module>
   return get_config_vrs().get(name)
File "/usr/lib/python2.7/sysconfig.py", line 434, in <module>
   _init_posix(_CONFIG_VARS)
File "/usr/lib/python2.7/sysconfig.py", line 298, in <module>
  raise IOError(msg)

IOError: invalid Python installation: unable to open /usr/include/python2.7/pyconfig.h (No such file or directory)

Reproducible: Always

Actual Results:  
crash mirrorselect application

Expected Results:  
not crash
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2011-09-19 12:38:17 UTC
You should mention that you use the live/minimal-cd next time.
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2011-09-30 15:07:54 UTC
*** Bug 385043 has been marked as a duplicate of this bug. ***
Comment 3 Antediluvian 2011-10-09 16:39:44 UTC
(In reply to comment #2)
> *** Bug 385043 has been marked as a duplicate of this bug. ***

(In reply to comment #0)
> run this command:
> 
> mirrorselect -i -o >> /mnt/gentoo/etc/make.conf
> 
> for installation new gentoo anche out this error
> 
> Traceback (most recent call last):
> File "/usr/lib/python2.7/site.py", line 554, in <module>
>    main()
> File "/usr/lib/python2.7/site.py", line 536, in <module>
>    known_paths = addusersitepackage(known_paths)
> File "/usr/lib/python2.7/site.py", line 268, in <module>
>   user_base = getusersitepackage()
> File "/usr/lib/python2.7/site.py", line 243, in <module>
>   user_base = getuserbase() # this will also set USER_BASE
> File "/usr/lib/python2.7/site.py", line 233, in <module>
>    USER_BASE = get_config_var('userbase')
> File "/usr/lib/python2.7/sysconfig.py", line 535, in <module>
>    return get_config_vrs().get(name)
> File "/usr/lib/python2.7/sysconfig.py", line 434, in <module>
>    _init_posix(_CONFIG_VARS)
> File "/usr/lib/python2.7/sysconfig.py", line 298, in <module>
>   raise IOError(msg)
> 
> IOError: invalid Python installation: unable to open
> /usr/include/python2.7/pyconfig.h (No such file or directory)
> 
> Reproducible: Always
> 
> Actual Results:  
> crash mirrorselect application
> 
> Expected Results:  
> not crash

Yeah I can reproduce the bug with install-amd64-minimal-20111006.iso (the newest one for now).
And if the python bug will cause other problems?
Comment 4 KinG-InFeT 2011-10-14 10:36:26 UTC
in x86 minimalCD the bug is not fixed!
Comment 5 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2011-10-16 08:29:31 UTC
please fixed this bug for x86, also *bump*
Comment 6 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-10-24 15:54:24 UTC
I've checked the amd64 specs and /usr/include is indeed dropped. I was able to track this to at least almost 4 years ago[1], so something must have changed in the python side.
In any case, I'll try to build the CDs without removing /usr/include and check the size difference.

 [1] - http://sources.gentoo.org/cgi-bin/viewvc.cgi/releng/trunk/releases/weekly/specs/amd64/installcd-stage2-minimal.spec?revision=392&view=markup
Comment 7 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-10-24 19:56:07 UTC
So what would have changed? Python now starts reading stuff in /usr/include/pyconfig.h, where it didn't before? Where can I find out what version of Python is on the new images?
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-10-24 20:21:35 UTC
(In reply to comment #7)
> Where can I find out what
> version of Python is on the new images?

Always the latest stable version.
Comment 9 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-11-05 20:07:12 UTC
I've dropped the removal of /usr/include from the specs for both amd64 and x86[1].

 [1] - http://sources.gentoo.org/cgi-bin/viewvc.cgi/releng?view=revision&revision=820