cytoscape / py2cytoscape

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

how to run the example, #80

Open SeekPoint opened 5 years ago

SeekPoint commented 5 years ago

ub16hp@UB16HP:/media/ub16hp/WINDOWS/ub16_prj/py2cytoscape/examples$ python3 samples_for_v0.6.0.py

Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 141, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/usr/local/lib/python3.5/dist-packages/urllib3/util/connection.py", line 83, in create_connection raise err File "/usr/local/lib/python3.5/dist-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred:
jorgeboucas commented 5 years ago

please try updating to python 3.6.

SeekPoint commented 5 years ago

C:\ub16_prj\py2cytoscape\examples>python samples_for_v0.6.0.py To avoid name collision with the igraph project, this visualization library has been renamed to 'jgraph'. Please upgrade when convenient. py2cytoscape: Error importing igraph. You won't be able to import from igraph.

Traceback (most recent call last): File "C:\Users\andyy\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connection.py", line 141, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "C:\Users\andyy\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\util\connection.py", line 83, in create_connection raise err File "C:\Users\andyy\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection sock.connect(sa) ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
zachary822 commented 5 years ago

Do you have the Cytoscape desktop program running? What version are you using?

jorgeboucas commented 5 years ago

Apart from making sure you have Cytoscape running it might be that the jump to python 3.7 was a bit too much. I would follow @zachary822 recommendation and try it on 3.6.

GlennCGL commented 2 years ago

Why don't you just write a simple example about how to use py2cytoscape? I can not learn any useful getting started about your README.md

matthiaskoenig commented 2 years ago

It seems to me the py2cytoscape project is deprecated and you should have a look at py4cytoscape https://github.com/cytoscape/py4cytoscape With documentation here: https://py4cytoscape.readthedocs.io/en/latest/ and examples here: https://py4cytoscape.readthedocs.io/en/latest/tutorials/index.html

bdemchak commented 2 years ago

Hi ...

With apologies... py2cytoscape has been deprecated. We will put a notice on this report.

In the meantime, would you mind trying py4cytoscape??

https://pypi.org/project/py4cytoscape/

https://github.com/cytoscape/py4cytoscape

... sent from my mobile phone ... please forgive my typos.

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv : Barry Demchak, PhD : : Torrey Pines Software, Inc. : : http://www.tpsoft.com/ : : http://orcid.org/0000-0001-7065-7786 : : (858) 452-8700 : : (619) 218-3717 (cell/text) : vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

On Thu, Feb 17, 2022, 4:54 AM GlennCGL @.***> wrote:

Why don't you just write a simple example about how to use py2cytoscape? I can not learn any useful getting started about your README.md

— Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_cytoscape_py2cytoscape_issues_80-23issuecomment-2D1042919596&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=CsLWmDiVCCVSLXhL9WA-Kh4UUOkFEEy643k8U5VIUxE&m=GQHyI9LhKWQhcB54pucuLgD-tufpsVVodWgxT-IydJa3zco7w_KwjHNxm0Wg676a&s=uEwQLTolwK5J4zS0Zo6oQZ-fMPeBOdBUIXJYGHeaxIs&e=, or unsubscribe https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AA4GLXQV6GG3AFTVHC5ASULU3TVWRANCNFSM4GX4HTHQ&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=CsLWmDiVCCVSLXhL9WA-Kh4UUOkFEEy643k8U5VIUxE&m=GQHyI9LhKWQhcB54pucuLgD-tufpsVVodWgxT-IydJa3zco7w_KwjHNxm0Wg676a&s=Dli1HD1v0kykiv3A0pvYwXZdScXD2zXII11anm7H5rY&e= . Triage notifications on the go with GitHub Mobile for iOS https://urldefense.proofpoint.com/v2/url?u=https-3A__apps.apple.com_app_apple-2Dstore_id1477376905-3Fct-3Dnotification-2Demail-26mt-3D8-26pt-3D524675&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=CsLWmDiVCCVSLXhL9WA-Kh4UUOkFEEy643k8U5VIUxE&m=GQHyI9LhKWQhcB54pucuLgD-tufpsVVodWgxT-IydJa3zco7w_KwjHNxm0Wg676a&s=uiAyYpBKuOtpoVdjwxDQGF-4Dysq6P-su2uWFDxT6no&e= or Android https://urldefense.proofpoint.com/v2/url?u=https-3A__play.google.com_store_apps_details-3Fid-3Dcom.github.android-26referrer-3Dutm-5Fcampaign-253Dnotification-2Demail-2526utm-5Fmedium-253Demail-2526utm-5Fsource-253Dgithub&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=CsLWmDiVCCVSLXhL9WA-Kh4UUOkFEEy643k8U5VIUxE&m=GQHyI9LhKWQhcB54pucuLgD-tufpsVVodWgxT-IydJa3zco7w_KwjHNxm0Wg676a&s=D4bR1zL1dx0S6_7vN_72OgVDz0A4z-9ehCisp-Js8oo&e=.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

bdemchak commented 2 years ago

Thanks, Matthias … I have added a deprecation message and forwarding link to the py2cytoscape README page.