I am not sure why I am getting this ImportError
. queue.Queue()
is in the documentation.
https://docs.python.org/3/library/queue.html?highlight=queue#queue.Queue
I am using it in a function like so:
node_queue = queue.Queue()
error:
Traceback (most recent call last):
File "./test_jabba.py", line 15, in <module>
from utils import gopher, jsonstream, datagen, event_gen, tree_diff, postal
File "/Users/bli1/Development/QE/TrinityTestFramework/poc/utils/tree_diff.py", line 5, in <module>
import queue
ImportError: No module named queue
Line 5 is import queue
:
#!/usr/bin/env python3
import sys # access to basic things like sys.argv
import os # access pathname utilities
import argparse # for command-line options parsing
import queue
python --version
? Its possible you're actually running Python 2.x, in which case thequeue
module was namedQueue
#!/usr/bin/env python3
on top it wouldn't matter?python tree_diff.py
, the shebang won't matter. It's only inspected if you execute the file directly, like./tree_diff.py
.