Giter Site home page Giter Site logo

Install breaks Qt about hatched HOT 8 CLOSED

plottertools avatar plottertools commented on June 14, 2024
Install breaks Qt

from hatched.

Comments (8)

abey79 avatar abey79 commented on June 14, 2024

I can't reproduce this. Can you provide more information on your OS, how you installed Python and pipx, etc.

Also, how did you install vpype in the first place? The current version is 1.10. Did you install vsketch as well?

from hatched.

sr67 avatar sr67 commented on June 14, 2024

Hi, sure. Thanks for having a look

OS:
lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: 2021.1
Codename: kali-rolling

Python:
Don't recall how, or if, I installed, but...
python --version
Python 3.9.5

vpype:
pipx install "vpype[all]"
pipx inject vpype git+https://github.com/abey79/vsketch --include-apps
pipx inject vpype hatched

I also injected the following, but only get this behavior when I inject hatched in any order in the process
pipx inject vpype vpype-occult
pipx inject vpype vpype-perspective
pipx inject vpype vpype-embroidery
pipx inject vpype vpype-vectrace
pipx inject vpype git+https://github.com/serycjon/vpype-flow-imager
pipx inject vpype vpype-pixelart

from hatched.

abey79 avatar abey79 commented on June 14, 2024

Can you provide the output of pipx inject --verbose vpype hatched (when starting clean)?

Edit: actually the whole thing would be interesting:

$ pipx uninstall vpype
$ pipx install --verbose vpype
$ pipx inject --verbose vpype hatched

from hatched.

sr67 avatar sr67 commented on June 14, 2024

$ pipx uninstall vpype
uninstalled vpype! 🌟

$ pipx install --verbose vpype
pipx >(setup:729): pipx version is 1.0.0
pipx >(setup:730): Default python interpreter is '/home/art/miniconda3/bin/python'
pipx >(package_name_from_spec:323): Determined package name: vpype
pipx >(package_name_from_spec:324): Package name determined in 0.0s
creating virtual environment...
pipx >(run_subprocess:172): running /home/art/miniconda3/bin/python -m venv --without-pip /home/art/.local/pipx/venvs/vpype
pipx >(run_subprocess:172): running /home/art/.local/pipx/venvs/vpype/bin/python -c import sysconfig; print(sysconfig.get_path('purelib'))
pipx >(run_subprocess:172): running /home/art/.local/pipx/shared/bin/python -c import sysconfig; print(sysconfig.get_path('purelib'))
pipx >(run_subprocess:172): running /home/art/.local/pipx/venvs/vpype/bin/python --version
pipx >(_parsed_package_to_package_or_url:128): cleaned package spec: vpype
installing vpype...
pipx >(run_subprocess:172): running /home/art/.local/pipx/venvs/vpype/bin/python -m pip install vpype
pipx >(run_subprocess:172): running <fetch_info_in_venv commands>
pipx >(get_venv_metadata_for_package:303): get_venv_metadata_for_package: 136ms
pipx >(_parsed_package_to_package_or_url:128): cleaned package spec: vpype
pipx >(needs_upgrade:69): Time since last upgrade of shared libs, in seconds: 246123. Upgrade will be run by pipx if greater than 2592000.
installed package vpype 1.10.0, installed using Python 3.9.5
These apps are now globally available
- vpype
done! 🌟

$ vpype random show
WARNING:root:!!! show: vpype viewer not available, reverting to classic mode. Note: use pip install vpype[all] to install the vpype viewer.
WARNING:root:!!! show: classic viewer not available, ignore command. Note: use pip install matplotlib to enable the classic viewer.

$ pipx inject --verbose vpype hatched
pipx >(setup:729): pipx version is 1.0.0
pipx >(setup:730): Default python interpreter is '/home/art/miniconda3/bin/python'
pipx >(run_pipx_command:169): Virtual Environment location is /home/art/.local/pipx/venvs/vpype
pipx >(needs_upgrade:69): Time since last upgrade of shared libs, in seconds: 246223. Upgrade will be run by pipx if greater than 2592000.
pipx >(package_name_from_spec:323): Determined package name: hatched
pipx >(package_name_from_spec:324): Package name determined in 0.0s
pipx >(_parsed_package_to_package_or_url:128): cleaned package spec: hatched
installing hatched...
pipx >(run_subprocess:172): running /home/art/.local/pipx/venvs/vpype/bin/python -m pip install hatched
pipx >(run_subprocess:172): running <fetch_info_in_venv commands>
pipx >(get_venv_metadata_for_package:303): get_venv_metadata_for_package: 469ms
pipx >(_parsed_package_to_package_or_url:128): cleaned package spec: hatched
injected package hatched into venv vpype
done! 🌟

