Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Re)install for current Python version. #4

Open
dennizzzz opened this issue Aug 28, 2023 · 0 comments
Open

(Re)install for current Python version. #4

dennizzzz opened this issue Aug 28, 2023 · 0 comments

Comments

@dennizzzz
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant