Hello alltogehter,
I am a complete beginner in Python, but I am trying to learn the language now…
My problem is, that I can`t connect Rhino and Atom!
I have wrote the examle code in Atom like this:
import rhinoscriptsyntax as rs
from Rhino.Geometry import Point3d
rs.AddCircle(Point3d.Origin, 5.0)
than I wanted to see, what I have done in Rhino (5.0.2., trial version) by hitting ctrl+alt+r to run the command, but nothing happens in Rhino!!! :(((
the thing is, that in Rhino is written: Listening for Atom editor requests…
And when I StartAtomEditorListener again Rhino tells me, that the programm is already listening for Atom.
… but nothing happens!!
When I save the Atom-code as a Python-File, I can open it in Rhino by RunPythonScript completely normal…
I realy don`t understand, where the problem is…!!!
I’m not sure what the problem is. A few things to check:
do you have only one instance of Rhino running? Did you try to restart Rhino?
Is your file on the local file system or on a remote share? Being on a remote server should not be a problem but if it is can you copy the file locally just to check?
If you type the “http://http://localhost:8080/ping” URL in a browser do you get a response?
… still not working…
I have two versions of Rhino installed on my Mac… but only the one running…the newer one.
The older Version even doesn`t recognise the command StartAtomEditorListening!
I restarted Rhino a couple of times already…
I don`t know how to work like that, it takes tame to save the file as .py every time instead of just testing the code!
@Alain shouldn’t your first post about using Atom with Rhino for Mac be pinned somewhere here on discourse? This would help link to the actual document page.
@Magica do you see something like this when in Atom, when you right-click the python file?
What I am seeing is that Atom does not recognize the WIP - error message - “Rhino isn’t listening for requests…” Do I have to do something in Atom to make it work with the WIP as well as the release version?
Hi Mitch - At the moment you need to rename the application to Rhinoceros.app (after renaming Rhinoceros.app of course). Alain is going to make this better, I believe.
So I need to rename the release version to something else and the WIP to the release version? Then Atom will work with the WIP - but not the release version - is that it? Unfortunately, if that’s the case it won’t work for me, I need to test stuff against the release version.
From your other Discourse post you are getting code completion so Rhino is listening to Atom and responding.
If you have many other packages installed in Atom one might interfere with the ctrl + alt+r key bindings. Try launching the command from the main menu:
Hi,
I have exactly the same problem as @Magica. I installed Atom as it was in the instruction. I reinstalled Rhino, and I still get this message: Rhino isn’t listening for requests. Run the “StartAtomEditorListener” command from within Rhino.
I couldn’t find any solution.
Can you help me?
Jan
Are you getting code completion but only getting the “Rhino isn’t listening” message when you try to run the script? Or is code completion not working as well?
Yes, several times. Than, I reinstalled both programs and tried again but without positive result.
Of course every time I was typing StartAtomEditorListener.
I’m wondering if it is something wrong with the port communication, but I don’t know how to check it.