When you try to align two molecules, you get the following error: Match-Error: unable to open matrix file '/usr/lib/python2.5/site-packages/pymol/data/pymol/matrices/BLOSUM62'. Actually the file is located in /usr/share/pymol/data/pymol/matrices/BLOSUM62 For a fast fix, just symlink it. Same bug was filed here: https://bugs.launchpad.net/ubuntu/+source/pymol/+bug/71045 Reproducible: Always Steps to Reproduce: 1.Align two molecules with pymol 2. 3. sci-chemistry/pymol-1.0-r1
ln -s /usr/share/pymol/data /usr/lib/python2.5/site-packages/pymol/data
Should reported upstream. I think pymol doesn't query in $PYMOL_DATA/pymol/matrices/BLOSUM62.
It's not upstream, it's because we try to move files to FHS locations. Pymol has environment variables to allow for this, but some files still need patching. Looks like one more place to patch.
No it isn't. Upstream says: "The bug was arising from PyMOL's incorrect use of PYMOL_PATH/data in fitting.py, which has now been replaced with $PYMOL_DATA in the SVN source." I tried to reproduce the bug with latest svn source and couldn't. The latest portage version is still Broken. Here is the patch: --- fitting.py.orig 2008-03-31 22:33:29.000000000 +0200 +++ fitting.py 2008-03-31 22:33:46.000000000 +0200 @@ -135,7 +135,7 @@ if string.lower(matrix)=='none': matrix='' if len(matrix): - mfile = cmd.exp_path("$PYMOL_PATH/data/pymol/matrices/"+matrix) + mfile = cmd.exp_path("$PYMOL_DATA/pymol/matrices/"+matrix) else: mfile = '' if object==None: object='' I will update the ebuild tomorrow.
OK, thanks for pursuing that. It's worth knowing the above information anyway.
Thanks for the fast response... justin was faster than me. --> With the latest SVN version it works I just released an ebuild for http://mgltools.scripps.edu/ just in case anyone is interested in maintaining it or to pull it into portage It's the GUI to sci-chemistry/autodock kind regards Bjoern
I figured our what the problem is: PYMOL_DATA is set to /usr/share/pymol/data. The pymol-data-path.patch corrects the paths to PYMOL_DATA/data but it should be just PYMOL_DATA. I add the updated patch. Other wise the PYMOL_DATA could set to /usr/share/pymol/, which i think is not the better solution. The revision from yesterday only needs commanding.py and importing.py tpo be patch, so pymol-9999-data-path.patches must be updated.
Created attachment 147966 [details] pymol-1.0-r1-data-path.patch.new
Justin, is this fixed in the ebuild in the science overlay?
Please reopen if it's not fixed.
It is fixed.