pyinat / naturtag

Tag your nature photos with iNat taxonomy and observation metadata
https://naturtag.readthedocs.io
MIT License
37 stars 4 forks source link

ImportError: PySide6/libpyside6.abi3.so.6.7: undefined symbol #400

Open lsaffre opened 1 month ago

lsaffre commented 1 month ago

The problem

After running "pip install naturtag" and "pip install tablib", I have a traceback when I invoke "naturtag":

$ naturtag Traceback (most recent call last): File "/home/luc/virtualenvs/dev/bin/naturtag", line 5, in from naturtag.cli import main File "/home/luc/virtualenvs/dev/lib/python3.10/site-packages/naturtag/init.py", line 2, in from naturtag.metadata import MetaMetadata, refresh_tags, tag_images File "/home/luc/virtualenvs/dev/lib/python3.10/site-packages/naturtag/metadata/init.py", line 9, in from naturtag.metadata.inat_metadata import ( File "/home/luc/virtualenvs/dev/lib/python3.10/site-packages/naturtag/metadata/inat_metadata.py", line 17, in from naturtag.utils.image_glob import get_valid_image_paths File "/home/luc/virtualenvs/dev/lib/python3.10/site-packages/naturtag/utils/init.py", line 3, in from naturtag.utils.thumbnails import generate_thumbnail File "/home/luc/virtualenvs/dev/lib/python3.10/site-packages/naturtag/utils/thumbnails.py", line 8, in from PySide6.QtGui import QPixmap ImportError: /home/luc/virtualenvs/dev/lib/python3.10/site-packages/PySide6/libpyside6.abi3.so.6.7: undefined symbol: _ZN9QtPrivate25QMetaTypeInterfaceWrapperIP7QObjectE8metaTypeE, version Qt_6

Environment

JWCook commented 1 month ago

Thanks for the bug report! I'll try to get that fixed soon.

JWCook commented 1 month ago

I believe this has been fixed in the latest pre-release build (0.8.0b3). You can get that from the installers here, or pip install -U --pre naturtag to install from PyPI.

There may still be some kinks to work out in the wheels on PyPI, though. Handling some of these binary dependencies with pip alone has been a bit tricky, which is why I started building platform-specific packages with PyInstaller.