PackageNotFoundError qtpyvcp

More
4 years 6 months ago #240757 by tripwire
Everything was working fine and I created a nice GUI vcp in qtpyvcp. But after a simple computer restart, I now get the following error when trying to edit my vcp (and similar error if I try to launch the vcp from linuxcnc.)
Code:
dave@debianDave:~$ editvcp vcp1 Traceback (most recent call last):   File "/home/dave/.local/bin/editvcp", line 33, in <module>     sys.exit(load_entry_point('qtpyvcp', 'console_scripts', 'editvcp')())   File "/home/dave/.local/bin/editvcp", line 22, in importlib_load_entry_point     for entry_point in distribution(dist_name).entry_points   File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 957, in distribution     return Distribution.from_name(distribution_name)   File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 548, in from_name     raise PackageNotFoundError(name) importlib.metadata.PackageNotFoundError: No package metadata was found for qtpyvcp other info: dave@debianDave:~$ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux bookworm/sid" NAME="Debian GNU/Linux" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" dave@debianDave:~$ python3 --version Python 3.10.4 dave@debianDave:~$ which python3 /usr/bin/python3

Any help in solving this issue will be greatly appreciated, thanks!

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

More
4 years 6 months ago #240777 by MoshKopp
have you copied the xsessionrc ?

Last command in section 4
kcjengr.github.io/probe_basic/dev_install.html

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

More
4 years 6 months ago - 4 years 6 months ago #240803 by tripwire
I may have overlooked that. Thanks for the suggestion!
However, the xsessionrc command follows the " python3 -m pip install --editable ." command. So I don't get that far.
When trying to issue " python3 -m pip install --editable ." get the following output (with errors):
Code:
dave@debianDave:~/qtpyvcp$ pip3 install --editable . Defaulting to user installation because normal site-packages is not writeable Obtaining file:///home/dave/qtpyvcp   Preparing metadata (setup.py) ... done Requirement already satisfied: HiYaPyCo in /home/dave/.local/lib/python3.10/site-packages (from qtpyvcp===python3-master-178.g247f6465) (0.4.16) Requirement already satisfied: MarkupSafe==2.0.1 in /usr/lib/python3/dist-packages (from qtpyvcp===python3-master-178.g247f6465) (2.0.1) Requirement already satisfied: docopt in /home/dave/.local/lib/python3.10/site-packages (from qtpyvcp===python3-master-178.g247f6465) (0.6.2) Collecting oyaml   Using cached oyaml-1.0-py2.py3-none-any.whl (3.0 kB) Requirement already satisfied: psutil in /home/dave/.local/lib/python3.10/site-packages (from qtpyvcp===python3-master-178.g247f6465) (5.9.0) Requirement already satisfied: pyopengl in /usr/lib/python3/dist-packages (from qtpyvcp===python3-master-178.g247f6465) (3.1.5) Collecting pyqtgraph   Using cached pyqtgraph-0.12.4-py3-none-any.whl (995 kB) Requirement already satisfied: pyudev in /home/dave/.local/lib/python3.10/site-packages (from qtpyvcp===python3-master-178.g247f6465) (0.23.2) Requirement already satisfied: qtpy in /home/dave/.local/lib/python3.10/site-packages (from qtpyvcp===python3-master-178.g247f6465) (2.0.1) Collecting simpleeval   Using cached simpleeval-0.9.12-py2.py3-none-any.whl (14 kB) Requirement already satisfied: six in /usr/lib/python3/dist-packages (from qtpyvcp===python3-master-178.g247f6465) (1.16.0) [color=#ff0000]ERROR: Could not find a version that satisfies the requirement vtk (from qtpyvcp) (from versions: none) ERROR: No matching distribution found for vtk[/color]


I welcome any input on that...
 
Last edit: 4 years 6 months ago by tripwire. Reason: new info discovered

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

More
4 years 6 months ago #240806 by MoshKopp
is it possible to start editvcp after you give the Command

export PATH=$PATH:~/.local/bin/

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

More
4 years 6 months ago #240809 by TurBoss
Hello,

there is no vtk in pip for python3.10

i has to be built from sources
```
build vtk python3.10 with QT amd64


$
sudo apt install build-essential cmake mesa-common-dev mesa-utils freeglut3-dev ninja git-lfs

$
git clone --recursive gitlab.kitware.com/vtk/vtk.git

$
cd vtk

$
cmake -B build -S . -GNinja -DVTK_WRAP_PYTHON=ON -DVTK_PYTHON_VERSION=3 -DVTK_ENABLE_WRAPPING=ON -DVTK_GROUP_ENABLE_Qt=YES -DVTK_QT_VERSION=5

$
cmake --build build --parallel 2

#
cmake --install build



build linuxcnc against python3.10 or rebuild if new boost lib in system


install for vtk runtime

libospray libopenvr_api liblas libcgns libadios2_cxx11 libhpdf libboost_python310

run or add this line to your .bashrc
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.10/site-packages/

```

:)
 

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

More
4 years 6 months ago #240810 by tripwire
I'll give that a try, thanks!!

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

Moderators: KCJ, Lcvette
Time to create page: 0.228 seconds
Powered by Kunena Forum