You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImportError when importing the package queue #73790
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2017-02-20.13:04:13.898>created_at=<Date2017-02-20.12:55:25.222>labels= ['type-bug', 'invalid', 'expert-asyncio']
title='ImportError when importing the package `queue`'updated_at=<Date2017-02-20.13:04:13.889>user='https://bugs.python.org/GianlucaRossi'
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.
Activity
GianlucaRossi commentedon Feb 20, 2017
In Python 3.5.2 importing *queue* raises an *ImportError*.
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.
tiran commentedon Feb 20, 2017
You have a queue module in your project which shadows the queue module from Python's standard library.