ncdu-s3
ncdu-s3 copied to clipboard
Support for Python3
The command was initially developed for Python 2, but now breaks with Python 3.
These only small changes are needed to correct the errors:
s3_directory_generator.py: renameurlparsetourllib.parsesee https://github.com/FriendCode/gittle/issues/49main.py: remove that unused import
ModuleNotFoundError: No module named 'urlparse'
main.py: use the standardtry exceptsyntax.
except SyntaxError, e:
^
SyntaxError: invalid syntax
ncdu_data_writer.py: replacexrangewithrangethat are now equivalent : see range-vs-xrange-python
NameError: name 'xrange' is not defined
AttributeError: module 'itertools' has no attribute 'izip_longest'
To support both Python 2 and 3, you might have to publish two different versions on PyPI repository.
This should be a pull request ;-)
This package is not maintained anymore. Last update was 5 years ago and Python 2 now being deprecated.
See also #6
Is there no other solution other than to mount the bucket via goofys backet /mnt and use the usual ncdu?