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: 'JPEG' object has no attribute 'decompressor' #2

Open
vikalpjain91 opened this issue Feb 8, 2020 · 1 comment
Open

Comments

@vikalpjain91
Copy link

While executing your code we got this issue:
jpeg.JPEG("D:\Work\ML\API\MNB\28 - AUTONOMOUS VEHICLE-KAGGLE\Winners_solution\Try\1.jpeg")
File "D:\Installation\Anaconda\lib\site-packages\jpeg4py_py.py", line 128, in init
super(JPEG, self).init(lib_)
File "D:\Installation\Anaconda\lib\site-packages\jpeg4py_py.py", line 64, in init
jpeg.initialize()
File "D:\Installation\Anaconda\lib\site-packages\jpeg4py_cffi.py", line 212, in initialize
_initialize(backends)
File "D:\Installation\Anaconda\lib\site-packages\jpeg4py_cffi.py", line 193, in _initialize
raise OSError("Could not load libjpeg-turbo library")
OSError: Could not load libjpeg-turbo library
Exception ignored in: <function JPEG.del at 0x000002A7FB446438>
Traceback (most recent call last):
File "D:\Installation\Anaconda\lib\site-packages\jpeg4py_py.py", line 215, in del
if self.decompressor is not None:
AttributeError: 'JPEG' object has no attribute 'decompressor'

I have installed jpeg4py using pip but not sure from where I can get rid of this issue.
Any work around? I am currently using windows and Linux I dont have access as of now.

Reference where you have used JPEG():
https://github.com/bamps53/kaggle-autonomous-driving2019/blob/master/datasets/dataset_factory.py
Line: 44

@vikalpjain91
Copy link
Author

is cv2.imread(image_path, cv2.IMREAD_UNCHANGED)

will be fine?

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

1 participant