Agile_Data_Code icon indicating copy to clipboard operation
Agile_Data_Code copied to clipboard

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

Open saisaigraph opened this issue 10 years ago • 8 comments

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

saisaigraph avatar Mar 02 '14 07:03 saisaigraph

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/rjurney/Agile_Data_Code/issues/26 .

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

rjurney avatar Mar 03 '14 18:03 rjurney

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

pablomdata avatar Mar 07 '15 16:03 pablomdata

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 https://github.com/rjurney/Agile_Data_Code/issues/26#issuecomment-77697172 .

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

rjurney avatar Mar 08 '15 21:03 rjurney

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?

pablomdata avatar Mar 10 '15 20:03 pablomdata

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

austiine04 avatar Dec 08 '15 01:12 austiine04

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

chaowu2009 avatar May 06 '16 14:05 chaowu2009

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 avatar Jan 24 '17 20:01 sprog

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.

sprog avatar Jan 24 '17 21:01 sprog