Open kseistrup opened 8 years ago
With --debug
:
Traceback (most recent call last):
File "/usr/bin/fsinfo", line 9, in <module>
load_entry_point('fs==0.5.4', 'console_scripts', 'fsinfo')()
File "/usr/lib/python3.5/site-packages/fs/commands/fsinfo.py", line 77, in run
return FSInfo().run()
File "/usr/lib/python3.5/site-packages/fs/commands/runner.py", line 352, in run
return self.do_run(options, args) or 0
File "/usr/lib/python3.5/site-packages/fs/commands/fsinfo.py", line 55, in do_run
info = fs.getinfo(path)
File "/usr/lib/python3.5/site-packages/fs/httpfs.py", line 90, in getinfo
info = urlopen(url).info().dict
AttributeError: 'HTTPMessage' object has no attribute 'dict'
It's actually a bug in HTTPFS, rather than a bug in fsinfo:
(pyfs34)andrew@shyknee:/tmp/test$ python3
Python 3.4.3 (default, Oct 14 2015, 20:28:29)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from fs.httpfs import HTTPFS
>>> h = HTTPFS('http://www.github.com')
>>> h.getinfo('/')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tmp/test/pyfs34/lib/python3.4/site-packages/fs/httpfs.py", line 90, in getinfo
info = urlopen(url).info().dict
AttributeError: 'HTTPMessage' object has no attribute 'dict'
Python 3:
Python 2:
This is
community/python-fs 0.5.4
on ArchLinux.