[Bug 1628763] [NEW] Example of Queue from documentation fails

Kevin O'Gorman kogorman at gmail.com
Thu Sep 29 04:02:24 UTC 2016


Public bug reported:

Reading https://docs.python.org/3.5/library/multiprocessing.html
#exchanging-objects-between-processes, I have copy-pasted the code into
a file.  Running it with python3 fails thus:

Traceback (most recent call last):
  File "q.py", line 7, in <module>
    q = Queue()
  File "/usr/lib/python3.5/multiprocessing/context.py", line 100, in Queue
    from .queues import Queue
  File "/usr/lib/python3.5/multiprocessing/queues.py", line 20, in <module>
    from queue import Empty, Full
ImportError: cannot import name 'Empty'


I will attach the actual code file.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: python3 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: Wed Sep 28 20:54:17 2016
InstallationDate: Installed on 2016-08-08 (51 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: "The actual code that failed."
   https://bugs.launchpad.net/bugs/1628763/+attachment/4750654/+files/q.py

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

Title:
  Example of Queue from documentation fails

Status in python3-defaults package in Ubuntu:
  New

Bug description:
  Reading https://docs.python.org/3.5/library/multiprocessing.html
  #exchanging-objects-between-processes, I have copy-pasted the code
  into a file.  Running it with python3 fails thus:

  Traceback (most recent call last):
    File "q.py", line 7, in <module>
      q = Queue()
    File "/usr/lib/python3.5/multiprocessing/context.py", line 100, in Queue
      from .queues import Queue
    File "/usr/lib/python3.5/multiprocessing/queues.py", line 20, in <module>
      from queue import Empty, Full
  ImportError: cannot import name 'Empty'

  
  I will attach the actual code file.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: python3 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: Wed Sep 28 20:54:17 2016
  InstallationDate: Installed on 2016-08-08 (51 days ago)
  InstallationMedia: Xubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
  SourcePackage: python3-defaults
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list