LinuxCNC 2.9 Python module linuxcnc error
29 Oct 2022 12:39 #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.
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
Attachments:
Please Log in or Create an account to join the conversation.
29 Oct 2022 12:49 #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.
29 Oct 2022 12:52 #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.
29 Oct 2022 12:53 #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.
29 Oct 2022 12:59 #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.
29 Oct 2022 13:23 #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.
29 Oct 2022 15:48 #255388
by chili023
Replied by chili023 on topic LinuxCNC 2.9 Python module linuxcnc error
I testet a other version of the compensation.py
also import hal doesn't work.
Also tried this in python3 and python in the termianl.
Same result
python gives the error and python3 doesn't
Can I assume that my linuxcnc is using python 2?
also import hal doesn't work.
Also tried this in python3 and python in the termianl.
Same result
python gives the error and python3 doesn't
Can I assume that my linuxcnc is using python 2?
Please Log in or Create an account to join the conversation.
29 Oct 2022 22:48 #255414
by cmorley
Replied by cmorley on topic LinuxCNC 2.9 Python module linuxcnc error
what distribution are you using?
Sorry I always compile version so can't help much.
I didn't think there was a distribution that could run 2.8 and 2.9 because of the python version problem.
Hopefully someone else will chime in.
Sorry I always compile version so can't help much.
I didn't think there was a distribution that could run 2.8 and 2.9 because of the python version problem.
Hopefully someone else will chime in.
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds