- Posts: 310
- Thank you received: 0
GladeVCP and venv?
3 years 9 months ago #263072
by JetForMe
GladeVCP and venv? was created by JetForMe
I've been working on my VCP outside of GladeVCP/LinuxCNC by creating a little scaffold.py GTK app to display my UI (I don't yet interface with the HAL so this was easy). I'm able to run in debug mode in VS Code and it speeds development.
Now I'm trying to integrate into my VCP (instead of launching scaffold.py), and I'm having some trouble getting gladevcp (or linuxcnc, for that matter) to respect my venv when they launch, which means it can't find my dependencies that I'm developing in conjunction with the VCP.
With my venv activated, I did
which put a mymodule.egg-link file in the venv site-packages directory pointing to the local mymodule directory in my home dir.
Any idea what I can do to make this work?
Now I'm trying to integrate into my VCP (instead of launching scaffold.py), and I'm having some trouble getting gladevcp (or linuxcnc, for that matter) to respect my venv when they launch, which means it can't find my dependencies that I'm developing in conjunction with the VCP.
With my venv activated, I did
Code:
pip install -e ~/mymodule
which put a mymodule.egg-link file in the venv site-packages directory pointing to the local mymodule directory in my home dir.
Any idea what I can do to make this work?
Please Log in to join the conversation.
3 years 9 months ago #263119
by JetForMe
Replied by JetForMe on topic GladeVCP and venv?
I've used `update-alternatives` to make python3.11 the system-wide python, but gladevcp still launches python3.9. How is gladevcp finding python?
Please Log in to join the conversation.
3 years 9 months ago #263121
by JetForMe
Replied by JetForMe on topic GladeVCP and venv?
Ah! Linux filesystems are case-dependent, but macOS is (usually) not. So my import API statement was failing to find api.py when on Linux.
Still want to figure out how to run linuxcnc/gladevcp with a different python, though.
Still want to figure out how to run linuxcnc/gladevcp with a different python, though.
Please Log in to join the conversation.
1 year 7 months ago #323612
by low-blip
Replied by low-blip on topic GladeVCP and venv?
Did you figure it out? I want to use a Rust library in my VCP, but I only know how to install it as a package in a virtual environment.
Please Log in to join the conversation.
1 year 7 months ago #323642
by JetForMe
Replied by JetForMe on topic GladeVCP and venv?
Oh gosh, I can't remember! It's been so long since I worked on that project! I’m definitely using a venv, but I'm not sure I was able to switch the Python interpreter.Did you figure it out? I want to use a Rust library in my VCP, but I only know how to install it as a package in a virtual environment.
Please Log in to join the conversation.
Time to create page: 0.593 seconds
