Public bug reported:

Trying the examples from
https://docs.python.org/3.5/library/multiprocessing.html#exchanging-objects-between-processes


the example for Pool fails.  It's attached.  The error implicates something 
missing in SimpleQueue
$ python3 Pool.py 
Traceback (most recent call last):
  File "Pool.py", line 13, in <module>
    with Pool(5) as p:
  File "/usr/lib/python3.5/multiprocessing/context.py", line 118, in Pool
    context=self.get_context())
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 150, in __init__
    self._setup_queues()
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 243, in _setup_queues
    self._inqueue = self._ctx.SimpleQueue()
  File "/usr/lib/python3.5/multiprocessing/context.py", line 110, in SimpleQueue
    from .queues import SimpleQueue
  File "/usr/lib/python3.5/multiprocessing/queues.py", line 20, in <module>
    from queue import Empty, Full

This also fails in the default 2.7 python, with a simpler (less
informative) error message.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: python3-minimal 3.5.1-3
ProcVersionSignature: Ubuntu 4.4.0-34.53-generic 4.4.15
Uname: Linux 4.4.0-34-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Sep 29 15:04:55 2016
InstallationDate: Installed on 2016-08-08 (52 days ago)
InstallationMedia: Xubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
SourcePackage: python3-defaults
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: python3-defaults (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

** Attachment added: "Code and comments copied from official Python 
documentation"
   https://bugs.launchpad.net/bugs/1629123/+attachment/4751361/+files/Pool.py

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629123

Title:
  multiprocessing.Pool fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1629123/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to