Recently my default Python version got updated from 3.9 to 3.11 which broke odroid_homecloud_display:
# /usr/bin/odroid_homecloud_display
Traceback (most recent call last):
File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 563, 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/odroid_homecloud_display", line 33, in <module>
sys.exit(load_entry_point('odroid-homecloud==0.1', 'console_scripts', 'odroid_homecloud_display')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/odroid_homecloud_display", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 981, in distribution
return Distribution.from_name(distribution_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for odroid-homecloud
apt-get --reinstall install odroid-homecloud-display Did not help and even suggested to autoremove python3.9 and related packages.
My solution was to copy the 3.9 files to 3.11, which has a different location for dist-packages.
cp -rupa /usr/lib/python3.9/dist-packages/odroid_homecloud* /usr/local/lib/python3.11/dist-packages/
This works but is a quick and dirty hack. Please fix this properly.
Recently my default Python version got updated from 3.9 to 3.11 which broke odroid_homecloud_display:
apt-get --reinstall install odroid-homecloud-displayDid not help and even suggested to autoremove python3.9 and related packages.My solution was to copy the 3.9 files to 3.11, which has a different location for dist-packages.
cp -rupa /usr/lib/python3.9/dist-packages/odroid_homecloud* /usr/local/lib/python3.11/dist-packages/This works but is a quick and dirty hack. Please fix this properly.