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

Does it support Python 3.10+? #139

Closed
jsh9 opened this issue Mar 25, 2024 · 5 comments
Closed

Does it support Python 3.10+? #139

jsh9 opened this issue Mar 25, 2024 · 5 comments

Comments

@jsh9
Copy link

jsh9 commented Mar 25, 2024

Hi, I was trying this package for the first time, and I ran into this issue:

RuntimeError: pyexiv2 only supports these Python versions: ['3.5', '3.6', 
'3.7', '3.8', '3.9'] . But your version is 3.1 .

My Python version is 3.11. Apparently there's also a bug in parsing my current Python version.

My pyexiv2 version is 2.5.0

Thanks!

@LeoHsiao1
Copy link
Owner

LeoHsiao1 commented Mar 25, 2024

Yes, this code used to have a problem recognizing python 3.10 as python 3.1. But in 2021 I have fixed this bug.
The question is why are you installing an old version of pyexiv2.
May I ask how you installed pyexiv2? If it was pip install pyexiv2, what version of pyexiv2 does it show?
May I ask the version of your computer's operating system?

@jsh9
Copy link
Author

jsh9 commented Mar 25, 2024

I used pip install pyexiv2 and 2.5.0 was installed.

If I tried to force the version by pip install pyexiv2==2.12.0, I encountered this error:

ERROR: Ignored the following yanked versions: 2.4.0, 2.6.0
ERROR: Could not find a version that satisfies the requirement pyexiv2==2.12.0 (from versions: 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.3.2, 2.4.1, 2.5.0)
ERROR: No matching distribution found for pyexiv2==2.12.0

It's probably because the newer versions don't have corresponding distributions for Python 3.11. (I'm on Python 3.11, and I'm on macOS.)

@LeoHsiao1
Copy link
Owner

I'm guessing your CPU is Apple M1, which uses the ARM architecture.
Currently, if you use ARM platform, you need to compile exiv2 and pyexiv2 manually, which is troublesome. (related issue)
The newer version of pyexiv2 declares a defect for arm, so when you execute pip install pyexiv2==2.12.0 you will get an error.
The older versions of pyexiv2 don't strictly declare compatibility, so you can install pyexiv2==2.5.0. But even after installing it, it can't be imported as a Python library.

@LeoHsiao1
Copy link
Owner

To avoid misleading new users, I will hide older versions of pyexiv2 below 2.5.0 on pypi.org.

@LeoHsiao1
Copy link
Owner

LeoHsiao1 commented Jul 8, 2024

Hi!
I just released pyexiv2 v2.14.0, which provides the wheel package on macos-14 with arm64 architecture.
See #108

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

2 participants