This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ImportError when importing the package `queue`
Type: behavior Stage: resolved
Components: asyncio Versions: Python 3.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Gianluca Rossi, christian.heimes, gvanrossum, yselivanov
Priority: normal Keywords:

Created on 2017-02-20 12:55 by Gianluca Rossi, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg288198 - (view) Author: Gianluca Rossi (Gianluca Rossi) Date: 2017-02-20 12:55
In Python 3.5.2 importing *queue* raises an *ImportError*.

```
Python 3.5.2 (default, Jul  5 2016, 12:43:10) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import queue
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/gianluca/git/python/asyncio/queue.py", line 1, in <module>
    import asyncio
  File "/usr/lib/python3.5/asyncio/__init__.py", line 21, in <module>
    from .base_events import *
  File "/usr/lib/python3.5/asyncio/base_events.py", line 18, in <module>
    import concurrent.futures
  File "/usr/lib/python3.5/concurrent/futures/__init__.py", line 17, in <module>
    from concurrent.futures.process import ProcessPoolExecutor
  File "/usr/lib/python3.5/concurrent/futures/process.py", line 52, in <module>
    from queue import Full
ImportError: cannot import name 'Full'
```

I'm not very familiar with the *asyncio* module since I've just recently started working with it. Please let me know if I can be of more help.
msg288199 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2017-02-20 13:04
You have a queue module in your project which shadows the queue module from Python's standard library.
History
Date User Action Args
2022-04-11 14:58:43adminsetgithub: 73790
2017-02-20 13:04:13christian.heimessetstatus: open -> closed

type: crash -> behavior

nosy: + christian.heimes
messages: + msg288199
resolution: not a bug
stage: resolved
2017-02-20 12:55:25Gianluca Rossicreate