OpenNumismat / open-numismat

OpenNumismat, is intended primarily for registering a collection of coins. But it is also suitable for other types of collectibles - stamps, postcards, badges and more exotic things.
http://opennumismat.github.io/
GNU General Public License v3.0
95 stars 27 forks source link

Problems running OpenNumismat on Ubuntu 24.04 (deb and flatpak) #231

Open business-tomcat opened 1 week ago

business-tomcat commented 1 week ago

Hi!

I have big problems running OpenNumismat (latest version 1.9.11) on Ubuntu 24.04. It was working fine with Ubuntu 22.04, using the deb package.

After upgrade to 24.04, deb file can be installled, but shows error at start:

$ open-numismat 
Traceback (most recent call last):
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 397, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/open-numismat", line 33, in <module>
    sys.exit(load_entry_point('OpenNumismat==1.9.11', 'gui_scripts', 'open-numismat')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/open-numismat", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 862, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 399, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for OpenNumismat

So I tried the flatpak version. Can also be installed without problems, but unfortunately, there is no possibility to search coins at Colnect. But I really need the catalogue ...

Output:

$ flatpak run org.opennumismat.OpenNumismat             
win32com module missed. Exporting to Word not available
GeoChart does not support non-English country names
Importing from Colnect not available
Importing from Numista not available
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/app/lib/python3.10/site-packages/PySide6/Qt/libexec/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/app/lib/python3.10/site-packages/PySide6/Qt/libexec/qtwebengine_dictionaries'
QSplitter::replaceWidget: Trying to replace a widget with itself

Config file seems to be fine:

$ cat config/Janis/OpenNumismat.conf 
...
[mainwindow]
...
colnect_locale=de
colnect_skip_currency=true
...

I even tested the windows version with wine, but no luck.

Anyone an idea? Don't want to switch to Windows just for OpenNumismat.

NEKolev commented 1 week ago

I'm not the developer and may write inaccurate things:

  1. Have you tried clearing the cache from Settings/Import "Clear cache" button.
  2. You may have exceeded the monthly limit on Colnect. As far as I know they have one. Alternatively you can try with some Proxy/VPN if you have one.
JanisV commented 1 week ago

Flatpak version havn't Colnect key, so it can't access to it. But with new proxy this behavior can be changed

JanisV commented 1 week ago

Problem in different python versions: deb-package build on Ubuntu 22.04 with python 3.10, ubuntu 24.04 has python 3.12. Quick work around is a copy python modules in different place: sudo ln -s /opt/venvs/open-numismat/lib/python3.10/ /opt/venvs/open-numismat/lib/python3.12

But it give another error with PIL.

JanisV commented 1 week ago

@business-tomcat, you can try open-numismat_1.9.11.19_all_24.deb package from Development Build that is builded on Ubuntu 24.04. Flatpak will be fixed too.

business-tomcat commented 1 week ago

Thanks for the explanation and the provided releases - it's working fine :+1: Can be run under Ubuntu 24.04 and also Colnect is reachable.