[Touch-packages] [Bug 1628763] Re: Example of Queue from documentation fails

2017-10-20 Thread Matthias Klose
** Changed in: python3-defaults (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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:
  Invalid

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 
  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 
  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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


Re: [Touch-packages] [Bug 1628763] Re: Example of Queue from documentation fails

2017-10-20 Thread Kevin O'Gorman
Oops.  I did locate the directory on a backup.  As you supposed, I had
created queue.py initially to do the test.  I re-ran it as 'q.py' to see if
that helped, but did not delete the original.  So you were right -- name
conflict.

On Fri, Oct 20, 2017 at 8:06 AM, Kevin O'Gorman 
wrote:

> I no longer have the directory in which I did this trial.  However, trying
> again in an empty directory, the sample works fine with 3.5.
>
> On Tue, Oct 10, 2017 at 4:14 AM, Serhiy Storchaka <
> 1628...@bugs.launchpad.net> wrote:
>
>> This looks like there is a queue.py file in the current directory which
>> hides the queue module from the stdlib. In Python 2.7 this module is
>> named Queue and doesn't conflict with a local file queue.py.
>>
>> Can you confirm Kevin?
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> 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 
>>   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
>> 
>>   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
>>
>
>
>
> --
> Kevin O'Gorman
> #define QUESTION ((bb) || (!bb))   /* Shakespeare */
>
> Please consider the environment before printing this email.
>


-- 
Kevin O'Gorman
#define QUESTION ((bb) || (!bb))   /* Shakespeare */

Please consider the environment before printing this email.


** Attachment added: "unnamed"
   https://bugs.launchpad.net/bugs/1628763/+attachment/4979135/+files/unnamed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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 
  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 
  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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


Re: [Touch-packages] [Bug 1628763] Re: Example of Queue from documentation fails

2017-10-20 Thread Kevin O'Gorman
I no longer have the directory in which I did this trial.  However, trying
again in an empty directory, the sample works fine with 3.5.

On Tue, Oct 10, 2017 at 4:14 AM, Serhiy Storchaka <
1628...@bugs.launchpad.net> wrote:

> This looks like there is a queue.py file in the current directory which
> hides the queue module from the stdlib. In Python 2.7 this module is
> named Queue and doesn't conflict with a local file queue.py.
>
> Can you confirm Kevin?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> 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 
>   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
> 
>   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
>


-- 
Kevin O'Gorman
#define QUESTION ((bb) || (!bb))   /* Shakespeare */

Please consider the environment before printing this email.


** Attachment added: "unnamed"
   https://bugs.launchpad.net/bugs/1628763/+attachment/4979094/+files/unnamed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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 
  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 
  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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1628763] Re: Example of Queue from documentation fails

2017-10-10 Thread Serhiy Storchaka
This looks like there is a queue.py file in the current directory which
hides the queue module from the stdlib. In Python 2.7 this module is
named Queue and doesn't conflict with a local file queue.py.

Can you confirm Kevin?

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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 
  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 
  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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1628763] Re: Example of Queue from documentation fails

2016-09-29 Thread Kevin O'Gorman
Noting still further: When I tried the same program with the default
Python (2.7), it worked just as the documentation promised, so the
problem is in the Python 3.5 build.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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 
  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 
  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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1628763] Re: Example of Queue from documentation fails

2016-09-29 Thread Kevin O'Gorman
Noting further: There's a Note at the bottom of the entry for Queue in 17.2.2.2,
https://docs.python.org/3.5/library/multiprocessing.html#pipes-and-queues
which says that ImportErrors can be caused by failure of the system to support 
semaphores, as outlined in Issue3770 (Closed years ago):
https://bugs.python.org/issue3770

Does Xubuntu not have basic IPCs such as semaphores?  Is it a problem in
how Python is built?

** Bug watch added: Python Roundup #3770
   http://bugs.python.org/issue3770

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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 
  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 
  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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp