0

This is what I have in Python 2.7:

from Queue import Queue
self.queue = Queue()

What I'm trying so far to port to 3.6 looks like this:

import queue as queue
self.queue = queue()

But I'm getting "module is not callable"? I am bit of noob in Python :), it's likely a simple error, thanks!

kpopguy
  • 59
  • 6
  • 3
    Possible duplicate of [How to import other Python files?](https://stackoverflow.com/questions/2349991/how-to-import-other-python-files) – Morse May 31 '18 at 19:10

1 Answers1

2

In Python3 use

from queue import Queue
self.queue = Queue()
Rakesh
  • 81,458
  • 17
  • 76
  • 113