Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named 'Queue' #4

Open
TheFiZi opened this issue Jun 28, 2013 · 2 comments
Open

ImportError: No module named 'Queue' #4

TheFiZi opened this issue Jun 28, 2013 · 2 comments

Comments

@TheFiZi
Copy link

TheFiZi commented Jun 28, 2013

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
Copy link
Author

TheFiZi commented Jun 28, 2013

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.

@jordan-wright
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants