You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when running this with a single heic image with the static image generation (sigal) which uses pillow then i get:
INFO: Using 4 cores
DEBUG: Albums:
dict_values([(path='.', title='test')])
INFO: IMG_20210724_155951.jpg exists - skipping
Traceback (most recent call last):
File "/home/simon/py_sigal/./bin/sigal", line 8, in
sys.exit(main())
File "/home/simon/py_sigal/lib/python3.9/site-packages/click/core.py", line 1137, in call
return self.main(*args, **kwargs)
File "/home/simon/py_sigal/lib/python3.9/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/home/simon/py_sigal/lib/python3.9/site-packages/click/core.py", line 1668, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/simon/py_sigal/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/simon/py_sigal/lib/python3.9/site-packages/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "/home/simon/py_sigal/lib/python3.9/site-packages/sigal/init.py", line 157, in build
gal.build(force=force)
File "/home/simon/py_sigal/lib/python3.9/site-packages/sigal/gallery.py", line 756, in build
for status in self.pool.imap_unordered(worker, media_list):
File "/usr/lib/python3.9/multiprocessing/pool.py", line 870, in next
raise value
File "/usr/lib/python3.9/multiprocessing/pool.py", line 537, in _handle_tasks
put(task)
File "/usr/lib/python3.9/multiprocessing/connection.py", line 211, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/usr/lib/python3.9/multiprocessing/reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
TypeError: cannot pickle 'module' object
(py_sigal) simon@odroidh2:~/py_sigal$
Is this familiar ? Any tip ?
The text was updated successfully, but these errors were encountered:
I think the issue here is that we are in a multiprocessing context, but certain objects are not picklable (this however is a requirement for multiprocessing). Though I'm not sure whether this is at all related to pyheif-pillow-opener. Does the issue also happen with other kinds of PIL images, or is it really limited to HEIF?
Hi,
when running this with a single heic image with the static image generation (sigal) which uses pillow then i get:
INFO: Using 4 cores
DEBUG: Albums:
dict_values([(path='.', title='test')])
INFO: IMG_20210724_155951.jpg exists - skipping
Traceback (most recent call last):
File "/home/simon/py_sigal/./bin/sigal", line 8, in
sys.exit(main())
File "/home/simon/py_sigal/lib/python3.9/site-packages/click/core.py", line 1137, in call
return self.main(*args, **kwargs)
File "/home/simon/py_sigal/lib/python3.9/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/home/simon/py_sigal/lib/python3.9/site-packages/click/core.py", line 1668, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/simon/py_sigal/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/simon/py_sigal/lib/python3.9/site-packages/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "/home/simon/py_sigal/lib/python3.9/site-packages/sigal/init.py", line 157, in build
gal.build(force=force)
File "/home/simon/py_sigal/lib/python3.9/site-packages/sigal/gallery.py", line 756, in build
for status in self.pool.imap_unordered(worker, media_list):
File "/usr/lib/python3.9/multiprocessing/pool.py", line 870, in next
raise value
File "/usr/lib/python3.9/multiprocessing/pool.py", line 537, in _handle_tasks
put(task)
File "/usr/lib/python3.9/multiprocessing/connection.py", line 211, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/usr/lib/python3.9/multiprocessing/reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
TypeError: cannot pickle 'module' object
(py_sigal) simon@odroidh2:~/py_sigal$
Is this familiar ? Any tip ?
The text was updated successfully, but these errors were encountered: