Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Re: Imapgrab error: File not found

103 views
Skip to first unread message

Daniel Roesler

unread,
Apr 25, 2009, 8:26:07 AM4/25/09
to Tim Biedert, ImapGrab Mailing List
Howdy!

Can you tell me what version of getmail you have installed?

Avast!
Daniel Roesler
dia...@gmail.com

On Sat, Apr 25, 2009 at 6:11 AM, Tim Biedert <tim.b...@gmail.com> wrote:
> Hi!
>
> I'm trying to use Imapgrab in order to download messages from my Google Mail
> account into mbox.
>
> Unfortunately both on Mac OS X and Windows with Python 2.5 and 2.6 I get an
> error message when setting parameters to download a mailbox. Listing the
> available mailboxes works fine, though!
>
> Here's my output on Mac OS X:
>
>>> python imapgrab.py -dS -s imap.googlemail.com -P 993 -u
>>> xin...@gmail.com -p myPassword -m "myLabel"
>
>
> IMAP Grab 0.1.3
> ---
> Downloading mailbox "myLabel"
> Traceback (most recent call last):
>  File "imapgrab.py", line 409, in <module>
>    imapgrab()
>  File "imapgrab.py", line 155, in imapgrab
>    IG_backup_mail(ig_options)
>  File "imapgrab.py", line 402, in IG_backup_mail
>    subprocess.call([cmd, "--quiet", "-g", ig_options.folder, "-r",
> rc_file_loc])
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py",
> line 443, in call
>    return Popen(*popenargs, **kwargs).wait()
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py",
> line 593, in __init__
>    errread, errwrite)
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py",
> line 1079, in _execute_child
>    raise child_exception
> OSError: [Errno 2] No such file or directory
>
>
> The same comes on Windows (the last line is different: "WindowsError: [Error
> 2] The system cannot find the file specified").
>
> Furthermore imapgrab DOES create the mbox file, but it stays at 0bytes size
> and the said error message appears.
> I already tried to run it with sudo, but nothing changes.
>
> Can you help me?
>
> Thank you very much in advance!
>
> Greetings,
> Tim Biedert
>
>

Daniel Roesler

unread,
Apr 25, 2009, 8:45:49 AM4/25/09
to Tim Biedert, ImapGrab Mailing List
Oops, looks like getmail hasn't been installed properly. You can
download the latest version here:
http://pyropus.ca/software/getmail/

You need at least getmail 4.8.2 or higher.

Unfortunately, I've never installed getmail on Windows (you need
Cygwin), so I'm not too sure on how ImapGrab would operate under
Windows. It should, but I've never tested it. Mac OSX works, though.

Avast!
Daniel Roesler
dia...@gmail.com

On Sat, Apr 25, 2009 at 7:40 AM, Tim Biedert <tim.b...@gmail.com> wrote:
> Hey!
> Ehrm..  well :-)
> tb$ getmail
> -bash: getmail: command not found
> Greets,
> Tim

Daniel Roesler

unread,
Apr 25, 2009, 11:07:05 AM4/25/09
to Tim Biedert, ImapGrab Mailing List
It looks like you don't have enough memory for getmail. Can you please
post the result of the following commmand:

python imapgrab.py -dS -s imap.googlemail.com -P 993 -u
xin...@gmail.com -p myPassword -m "myLabel"

Please read through the debug and replace any instance of your
password with "myPassword".

Avast!
Daniel Roesler
dia...@gmail.com

On Sat, Apr 25, 2009 at 7:57 AM, Tim Biedert <tim.b...@gmail.com> wrote:
> Okay, fine, I've installed getmail, but now I get another error message...
> :-P
>
> IMAP Grab 0.1.3
> ---
> Downloading mailbox "SentLabel"
> Python(2620) malloc: *** mmap(size=20033536) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
>
> Exception: please read docs/BUGS and include the following information in
> any bug report:
>
>  getmail version 4.9.0
>  Python version 2.5.1 (r251:54863, Jan 13 2009, 10:26:13)
> [GCC 4.0.1 (Apple Inc. build 5465)]
>
> Unhandled exception follows:
>    File "/usr/local/bin/getmail", line 652, in main
>    go(configs)
>    File "/usr/local/bin/getmail", line 127, in go
>    msg = retriever.getmsg(msgid)
>    File "/Library/Python/2.5/site-packages/getmailcore/_retrieverbases.py",
> line 431, in getmsg
>    return self._getmsgbyid(msgid)
>    File "/Library/Python/2.5/site-packages/getmailcore/_retrieverbases.py",
> line 870, in _getmsgbyid
>    return self._getmsgpartbyid(msgid, '(RFC822)')
>    File "/Library/Python/2.5/site-packages/getmailcore/_retrieverbases.py",
> line 851, in _getmsgpartbyid
>    response = self._parse_imapuidcmdresponse('FETCH', uid, part)
>    File "/Library/Python/2.5/site-packages/getmailcore/_retrieverbases.py",
> line 729, in _parse_imapuidcmdresponse
>    result, resplist = self.conn.uid(cmd, *args)
>    File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py",
> line 752, in uid
>    typ, dat = self._simple_command(name, command, *args)
>    File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py",
> line 1055, in _simple_command
>    return self._command_complete(name, self._command(name, *args))
>    File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py",
> line 885, in _command_complete
>    typ, data = self._get_tagged_response(tag)
>    File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py",
> line 986, in _get_tagged_response
>    self._get_response()
>    File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py",
> line 948, in _get_response
>    data = self.read(size)
>    File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py",
> line 1150, in read
>    data = self.sslobj.read(size-read)
>  MemoryError
>
> Please also include configuration information from running getmail
> with your normal options plus "--dump".
> Downloads complete  (<<--- definitely not :P)
>
>
> Greets!

Daniel Roesler

unread,
Apr 25, 2009, 2:11:10 PM4/25/09
to Tim Biedert, ImapGrab Mailing List
Doh, sorry forgot to add the --debug option on the end. Please add it
and let me know what you get.

Avast!
Daniel Roesler
dia...@gmail.com

Reply all
Reply to author
Forward
0 new messages