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 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 to join the conversation.

More
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...
 

Please Log in 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 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 to join the conversation.

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

Please Log in to join the conversation.

More
4 years 6 months ago #240827 by tripwire
Well, I ran into a few errors.

dave@debianDave:~/dev$ sudo apt install build-essential cmake mesa-common-dev mesa-utils freeglut3-dev ninja git-lfs
[sudo] password for dave:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ninja

So I tried the following:
dave@debianDave:~/dev$ sudo apt-get install -y ninja-build
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ninja-build is already the newest version (1.10.1-1).
 (a bunch of output)

(etc. ... nothing installed...)

Then:
dave@debianDave:~$ git clone --recursive gitlab.kitware.com/vtk/vtk.git
fatal: repository 'gitlab.kitware.com/vtk/vtk.git' does not exist

So I downloaded a zip file from that site, extracted it and then:

dave@debianDave:~/dev/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

This produced a lot of output but I got the following errors in the end:

CMake Warning at CMake/vtkModule.cmake:4541 (find_package):
  Found package configuration file:

    /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake

  but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT
  FOUND.  Reason given by package:

  Failed to find Qt5 component "Quick" config file at
  "/usr/lib/x86_64-linux-gnu/cmake/Qt5Quick/Qt5QuickConfig.cmake"

  Failed to find Qt5 component "Qml" config file at
  "/usr/lib/x86_64-linux-gnu/cmake/Qt5Qml/Qt5QmlConfig.cmake"

 

Call Stack (most recent call first):
  GUISupport/QtQuick/CMakeLists.txt:16 (vtk_module_find_package)


CMake Error at CMake/vtkModule.cmake:4547 (message):
  Could not find the Qt5 external dependency.
Call Stack (most recent call first):
  GUISupport/QtQuick/CMakeLists.txt:16 (vtk_module_find_package)


-- Configuring incomplete, errors occurred!
See also "/home/dave/dev/vtk/build/CMakeFiles/CMakeOutput.log".
See also "/home/dave/dev/vtk/build/CMakeFiles/CMakeError.log".


Can you specify which packages to install to fix this?

I appreciate your help, thanks!!
 

Please Log in to join the conversation.

More
4 years 6 months ago #240839 by TurBoss
Hi,


> $ git clone gitlab.kitware.com/vtk/vtk.git
> fatal: repository 'gitlab.kitware.com/vtk/vtk.git' does not exist


try this to get the source and the sub-modules needed to build (zip doesn't include them)

Code:
git clone --recursive https://gitlab.kitware.com/vtk/vtk.git


> but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT
>  FOUND.  Reason given by package:


plz try to install this ones


$ sudo apt install qtquickcontrols2-5-dev

Please Log in to join the conversation.

More
4 years 6 months ago #240847 by tripwire
Thanks again! I'll give that a try tomorrow.

Please Log in to join the conversation.

More
4 years 6 months ago #240905 by tripwire
Well, I got the same errors doing the cmake. I tried to install Qt from source which seems to be the only open source option. It's HUGE! And I got errors when trying to build Qt.

So, I appreciate the advice you've given me. I think I'm just not Linux savvy enough to fix it if something goes off-script.

So I think I'm going to rewind back to Python 3.9 (if I can figure that out...)

Thanks again!

Please Log in to join the conversation.

Time to create page: 0.198 seconds
Powered by Kunena Forum