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

Fix import queue Error #22

Open
ade-verd opened this issue Jul 9, 2018 · 0 comments
Open

Fix import queue Error #22

ade-verd opened this issue Jul 9, 2018 · 0 comments

Comments

@ade-verd
Copy link

ade-verd commented Jul 9, 2018

Hi,

First, many thanks for your work !
To avoid the import queue error:

File "./WhatsAppGDExtract.py", line 9, in
import queue
ImportError: No module named queue

You could write:

import sys
PY2 = sys.version_info[0] == 2
PY3 = (sys.version_info[0] >= 3)

#import queue
if PY2:
    import Queue as queue
else:  # PY3
    import queue
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

1 participant