#11702 HIGH 12.1.0: library index not created during boot
Zarro Boogs per Child
bugtracker at laptop.org
Thu Mar 22 12:52:36 EDT 2012
#11702: library index not created during boot
----------------------------------+-----------------------------------------
Reporter: dsd | Owner: dsd
Type: defect | Status: new
Priority: high | Milestone: 12.1.0
Component: olpc-utils | Version: not specified
Resolution: | Keywords:
Next_action: package | Verified: 0
Deployment_affected: | Blockedby:
Blocking: |
----------------------------------+-----------------------------------------
Changes (by dsd):
* next_action: diagnose => package
Comment:
Python no longer likes being run with an empty environment and was
producing this trace during boot:
{{{
* olpc-configure: Rebuilding the library index.
Traceback (most recent call last):
File "/lib/python2.7/site.py", line 563, in <module>
main()
File "/lib/python2.7/site.py", line 545, in main
known_paths = addusersitepackages(known_paths)
File "/lib/python2.7/site.py", line 278, in addusersitepackages
user_site = getusersitepackages()
File "/lib/python2.7/site.py", line 253, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/lib/python2.7/site.py", line 243, in getuserbase
USER_BASE = get_config_var('userbase')
File "/lib/python2.7/sysconfig.py", line 520, in get_config_var
return get_config_vars().get(name)
File "/lib/python2.7/sysconfig.py", line 419, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/lib/python2.7/sysconfig.py", line 298, in _init_posix
raise IOError(msg)
IOError: invalid Python installation: unable to open
//include/python2.7/pyconfig-32.h (No such file or directory)
}}}
(the 2nd time this has bitten us)
olpc-library-update was being run with an empty environment due to #6767 -
"env -" clears the environment, but I don't think that part of the change
was intentional.
Fixed by not resetting the environment. olpc-utils
eb7ce883f782267f56ffc425905e9aa23170ca24
--
Ticket URL: <http://dev.laptop.org/ticket/11702#comment:1>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list