FTP upload not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Lookit |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The FTP upload does not work due to two little things :
Traceback (most recent call last):
File "/usr/bin/lookit", line 139, in capture_screen
self.
File "/usr/bin/lookit", line 147, in process_pixbuf
self.
File "/usr/bin/lookit", line 169, in upload_image
self.
File "/usr/lib/
f = ftplib.FTP()
NameError: global name 'ftplib' is not defined
(ftplib is not imported)
Traceback (most recent call last):
File "/usr/bin/lookit", line 139, in capture_screen
self.
File "/usr/bin/lookit", line 147, in process_pixbuf
self.
File "/usr/bin/lookit", line 169, in upload_image
self.
File "/usr/lib/
print f.storbinary('STOR ' + f, i)
TypeError: cannot concatenate 'str' and 'instance' objects
(f is the filename of the file to upload, and is later owerwritten as an instance of ftplib.FTP())
A diff that fixes the problem is attached.
Changed in lookit: | |
status: | New → Fix Released |
thanks! I need to start reviewing my source after I come down off my coffee binges...