[ftputil] ftputil 2.4 with python 2.6.1
Peter Stirling
peter at pjstirling.plus.com
Thu Apr 2 07:40:14 CEST 2009
Hi,
I've been using ftputil to perform the upload part of a offline web-page
generation program (templating without requiring the server to cgi).
When I run it on python-2.5.2 (the default for ubuntu-intrepid) it works
as expected, however when I run it on Windows (python-2.6.1 using the
installer) I get an exception:
Traceback (most recent call last):
File "g:\test\test.py", line 13, in <module>
host.synchronize_times()
File "g:\test\ftputil\ftputil.py", line 896, in __exit__
self.close()
File "g:\test\ftputil\ftputil.py", line 253, in close
self.stat_cache.clear()
File "g:\test\ftputil\ftp_stat_cache.py", line 117, in clear
self.resize(0)
File "g:\test\ftputil\ftp_stat_cache.py", line 100, in resize
self._cache.size = new_size
File "g:\test\ftputil\lrucache.py", line 186, in __setattr__
del self.__dict[lru.key]
KeyError: '/htdocs/new/_ftputil_sync_'
done
I've attached a minimal program that demonstrates the problem (you'll
need to edit it for login credentials).
Interestingly, I don't get the exception when running on python-2.6 on
mac os X (fink package manager), but I do get a deprecation warning for:
ftputil/ftp_stat.py:58: DeprecationWarning: object.__init__() takes no
parameters
super(StatResult, self).__init__(sequence)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 296 bytes
Desc: not available
Url : http://codespeak.net/pipermail/ftputil/attachments/20090402/61665f69/attachment.py
More information about the ftputil
mailing list