$ vpype random show
WARNING:root:!!! show: vpype viewer not available, reverting to classic mode. Note: use pip install vpype[all] to install the vpype viewer.

from hatched.

sr67 avatar sr67 commented on June 14, 2024

Same error if I install just vpype[all] and hatched without vsketch. And vpype version remains 1.10.0 without vsketch install. show works before hatched install but not after.

$ pipx install --verbose "vpype[all]"
pipx >(setup:729): pipx version is 1.0.0
pipx >(setup:730): Default python interpreter is '/home/art/miniconda3/bin/python'
pipx >(package_name_from_spec:323): Determined package name: vpype
pipx >(package_name_from_spec:324): Package name determined in 0.0s
creating virtual environment...
pipx >(run_subprocess:172): running /home/art/miniconda3/bin/python -m venv --without-pip /home/art/.local/pipx/venvs/vpype
pipx >(run_subprocess:172): running /home/art/.local/pipx/venvs/vpype/bin/python -c import sysconfig; print(sysconfig.get_path('purelib'))
pipx >(run_subprocess:172): running /home/art/.local/pipx/shared/bin/python -c import sysconfig; print(sysconfig.get_path('purelib'))
pipx >(run_subprocess:172): running /home/art/.local/pipx/venvs/vpype/bin/python --version
pipx >(_parsed_package_to_package_or_url:128): cleaned package spec: vpype[all]
installing vpype from spec 'vpype[all]'...
pipx >(run_subprocess:172): running /home/art/.local/pipx/venvs/vpype/bin/python -m pip install vpype[all]
pipx >(run_subprocess:172): running <fetch_info_in_venv commands>
pipx >(get_venv_metadata_for_package:303): get_venv_metadata_for_package: 381ms
pipx >(_parsed_package_to_package_or_url:128): cleaned package spec: vpype[all]
pipx >(needs_upgrade:69): Time since last upgrade of shared libs, in seconds: 247428. Upgrade will be run by pipx if greater than 2592000.
installed package vpype 1.10.0, installed using Python 3.9.5
These apps are now globally available
- vpype
done! 🌟

(this works)
$ vpype random show
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-art'

$ pipx inject --verbose vpype hatched
pipx >(setup:729): pipx version is 1.0.0
pipx >(setup:730): Default python interpreter is '/home/art/miniconda3/bin/python'
pipx >(run_pipx_command:169): Virtual Environment location is /home/art/.local/pipx/venvs/vpype
pipx >(needs_upgrade:69): Time since last upgrade of shared libs, in seconds: 247442. Upgrade will be run by pipx if greater than 2592000.
pipx >(package_name_from_spec:323): Determined package name: hatched
pipx >(package_name_from_spec:324): Package name determined in 0.0s
pipx >(_parsed_package_to_package_or_url:128): cleaned package spec: hatched
installing hatched...
pipx >(run_subprocess:172): running /home/art/.local/pipx/venvs/vpype/bin/python -m pip install hatched
pipx >(run_subprocess:172): running <fetch_info_in_venv commands>
pipx >(get_venv_metadata_for_package:303): get_venv_metadata_for_package: 442ms
pipx >(_parsed_package_to_package_or_url:128): cleaned package spec: hatched
injected package hatched into venv vpype
done! 🌟

$ vpype --version
vpype 1.10.0

$ vpype random show
QObject::moveToThread: Current thread (0x563e8563f400) is not the object's thread (0x563e8564c980).
Cannot move to target thread (0x563e8563f400)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/art/.local/pipx/venvs/vpype/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.

Aborted

from hatched.

abey79 avatar abey79 commented on June 14, 2024

OK, I think I've figured it out (and could have from your first message -- sorry for having you run circles 😅).

Try:

$ pipx runpip vpype uninstall opencv-python
$ pipx runpip vpype install opencv-python-headless

The base OpenCV installation includes a Qt distribution that appears to interfere with PySide2 in your case.

from hatched.

sr67 avatar sr67 commented on June 14, 2024

No worries, appreciate your help! Yes that seems to have solved my issue. Thanks so much.

from hatched.

abey79 avatar abey79 commented on June 14, 2024

Juste released hatched 0.2.0, which fixes this issue for good.

from hatched.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.