Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 269119

Summary: sci-chemistry/pymol-1.1-r2 is incompatible with python 2.6
Product: Gentoo Linux Reporter: Luyang Han <luyang.han>
Component: New packagesAssignee: Gentoo Chemistry-Related Packages <sci-chemistry>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Highest    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 283639    
Bug Blocks: 230205    

Description Luyang Han 2009-05-09 12:22:32 UTC
When try to start pymol-1.1-r2 with python 2.6.2, following message is given:

Error: unable to initalize the pymol.cmd module
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/pymol/cmd.py", line 265, in <module>
    from api import *
  File "/usr/lib64/python2.6/site-packages/pymol/api.py", line 381
     as = show_as
      ^
 SyntaxError: invalid syntax

This is because in python 2.6 the 'as' is a reserved keyword
http://docs.python.org/reference/lexical_analysis.html#keywords

Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-05-09 21:01:47 UTC
Is fixed in 1.2* which is in sci overlay.
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2009-07-31 09:14:28 UTC
(In reply to comment #1)
> Is fixed in 1.2* which is in sci overlay.

 Can we get that in-tree and stabilised please?  Python 2.6 just went stable on amd64 and is planned for other arches, too. 

Comment 3 Justin Lecher (RETIRED) gentoo-dev 2010-01-31 22:31:46 UTC
Removed from tree.