Python LinuxCNC module

More
10 months 1 day ago #340688 by hhscott
I am wanting to write a couple of simple python3 scripts to automate some functions in LinuxCNC using the python linuxcnc module to send NML messages. I did this several years ago for another project and it was very successful. In this new application I am using a pi5 8GB with a Mesa 7i96s running Trixie 2.9.7. The basic installation is working well and the CNC is operating great so far (without any python automation). 

I am a little confused about using python on Debian Trixie. When I try to install a package I get errors and the terminal prompts that I should use a virtual environment for python and packages. If I do this, will my python scripts still connect to the running instance of LinuxCNC? Please help me understand the basic structure for using python on the Trixie OS with LinuxCNC.

Thank you,
HH

Please Log in to join the conversation.

More
10 months 1 day ago #340698 by rodw
Replied by rodw on topic Python LinuxCNC module
yes this is a requirement now. nonstandard modules require a virtual environment (venv) in a folder. Google python venv

Please Log in to join the conversation.

Time to create page: 0.184 seconds
Powered by Kunena Forum