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

sigal - pillow issue with this addon #3

Open
Simon566 opened this issue Sep 22, 2021 · 1 comment
Open

sigal - pillow issue with this addon #3

Simon566 opened this issue Sep 22, 2021 · 1 comment

Comments

@Simon566
Copy link

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 ?

@mara004
Copy link

mara004 commented Oct 19, 2021

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?

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