- Posts: 47
- Thank you received: 7
LinuxCNC 2.9 Python module linuxcnc error
4 years 3 days ago #255373
by chili023
LinuxCNC 2.9 Python module linuxcnc error was created by chili023
I want to use the compensation.py methode for autoleveling of my mill.
while loading linuxcnc the pyhton script tries to load the module linuxcnc but cannot find it.
I had to install numpy and spicy before but pip cannot find a module called linuxcnc.
I assume the script is running on python 2 since I used pip and not pip3.
However python3 has a module that is named linuxcnc.
Maybe someone can point me into the right direction.
I am running LINUXCNC - 2.9.0-pre0-7877-g15792c421
Thanks
while loading linuxcnc the pyhton script tries to load the module linuxcnc but cannot find it.
I had to install numpy and spicy before but pip cannot find a module called linuxcnc.
Code:
Traceback (most recent call last):
File "compensation.py", line 27, in <module>
import linuxcnc
ImportError: No module named linuxcnc
However python3 has a module that is named linuxcnc.
Maybe someone can point me into the right direction.
I am running LINUXCNC - 2.9.0-pre0-7877-g15792c421
Thanks
Please Log in or Create an account to join the conversation.
4 years 3 days ago #255375
by cmorley
Replied by cmorley on topic LinuxCNC 2.9 Python module linuxcnc error
in linuxcnc 2.9 all python programs must use python3.
Chris
Chris
Please Log in or Create an account to join the conversation.
4 years 3 days ago #255376
by chili023
Replied by chili023 on topic LinuxCNC 2.9 Python module linuxcnc error
ok how can I tell linuxcnc to use pyhton3 and not 2?
Please Log in or Create an account to join the conversation.
4 years 3 days ago #255377
by cmorley
Replied by cmorley on topic LinuxCNC 2.9 Python module linuxcnc error
how did you install linuxcnc?
Please Log in or Create an account to join the conversation.
4 years 3 days ago #255378
by chili023
Replied by chili023 on topic LinuxCNC 2.9 Python module linuxcnc error
with the package manager.
I started with the 2.8 iso and updated to 2.9.0-pre0-7877-g15792c421
I started with the 2.8 iso and updated to 2.9.0-pre0-7877-g15792c421
Please Log in or Create an account to join the conversation.
4 years 3 days ago #255380
by chili023
Replied by chili023 on topic LinuxCNC 2.9 Python module linuxcnc error
My linuxcnc installation is using python2.
When I open python3 in the termianl and try
import linuxcnc
I get no error.
If I do that in python (2.x) <I get the error.
How can I use python3 for .py files?
When I open python3 in the termianl and try
import linuxcnc
I get no error.
If I do that in python (2.x) <I get the error.
How can I use python3 for .py files?
Please Log in or Create an account to join the conversation.
Time to create page: 0.055 seconds