[27605] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: python from /usr/athena/bin broken

daemon@ATHENA.MIT.EDU (Jonathan Reed)
Mon Oct 1 16:16:42 2012

Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jonathan Reed <jdreed@mit.edu>
In-Reply-To: <7F2E3375-1B5C-47CF-9B1E-026B3844D259@mit.edu>
Date: Mon, 1 Oct 2012 16:16:38 -0400
Message-Id: <AB819A5E-24BC-430B-B241-D79A105E7B5C@mit.edu>
To: Camilla R Fox <cfox@mit.edu>
Content-Transfer-Encoding: 8bit
Cc: bugs@mit.edu
Errors-To: bugs-bounces@mit.edu

It turns out this workaround no longer works.  We have documented the issue, and there's nothing more we can do at this time, as Python makes too many assumptions about its location in the filesystem.    However, we believe this has been fixed in Ubuntu 12.10 (Quantal).

-Jon

On Sep 28, 2012, at 11:50 PM, Jonathan Reed wrote:

> Yes, this broke with Python 2.7, because Ubuntu decided to be clever, while we were also trying to be clever.  See http://debathena.mit.edu/trac/ticket/1126
> 
> We should probably just implement the workaround in the last comment.
> 
> -Jon
> 
> On Sep 28, 2012, at 10:36 PM, Camilla R Fox wrote:
> 
>> /usr/athena/bin/python is broken on my newly installed precise workstation:
>> 
>> [cfox@RED-HERRING]tmp$ cat hello.py
>> #!/usr/athena/bin/python
>> 
>> print "hello world"
>> [cfox@RED-HERRING]tmp$ ./hello.py 
>> Traceback (most recent call last):
>> File "/usr/athena/lib/python2.7/site.py", line 562, in <module>
>>   main()
>> File "/usr/athena/lib/python2.7/site.py", line 544, in main
>>   known_paths = addusersitepackages(known_paths)
>> File "/usr/athena/lib/python2.7/site.py", line 271, in addusersitepackages
>>   user_site = getusersitepackages()
>> File "/usr/athena/lib/python2.7/site.py", line 246, in getusersitepackages
>>   user_base = getuserbase() # this will also set USER_BASE
>> File "/usr/athena/lib/python2.7/site.py", line 236, in getuserbase
>>   USER_BASE = get_config_var('userbase')
>> File "/usr/athena/lib/python2.7/sysconfig.py", line 577, in get_config_var
>>   return get_config_vars().get(name)
>> File "/usr/athena/lib/python2.7/sysconfig.py", line 476, in get_config_vars
>>   _init_posix(_CONFIG_VARS)
>> File "/usr/athena/lib/python2.7/sysconfig.py", line 355, in _init_posix
>>   raise IOError(msg)
>> IOError: invalid Python installation: unable to open /usr/athena/local/include/python2.7/pyconfig.h (No such file or directory)
>> 
>> It should either work or not exist.
>> 
>> -Camilla
> 
> 



home help back first fref pref prev next nref lref last post