[Bug 340085] [NEW] Pymol Doesn't Initialize after Upgrading to Python 2.6
Timothy Palpant
timothypalpant at gmail.com
Mon Mar 9 18:29:09 UTC 2009
Public bug reported:
While the last rebuild updated Pymol's python dependency to include 2.6,
it crashes with the following error:
Error: unable to initalize the pymol.cmd module
Traceback (most recent call last):
File "/var/lib/python-support/python2.6/pymol/cmd.py", line 265, in <module>
from api import *
File "/var/lib/python-support/python2.6/pymol/api.py", line 381
as = show_as
^
SyntaxError: invalid syntax
It looks like this problem is already known; by examining the source of
api.py I found this:
# dang! Python 2.6 will break PyMOL's "as" method.
# Proposal:
# 1. stick with Python <=2.5 for as long as possible
# 2. convert API method to cmd.show_as() and leave "as" in the scripting langauge
# 3. allow "show_as" in the scripting language
as = show_as
While I'm not sure exactly what's going on (never touched Python),
commenting out the final line seems to correct the problem--or at least
allow Pymol to start.
** Affects: pymol (Ubuntu)
Importance: Undecided
Status: New
--
Pymol Doesn't Initialize after Upgrading to Python 2.6
https://bugs.launchpad.net/bugs/340085
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list