- Posts: 136
- Thank you received: 0
python "import linuxcnc" on pycharm
9 years 4 months ago #94050
by jtc
python "import linuxcnc" on pycharm was created by jtc
Hi.
I'm trying to use the python interface with linuxcnc ( www.linuxcnc.org/docs/html/config/python-interface.html )
But I'm having a struggle to make it work on pycharm...
if I run ". ./ scripts/rip-environment" from the linuxcnc folder I can import the module with python, but if not it shows a error...
I believe that is a python environment path problem, but at the moment I have no clue how to solve it, and hot to make it work on pycharm (I want to use it for debug proposes).
Thanks,
João
I'm trying to use the python interface with linuxcnc ( www.linuxcnc.org/docs/html/config/python-interface.html )
But I'm having a struggle to make it work on pycharm...
Attachment not found
if I run ". ./ scripts/rip-environment" from the linuxcnc folder I can import the module with python, but if not it shows a error...
I believe that is a python environment path problem, but at the moment I have no clue how to solve it, and hot to make it work on pycharm (I want to use it for debug proposes).
Thanks,
João
Please Log in to join the conversation.
9 years 4 months ago #94141
by andypugh
Replied by andypugh on topic python "import linuxcnc" on pycharm
Are you running a built-from source or an installed system?
Please Log in to join the conversation.
9 years 4 months ago #94142
by jtc
Replied by jtc on topic python "import linuxcnc" on pycharm
Its a Run In Place installation, built from source.
Please Log in to join the conversation.
9 years 4 months ago #94146
by andypugh
Replied by andypugh on topic python "import linuxcnc" on pycharm
In that case you will always need to run the rip-environment script for LinuxCNC to start.
You could add it to one of the auto-start scripts.
You could add it to one of the auto-start scripts.
Please Log in to join the conversation.
Time to create page: 0.081 seconds
