Python LinuxCNC module

More
29 Dec 2025 22:19 - 30 Dec 2025 07:07 #340688 by hhscott
Python LinuxCNC module was created 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
Last edit: 30 Dec 2025 07:07 by hhscott.

Please Log in or Create an account to join the conversation.

More
30 Dec 2025 05:17 #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
The following user(s) said Thank You: NWE

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum