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

File "./gmail.py", line 7, in <module> from lepl.apps.rfc3696 import EmailUtils ImportError: No module named lepl.apps.rfc3696 #26

Open
saisaigraph opened this issue Mar 2, 2014 · 8 comments

Comments

@saisaigraph
Copy link

when i try to run this:

./gmail.py -m automatic -u [email protected] -p 'pwd' -s ./email.avro.schema -f '[Gmail]/All Mail' -o /tmp/test_mbox 2>&1 &

i get this error:


Traceback (most recent call last):
File "./gmail.py", line 7, in
from lepl.apps.rfc3696 import EmailUtils
ImportError: No module named lepl.apps.rfc3696


Please let me know if you have any suggestions.
Thanks
Sai

@rjurney
Copy link
Owner

rjurney commented Mar 3, 2014

pip install lepl

On Sat, Mar 1, 2014 at 11:52 PM, saisaigraph [email protected]:

when i try to run this:

./gmail.py -m automatic -u [email protected] -p 'pwd' -s
./email.avro.schema -f '[Gmail]/All Mail' -o /tmp/test_mbox 2>&1 &

i get this error:

Traceback (most recent call last):
File "./gmail.py", line 7, in
from lepl.apps.rfc3696 import EmailUtils

ImportError: No module named lepl.apps.rfc3696

Please let me know if you have any suggestions.
Thanks
Sai

Reply to this email directly or view it on GitHubhttps://github.com//issues/26
.

Russell Jurney twitter.com/rjurney [email protected] datasyndrome.com

@pablomdata
Copy link

Hi, I get timeout exception error immediately after running ./gmail.py... I can connect to imap.gmail.com by telnet.

@rjurney
Copy link
Owner

rjurney commented Mar 8, 2015

If you let it keep going, it should work despite the exception. It
reconnects.

On Sat, Mar 7, 2015 at 8:41 AM, pmaldonadolopez [email protected]
wrote:

Hi, I get timeout exception error immediately after running ./gmail.py...
I can connect to imap.gmail.com by telnet.


Reply to this email directly or view it on GitHub
#26 (comment)
.

Russell Jurney twitter.com/rjurney [email protected] datasyndrome.com

@pablomdata
Copy link

Hi, thanks for the reply, but it still doesn't work: I get

Folder '[Gmail]/All Mail' SELECT status: NO
Problem initializing imap connection.

Then it stays there and nothing is copied to the target folder. Any suggestions on how to fix this?

@austiine04
Copy link

I think you should put you args in quotes eg -u '[email protected]' -p 'password' etc

@chaowu2009
Copy link

Problem: Warning: /tmp/my_inbox_directory already exists:
Warning: /tmp/my_inbox_directorytmp already exists:
Traceback (most recent call last):
File "./gmail.py", line 104, in
main()
File "./gmail.py", line 85, in main
status, count = slurper.init_folder(imap_folder)
File "/home/cwu/Agile_Data_Code/ch03/gmail/gmail_slurper.py", line 68, in init_folder
status, count = self.imap.select(folder)
File "/usr/lib/python2.7/imaplib.py", line 661, in select
typ, dat = self._simple_command(name, mailbox)
File "/usr/lib/python2.7/imaplib.py", line 1087, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/lib/python2.7/imaplib.py", line 837, in _command
', '.join(Commands[name])))
imaplib.error: command SELECT illegal in state NONAUTH, only allowed in states AUTH, SELECTED

@sprog
Copy link

sprog commented Jan 24, 2017

I am getting the same error as above even after 'sudo pip install lepl':

Traceback (most recent call last):
File "./gmail.py", line 7, in
from lepl.apps.rfc3696 import EmailUtils
ImportError: No module named lepl.apps.rfc3696

@sprog
Copy link

sprog commented Jan 24, 2017

I solved the above error:

sudo pip install lepl was pointing to 3.5 instead of 2.7 due to upgrading pip.

sudo python -m pip install lepl

fixed it.

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

6 participants