Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

For a service that works perfectly under python3.7 fails under python 3.8:

Traceback (most recent call last):
  File "/.tox/py38/bin/huey_consumer", line 8, in <module>
  File "/.tox/py38/lib/python3.8/site-packages/huey/bin/", line 51, in consumer_main
  File "/.tox/py38/lib/python3.8/site-packages/huey/", line 404, in run
  File "/.tox/py38/lib/python3.8/site-packages/huey/", line 373, in start
  File "/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/", line 121, in start
    self._popen = self._Popen(self)
  File "/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/", line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/", line 283, in _Popen
    return Popen(process_obj)
  File "/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/", line 32, in __init__
  File "/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/", line 19, in __init__
  File "/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/", line 47, in _launch
    reduction.dump(process_obj, fp)
  File "/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'Consumer._create_process.<locals>._run'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

coleifercommented, Dec 6, 2019

I think it may be related: – which was closed. I’d suggest making a small modification in your code to try and explicitly set the multiprocessing start mode to ‘fork’:

You can put it alongside where you declare your huey instance.

See also here:

coleifercommented, Dec 6, 2019

Added workaround to consumer entry-point: bf002c85ae444954c3237fa4b056fbf9111448a1

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's New In Python 3.8 — Python 3.11.1 documentation
This article explains the new features in Python 3.8, compared to 3.7. ... A continue statement was illegal in the finally clause due...
Read more >
Python 3.8 compatibility issue · Issue #374 · strawlab/python-pcl
I'm unable to install python-pcl in a python3.8 environment. I always got this error : ERROR: Command errored out with exit status 1:...
Read more >
Issue with the installation of Python 3.8 with docker file
I am trying to update my CI Pipeline for git lab, but my pipeline keeps on failing because the docker in docker of...
Read more >
Issues with Python versions instal… | Apple Developer Forums
Hi, I tried installing Python3.7.13 using brew utility and the same got intsalled successfully. However, there was another version of Python3.8.9 which was ......
Read more >
When should you upgrade to Python 3.11?
The problems with a new major Python release ... If you're far enough behind, do a series of upgrades: 3.8, 3.9, 3.10, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found