Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#53508 - [pymol] error in peptide sequence generation command

Attached to Project: Community Packages
Opened by Ric (invik) - Friday, 31 March 2017, 12:04 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 20 April 2017, 00:01 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Evgeniy Alexeev (arcan1s)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

In PyMOL 1.8.6.0 (currently in testing), the peptide sequence generation command ("pymol.cmd.fab") breaks when called from a python shell. I presume this might be related to problems when porting to python 3.


Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:

From a python 3 shell (or script), issue the following commands:

>>> import pymol
>>> pymol.finish_launching() # A PyMOL windows open
>>> pymol.cmd.fab("EEG")
Traceback (most recent call last):
File "", line 1, in <module>
SystemError: error return without exception set
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/pymol/editor.py", line 427, in fab
state,dir,hydro,ss,quiet,_self)
File "/usr/lib/python3.6/site-packages/pymol/editor.py", line 392, in _fab
attach_amino_acid("pk1",code[sequence.pop()],animate=0,ss=ss,hydro=hydro,_self=_self)
File "/usr/lib/python3.6/site-packages/pymol/editor.py", line 210, in attach_amino_acid
tmp[0] = str(tmp[0]+1) # counting up
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'


Using the same on a python 2 terminal with PyMOL 1.8.4.0 (community) produces no errors and peptide with sequence "EEG" is successfully generated in PyMOL.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 20 April 2017, 00:01 GMT
Reason for closing:  Fixed

Loading...