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

Unable to run using python3.6 #1

Closed
YuvalBahat opened this issue May 3, 2020 · 2 comments
Closed

Unable to run using python3.6 #1

YuvalBahat opened this issue May 3, 2020 · 2 comments

Comments

@YuvalBahat
Copy link

Hi,
I have been trying to use this important code using python 3.6. I followed the compilation instructions which terminated without errors, but then when I'm trying to run test_jpeg_read_python.py I get the following error:
E ModuleNotFoundError: No module named '_jpegtools'

I did some reading, and found that this probably has to do with incompatibility between python versions used by pyhon-boost and the one I'm using. Unfortunately, I'm unfamiliar with python-boost...
I'd be grateful for any help I can get on this.
Thanks!

@klauscc
Copy link
Owner

klauscc commented May 8, 2020

It's the import problem. Replacing import _jpegtools with from . import _jpegtools in file python/jpegtools/__init__.py will fix it. I already merged it into the master branch.

@YuvalBahat
Copy link
Author

Now it works. Thanks a lot!

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