cytoscape / py2cytoscape

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

CyRest in developmental version is not working: <title>Error 405 Method Not Allowed</title> #62

Closed IvoLeist closed 6 years ago

IvoLeist commented 6 years ago

sys.path.insert(0,"/home/user/.local/lib/python2.7/site-packages/py2cytoscape-0.6.2-py2.7.egg/py2cytoscape") import cyrest as cyrest

Step 1: Create py2cytoscape client

cy=cyrest.cyclient() cy.status() cy.version() print cy.commands.list() cy.commands.namespace("session") cy.commands.command("session", "new") cy.session.new()

Output: CyREST online! cytoscapeVersion 3.5.1 apiVersion v1 Available namespaces: command edge group layout network node session table view vizmap

<Response [405]> 405

Error 405 Method Not Allowed

HTTP ERROR 405

Problem accessing /v1/commands/session/new. Reason:

    Method Not Allowed


Powered by Jetty://
jorgeboucas commented 6 years ago

@IvoLeist

could you describe your

make sure you have the latest dev version

pip uninstall py2cytoscape
pip install git+https://github.com/cytoscape/py2cytoscape.git --user

and then

from py2cytoscape import cyrest
cy=cyrest.cyclient()
cy.status()
cy.version()
print cy.commands.list_namespaces()
cy.commands.namespace("session")
cy.commands.command("session", "new")
cy.session.new()
jorgeboucas commented 6 years ago

deprecated my lack of feedback