QtPyVCP - First VCP tutorial problems

More
05 Mar 2024 04:30 #295190 by spumco
I've been fiddling with Probe Basic for a while but I'd like to try a new VCP from scratch.  Sadly, I'm having problems following the tutorial on the qtpyvcp instruction site.

Note: this is a VM installation which followed the PB dev install script

I followed the Clone and Prepare page and everything seemed to go ok... until I tried to start the new vcp (editvcp vcp1).

A new 'vcp1' folder was created, as well as a vcp1 config in the linuxcnc folder, but neither will start.

(venv) lathe@lathe:~$ editvcp vcp1
[EditVCP][INFO]  Logging to /home/lathe/qtpyvcp.log (logger.py:117)
[EditVCP][ERROR]  No valid file type selected.

                  File must be a .yaml config file or a .ui file. (editvcp.py:185)
(venv) lathe@lathe:~$

No vcp1.ui or .yaml file was created.  There is a mainwindow.py file and a mainwindow.ui file under the /vcp1/src/ui folder.

If I run the 'Designer for PB Mill' launcher everything goes just fine.  Qt Designer opens, widget rules and all the qtpyvcp plugin stuff is present.

Any idea what I did wrong?

Attached screenshot of the folder(s) and files created during the installation attempt in case it helps
Attachments:

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

More
06 Apr 2024 16:23 #297696 by Lcvette
Replied by Lcvette on topic QtPyVCP - First VCP tutorial problems
if you look at the probe basic launchers it will show you it is actually calling up scripts to launch everything needed, you could put your fil in the dev folder and mimic the launchers of PB but change the file names to match your new vcp1. this should give you an easy way to launch eveyrthing needed. the venv requirement really made things toublesome..grrr
The following user(s) said Thank You: spumco

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

More
24 Aug 2025 11:56 #333848 by emresensoy
Replied by emresensoy on topic QtPyVCP - First VCP tutorial problems
I need help with same problem, the default template is never start to work with "editvcp vcp1"

when run the ./tutorial.sh it generates;
emre@linuxcnc:~/vcp-template$ ./tutorial.sh
Venv Exists
Activate Venv
./tutorial.sh: line 104: /home/emre/.linuxcnc_venv/bin/activate: No such file or directory
Enter a name for the VCP or Q to quit vcp2
VCP Template files sourced from /home/emre/vcp-template
Copying the VCP Template to /home/emre/vcp2
+ pip install -e .
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
+ set +x
Note: to edit the VCP in a terminal editvcp vcp2
Copy the Tutorial LinuxCNC Configuration Files? Yes No yes
Creating the Directory /home/emre/linuxcnc/configs/vcp2
Copying Sample Config Files from /home/emre/vcp-template/basic_vcp/ to /home/emre/linuxcnc/configs/vcp2

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

More
26 Aug 2025 18:21 #333956 by Lcvette
Replied by Lcvette on topic QtPyVCP - First VCP tutorial problems
same advise as above, follow how the pb launchers are working and do the same thing for your vcp1, they are calling scripts and will require the terminal be in venv mode and the scripts pointing to the correct files.

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

Moderators: KCJLcvette
Time to create page: 0.059 seconds
Powered by Kunena Forum