I’m having some problems connecting Rhino and Atom using the RhinoPython package. Mainly I cannot run scripts from Atom using "Save and Run in Rhino, " neither using the shortcut nor from the main menu.
I see “Listening for Atom editor requests” in Rhino, but when I try to run in Atom I get " Rhino isn’t listening for requests. Run the “StartAtomEditorListener” command from within Rhino."
Auto-complete was not working at first, but now works after a couple re-launches.
I tried both default port 8080 and 65000.
When I go to http://localhost:65000/ping, I get “{“msg”:“Talk to me”,“source”:”"}"
Looks like many people have had this issue over the years - I’ve tried previous suggestions and nothing is working.
From searching the forum for this problem, these seem like the normal responses. I tried ports 8080 and 65000 and both seem to work for me.
Seems like your Rhino is corrupted or some other program is responding to the ping request. Have you tried re-installing Rhino? If that doesn’t help I’m afraid I don’t have any other suggestions - I’m just a regular user following these forums trying to learn and help where I can. Hopefully @Alain or @dan can offer some more suggestions (they were both active in other posts about this problem).
Reviving this old thread because I am now experiencing the same problem as @malikakhurana23 when running the Version 7 BETA (7.0.20309.06004, 2020-11-04).
I have RhinoBETA set to listen on port 8080 and when I run:
_StartAtomEditorListener
I get the response:
Listening for Atom editor requests on port 8080 …
When I try to run a python script from atom, I get the response:
Rhino isn’t listening for requests. Run the “StartAtomEditorListener” command from within Rhino.
Going to http://localhost:8080/ping in my browser while RhinoBETA is listening for Atom editor requests produces this response:
{“msg”:“Talk to me”,“source”:“”}
All works as expected when I am running Rhino Version 6 (6.31.20308.11002, 2020-11-03) and going to http://localhost:8080/ping in my browser while V6 is listening for Atom editor requests produces this response:
The Atom editor can only communicate with Rhino if the app package name is ‘Rhinoceros.app’ or ‘RhinoWIP.app’. The users’ is ‘RhinoBETA.app’. I’ll push a fix for the next release.
In the meantime a workaround is to rename ‘RhinoBETA.app’ to either ‘Rhinoceros.app’ or ‘RhinoWIP.app’.
@brian, is it safe to tell the user to rename the file or will that cause confusion/problems with future installs?
I renamed ‘RhinoBETA.app’ to 'RhinoWIP.app’ and it resolved the problem - I will change the name back before I try to install any updates to avoid possible conflicts.