cytoscape / py2cytoscape

Python utilities for Cytoscape and Cytoscape.js
https://py2cytoscape.readthedocs.io
MIT License
178 stars 45 forks source link

Invalid syntax in util.util_dataframe #73

Closed gaberosser closed 5 years ago

gaberosser commented 5 years ago

This issue affects me with py2cytoscape 0.7.0.

I installed py2cytoscape using pip in a Python 2.7 virtual environment on a system running Ubuntu 16.04 and Cytoscape 3.6.1.

I've been following the Jupyter tutorial here. Upon testing a basic import, I received a syntax error:

from py2cytoscape.data.cyrest_client import CyRestClient
File "<BLAH>/venv/local/lib/python2.7/site-packages/py2cytoscape/util/util_dataframe.py", line 88
row = (source, itr, target, *extra_values)

I'm not certain, but isn't this Python 3 syntax? This is the only file affected. I manually fixed the two affected lines: 88 and 93 in the function to_dataframe(). Then everything works fine.

jorgeboucas commented 5 years ago

8a55ead should have fixed it