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

cannot run under python 3.10 #872

Closed
starsareintherose opened this issue Dec 13, 2021 · 5 comments
Closed

cannot run under python 3.10 #872

starsareintherose opened this issue Dec 13, 2021 · 5 comments

Comments

@starsareintherose
Copy link

Describe the bug
python 3.10 updated and then it broken

To Reproduce

Traceback (most recent call last):
  File "/usr/bin/ocrmypdf", line 33, in <module>
    sys.exit(load_entry_point('ocrmypdf==13.1.0', 'console_scripts', 'ocrmypdf')())
  File "/usr/bin/ocrmypdf", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 919, in distribution
    return Distribution.from_name(distribution_name)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 518, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for ocrmypdf

Expected behavior
can run under 3.10

System (please complete the following information):

  • OS:ArchLinux
  • Python version:3.10.1
  • OCRmyPDF version:13.1.0

Installation
AUR

Additional context
Add any other context about the problem here.

@jbarlow83
Copy link
Collaborator

CI currently tests Python 3.10 on all three major platforms. The issue is likely local configuration or related to Arch. Perhaps reinstalling Python packages will suffice.

@pigmonkey
Copy link
Contributor

This is an Arch specific issue and should be closed here.

Arch pushed a new Python version. AUR Python packages need to be rebuilt whenever this happens. The bump to 13.1.1 will cause this to happen for OCRmyPDF, but there's still a couple AUR Python dependencies that Arch users will need to manually reinstall (python-coloredlogs, python-humanfriendly).

@starsareintherose
Copy link
Author

okay, thanks for telling me.

@ki9us
Copy link

ki9us commented May 19, 2023

I had this error on the first install. For me, there was no python-coloredlogs in pacman, and AUR's python-coloredlogs was not recognized by ocrmypdf. pip install coloredlogs worked though.

@Poorna2211
Copy link

Poorna2211 commented Oct 31, 2023

Hi I am having same issue I even installed the above libraries coloredlogs and humanfriendly but I am getting the same error I even uninstalled all the libraries and reinstalled again but no use
The system I am using is acer
Os windows 11
Python 3.10.7

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

5 participants