[27603] 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)
Fri Sep 28 23:50:18 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: <D5EEE364-2D29-4D14-8A7D-7174700F5AFE@mit.edu>
Date: Fri, 28 Sep 2012 23:50:15 -0400
Message-Id: <7F2E3375-1B5C-47CF-9B1E-026B3844D259@mit.edu>
To: Camilla R Fox <cfox@mit.edu>
Content-Transfer-Encoding: 8bit
Cc: "bugs@mit.edu" <bugs@mit.edu>
Errors-To: bugs-bounces@mit.edu

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