dumpmon icon indicating copy to clipboard operation
dumpmon copied to clipboard

ImportError: No module named 'Queue'

Open TheFiZi opened this issue 12 years ago • 2 comments

Python 3.3.2 Twitter 1.10.0 beautifulsoup4 4.2.1 requests 1.2.3 pymongo 2.5.2

[user@localhost dumpmon]$ python dumpmon.py

Traceback (most recent call last):
  File "dumpmon.py", line 12, in <module>
    from lib.Pastebin import Pastebin, PastebinPaste
  File "/data/apps/dumpmon/lib/Pastebin.py", line 1, in <module>
    from .Site import Site
  File "/data/apps/dumpmon/lib/Site.py", line 1, in <module>
    from Queue import Queue
ImportError: No module named 'Queue'

I found this: https://code.google.com/p/python-llfuse/issues/detail?id=19 saying that Queue has been renamed to queue in Python 3.

I'm very confused about whether dumpmon requires Py3 or Py2 since the Twitter library doesn't seem to work properly in Py2 but does in Py3.

TheFiZi avatar Jun 28 '13 16:06 TheFiZi

Did a complete wipe and rebuild of Python 2.7.5 and now I'm getting some where. This bug is only useful if you want to make your app Python 3 compatible I guess.

TheFiZi avatar Jun 28 '13 16:06 TheFiZi

That's a great question. dumpmon was developed in and primarily for Python 2. However, I am doing my best to try and make it Python 3 compatible.

I'll see if I can get the "Queue vs queue" dependency issue ironed out soon unless you wanted to submit a pull request.

I'll go ahead and keep this open until a fix can be pushed out.

jordan-wright avatar Jun 28 '13 18:06 jordan-wright