Closed tkocou closed 1 year ago
Hi! What linux distro did you try? Normally you should be able to run it if you have pyqt6 installed, and are able to run other Qt based applications. If you are running in a docker, then you'll probably need to make sure that your display is attached to the docker instance, and that you have exposed your xhost, i think its either "host+" or "xhost+". Above that there are a couple of docker images made to demonstrate running gui apps in it. If not in docker, you should be fine with just a virtualenv, or venv, even conda.
Thank you for the reply. I'll check on the pyqt6 installation. I am using Linux Mint. I blew away the previous clone of this repository, re-cloned the repository and invoked the install.sh script. The next set of instructions make no sense: ...... launch with:
source nodesenv/bin/activate python main.py ...... After running the install.sh script, there is no **"nodesenv"** directory. I'm investigating this. Update: The install.sh needs a slight modification. From: python -m venv nodes_env To: python -m venv ./nodes_env
Next: The install.sh script needs execute permissions. Then it needs to be ran from the Linux $HOME directory. Lastly, The "launch" directions should specify "cd ainodes-engine" before invoking "source nodes_env/bin/activate" and "python main.py"
=================== Those changes got things going again, however, I still am having the same issue as initially reported. .............. pyqt6 is being installed .......... Collecting pyqt6 Using cached PyQt6-6.5.1-1-cp37-abi3-manylinux_2_28_x86_64.whl (7.8 MB) Collecting pyqt6-webengine Using cached PyQt6_WebEngine-6.5.0-cp37-abi3-manylinux_2_28_x86_64.whl (253 kB) Collecting pyqt6-3D Using cached PyQt6_3D-6.5.0-1-cp37-abi3-manylinux_2_28_x86_64.whl (1.0 MB) ............ error reported ................. Collecting pygobject Using cached PyGObject-3.44.1-cp310-cp310-linux_x86_64.whl Collecting pycairo>=1.16.0 Using cached pycairo-1.24.0-cp310-cp310-linux_x86_64.whl Installing collected packages: pycairo, pygobject Successfully installed pycairo-1.24.0 pygobject-3.44.1 /home/tko/ainodes-engine/main.py:48: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk Using HF Cache in app dir qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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: vkkhrdisplay, wayland, eglfs, minimal, wayland-egl, offscreen, xcb, vnc, linuxfb, minimalegl.
Aborted (core dumped)
I followed the instructions for installing in Linux. The first error was:
Package gobject-introspection-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gobject-introspection-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gobject-introspection-1.0' found Command '('pkg-config', '--print-errors', '--exists', 'gobject-introspection-1.0 >= 1.56.0')' returned non-zero exit status 1.
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pygobject Failed to build pygobject ERROR: Could not build wheels for pygobject, which is required to install pyproject.toml-based projects
So I installed the libgirepository1.0-dev package. Now the program throws this error:
PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk Using HF Cache in app dir qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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: vkkhrdisplay, wayland, eglfs, minimal, wayland-egl, offscreen, xcb, vnc, linuxfb, minimalegl.
Aborted (core dumped)
I have GTK 3 installed. Is there some other library missing?