Skip to content
This repository was archived by the owner on May 10, 2019. It is now read-only.
This repository was archived by the owner on May 10, 2019. It is now read-only.

MemoryError on RaspberryPi #52

@timmalich

Description

@timmalich

I didn't found an issue for this already:

I guess you are loading the whole file into ram before uploading. On small devices like raspberry you can run easily into an out of memory exception. At least that seams to be the issue on my device. I've attached the trace output:


2016-05-30 19:25:16,713 uploadr.py:532 - uploadImage() Upload failed
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/f2flickr/uploadr.py", line 515, in uploadImage
res = getResponse(url)
File "/usr/lib/python2.7/site-packages/f2flickr/uploadr.py", line 102, in getResponse
data = flickr.unmarshal(minidom.parse(urllib2.urlopen(url)))
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1240, in https_open
context=self._context)
File "/usr/lib/python2.7/urllib2.py", line 1194, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 895, in _send_output
msg += message_body

MemoryError

BTW: Thanks for the good and easy tool. 👍 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions