Replies: 1 comment
-
I see you made an almost identical post over at carsales/pyheif#94 which is probably a more appropriate place. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When, after many difficulties, I managed to install pyheif and libheif, I got the following message: AttributeError: module '_libheif_cffi' has no attribute 'lib'. I will add that the _libheif_cffi.pyd module was originally in the main modules folder, but loosely, so it was not visible at all, only when I moved it to a created folder with the same name it is visible to Python, but it has a problem with the lib attribute . What can I do in such a situation?
Here is the entire cmd entry:
Traceback (most recent call last):
File "F:\Users\Marcin\SynologyDrive\IT\Projekty\Python\jpg2heic.py", line 22, in
convert_jpg_to_heic(input_folder, output_folder)
File "F:\Users\Marcin\SynologyDrive\IT\Projekty\Python\jpg2heic.py", line 12, in convert_jpg_to_heic
heif_file = read(f.read())
^^^^^^^^^^^^^^
File "C:\Users\Marcin\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyheif\reader.py", line 98, in read
heif_file = open(
^^^^^
File "C:\Users\Marcin\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyheif\reader.py", line 107, in open
heif_container = open_container(
^^^^^^^^^^^^^^^
File "C:\Users\Marcin\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyheif\reader.py", line 117, in open_container
ctx = _get_heif_context(d)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Marcin\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyheif\reader.py", line 148, in _get_heif_context
filetype_check = _libheif_cffi.lib.heif_check_filetype(magic, len(magic))
^^^^^^^^^^^^^^^^^^
AttributeError: module '_libheif_cffi' has no attribute 'lib'
I am attaching the module I am writing about:
@
_libheif_cffi.zip
Beta Was this translation helpful? Give feedback.
All reactions