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

fitz.__version__` does not work anymore #3774

Closed
noppelmax opened this issue Aug 13, 2024 · 3 comments
Closed

fitz.__version__` does not work anymore #3774

noppelmax opened this issue Aug 13, 2024 · 3 comments
Labels
not a bug not a bug / user error / unable to reproduce

Comments

@noppelmax
Copy link

Description of the bug

In v1.23.9 I was able to do fitz.__version__ like in any other lib. In v1.24.9 this does no longer work. Is that intended?

max@merry ~/github/zotlinksToPdfs                                                    [14:05:14]
(base) > $ python demo.py                                                                      
Traceback (most recent call last):
  File "/home/max/github/zotlinksToPdfs/demo.py", line 3, in <module>
    print(fitz.__version__)
          ^^^^^^^^^^^^^^^^
AttributeError: module 'fitz' has no attribute '__version__'

How to reproduce the bug

import fitz  # PyMuPDF

print(fitz.__version__)

PyMuPDF version

1.24.9

Operating system

Linux

Python version

3.11

@JorjMcKie JorjMcKie added the not a bug not a bug / user error / unable to reproduce label Aug 13, 2024
@JorjMcKie
Copy link
Collaborator

Thanks for reporting this!
Please use PyMuPDF as the import name, or import pymupdf as fitz.
The alias "fitz" may not have copied over one or the other original attributes.
And we do not want to chase every single one of such minor issues.

julian-smith-artifex-com added a commit to ArtifexSoftware/PyMuPDF-julian that referenced this issue Aug 13, 2024
@noppelmax
Copy link
Author

Great! That works! Thank you!

julian-smith-artifex-com added a commit to ArtifexSoftware/PyMuPDF-julian that referenced this issue Aug 19, 2024
@julian-smith-artifex-com
Copy link
Collaborator

Fixed in 1.24.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not a bug not a bug / user error / unable to reproduce
Projects
None yet
Development

No branches or pull requests

3 participants