Comments (7)
Thanks for the info! I don't know off the top of my head what would cause that traceback, but I'll look into it and get back to you.
The segfault you initially got will be harder to debug... And the missing tablib dependency should be fixed in main, but I haven't made a patch release for that yet.
from naturtag.
I just rebuilt packages from the main branch: https://github.com/pyinat/naturtag/actions/runs/4663516616
Try installing the Linux PyInstaller package there, and let me know what happens.
Since that includes several work-in-progress changes, it's possible some other errors could come up (like #307), but I'd mainly like to see if you still get that segmentation fault.
from naturtag.
Thanks! I downloaded naturtag-linux.tar.gz and got a new error:
$ ./naturtag
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: wayland, minimal, wayland-egl, linuxfb, xcb, vkkhrdisplay, minimalegl, eglfs, offscreen, vnc.
Aborted (core dumped)
I ran it with QT_DEBUG_PLUGINS=1 ./naturtag
and it included this:
qt.core.library: "/home/max/Desktop/naturtag-linux2/PySide6/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /home/max/Desktop/naturtag-linux2/PySide6/Qt/plugins/platforms/libqxcb.so: (/usr/lib/libQt6XcbQpa.so.6: undefined symbol: _ZN22QWindowSystemInterface22handleExtendedKeyEventEP7QWindowmN6QEvent4TypeEi6QFlagsIN2Qt16KeyboardModifierEEjjjRK7QStringbtb, version Qt_6_PRIVATE_API)
qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/home/max/Desktop/naturtag-linux2/PySide6/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/max/Desktop/naturtag-linux2/PySide6/Qt/plugins/platforms/libqxcb.so: (/usr/lib/libQt6XcbQpa.so.6: undefined symbol: _ZN22QWindowSystemInterface22handleExtendedKeyEventEP7QWindowmN6QEvent4TypeEi6QFlagsIN2Qt16KeyboardModifierEEjjjRK7QStringbtb, version Qt_6_PRIVATE_API)"
Can you compile it without any shared libraries?
from naturtag.
All of the QT binaries included in that package are pre-compiled and distributed with PySide6. I'd rather avoid compiling that from source if possible, so let's try a few other things first.
Some of the other libraries come from the build environment and are collected by PyInstaller. It's possible it needs to install some additional XCB packages before building (here) and/or explicitly include another library in the PyInstaller spec (here) if it's not collecting it automatically. Possibly libxcb-keysyms
? Just a guess based on that variable name that contains ExtendedKeyEvent...KeyboardModifier
.
Could you run:
ldd /home/max/Desktop/naturtag-linux2/PySide6/Qt/plugins/platforms/libqxcb.so
And tell me if any of those libraries are listed as "not found"? Also, are you running under X11, or Wayland?
Another thing to try that may help narrow it down a bit:
- Create a new virtualenv and
pip install pyside6
- Try running this "hello world" example
Meanwhile, I'll try to reproduce this locally. Sorry for the hassle, and thanks for helping to debug this!
from naturtag.
I'm on X11. I get one 'not found' message:
$ ldd /home/max/Desktop/naturtag-linux2/PySide6/Qt/plugins/platforms/libqxcb.so
/home/max/Desktop/naturtag-linux2/PySide6/Qt/plugins/platforms/libqxcb.so: /usr/lib/libQt6Core.so.6: version `Qt_6.5' not found (required by /home/max/Desktop/naturtag-linux2/PySide6/Qt/plugins/platforms/libqxcb.so)
Good news though! These commands got it working for me:
cd naturtag
python -m venv venv
source venv/bin/activate
pip install .
naturtag-ui
from naturtag.
Oh, great! When you previously got that ModuleNotFoundError: No module named 'PySide6.QtGui'
, was that running outside of a virtualenv? Usually the problem there is a mismatch between the python interpreter that runs it vs. the interpreter associated with the default pip
that actually installed the packages. In that case, the fix is either:
- Use
python -m pip install
, or - Use pyenv to manage python versions
But it's generally best to stick with virtualenvs instead of the user site-packages.
/usr/lib/libQt6Core.so.6: version 'Qt_6.5' not found
Interesting, it looks like it's trying to use your system-level libQt6Core.so
(i.e., from a package installed with pacman
that depends on Qt) instead of the one included in the Naturtag package, and the system-level version must be something older than 6.5.
Any ideas why that would happen? Off the top of my head, I'm not sure if that would just be an issue with the order of paths in $PATH
, or a problem with how the Naturtag package is being built. My experience with C/C++ and dynamic libraries is fairly rusty.
from naturtag.
I'm going to call this done, but let me know if you have any more issues or questions!
from naturtag.
Related Issues (20)
- Add filters for observation annotations, obs fields, and tags
- Add full text search for observations
- Auto-detect system setting for light/dark mode
- Adjustable taxonomy browser layout
- Improve first-time setup and observation download
- Add CLI subcommand to edit config
- Add CLI verbosity levels
- Add CLI unit tests
- Export and convert user observation data
- Improve CLI output
- Search and display common names in other languages
- Populate a drop-down for locale setting
- Update database schema after updating to new naturtag version
- Include assets folder in wheel published to PyPI HOT 1
- Iconic taxa search icons have disappeared HOT 1
- Add icon below thumbnails to indicate pending/unwritten tags available
- Additional package formats?
- Add basic filters for user observations
- Occasionally unresponsive buttons
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from naturtag.