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

AttributeError: 'Page' object has no attribute 'getImageList' (Python 3.7) #2

Open
rybshik opened this issue Oct 14, 2023 · 3 comments
Labels
good first issue Good for newcomers

Comments

@rybshik
Copy link

rybshik commented Oct 14, 2023

Kaggle Jupiter notebook with virtual environment Python 3.7
(does not work with Python 3.8, 3.9, 3.10)

$ pip install sacremoses
$ pip install protobuf==3.20.3 --upgrade

%%writefile test.py
from survey import Surveyor
mysurveyor = Surveyor()
mysurveyor.survey('vision transformers')

Writing test.py

$ python3.7 test.py

File "/kaggle/working/Auto-Research/src/Surveyor.py", line 1084, in extract_images
images.extend(page.getImageList())
AttributeError: 'Page' object has no attribute 'getImageList'

Related info: https://stackoverflow.com/questions/75321414/python-page-object-has-no-attribute-getimagelist-where-i-try-to-extract-im
https://pymupdf.readthedocs.io/en/latest/znames.html

@rybshik rybshik changed the title AttributeError: 'Page' object has no attribute 'getImageList' (with virtual environment Python 3.7) AttributeError: 'Page' object has no attribute 'getImageList' (virtual environment Python 3.7) Oct 14, 2023
@rybshik rybshik changed the title AttributeError: 'Page' object has no attribute 'getImageList' (virtual environment Python 3.7) AttributeError: 'Page' object has no attribute 'getImageList' (Python 3.7 virtual environment) Oct 14, 2023
@rybshik rybshik changed the title AttributeError: 'Page' object has no attribute 'getImageList' (Python 3.7 virtual environment) AttributeError: 'Page' object has no attribute 'getImageList' (Python 3.7) Oct 14, 2023
@sidphbot
Copy link
Owner

Hi thanks for checking this out and posting your issue, I have been quite busy since a few months and am not able to post any fixes for now.

The issue here is that some of the dependencies have breaking changes and I forgot to add the exact versions for which it was working. I will try to fix the issues and bring it to a working state when I find some time in the next few months, but feel free to try out the versions available for every dependency during my last commit to this package. If you fix it already before me, feel free to put a pull request I will be happy to merge it.

@sidphbot sidphbot added the good first issue Good for newcomers label Oct 17, 2023
@rybshik
Copy link
Author

rybshik commented Oct 31, 2023

Hi,
Thanks for your reply.

How can I disable cuda to run on CPU only (without GPU)?

Thanks,
Alex.

@rybshik
Copy link
Author

rybshik commented Oct 31, 2023 via email

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

No branches or pull requests

2 participants