pycontact crashes when trying to write contact data to text file
Closed this issue · 4 comments
Hi,
I installed pycontact using by downloading the repo and running
python setup.py build_ext -i
python setup.py install
pyconect version: 1.0.3.dev
OS: macbook pro, ios 10.14.6
Python version: 3.7
MDAnalysis version: 0.20.1
Everything works fine except I'm getting the following error when I try to save contact data to a text file.
Traceback (most recent call last):
File "/Applications/anaconda3/lib/python3.7/site-packages/pycontact-1.0.3.dev0-py3.7-macosx-10.9-x86_64.egg/PyContact/gui/ExportTabWidget.py", line 234, in saveText
if isinstance(propertyToAdd, float):
UnboundLocalError: local variable 'propertyToAdd' referenced before assignment
Abort trap: 6
Thanks for you help. Ken
Hi Ken,
glad the installation and the program work fine in principle. Regarding your problem: That's really weird, I'd have to investigate this further, it's most likely a bug in PyContact.
Ok, so I know what the problem is. It's some ugly part of the code which I wrote a long time ago. The fix should be easy, I'll let you know once it's done.
@rabbitoh05 the issue should be fixed now.
I'd advise you to uninstall PyContact pip uninstall pycontact
, download the most recent version and install it again.
Hi Max,
Thanks. It is working fine now.