ncdu-s3 icon indicating copy to clipboard operation
ncdu-s3 copied to clipboard

Support for Python3

Open mycaule opened this issue 6 years ago • 4 comments

The command was initially developed for Python 2, but now breaks with Python 3.

These only small changes are needed to correct the errors:

ModuleNotFoundError: No module named 'urlparse'
  • main.py: use the standard try except syntax.
    except SyntaxError, e:
                      ^
SyntaxError: invalid syntax
NameError: name 'xrange' is not defined
AttributeError: module 'itertools' has no attribute 'izip_longest'

mycaule avatar Nov 08 '19 10:11 mycaule

To support both Python 2 and 3, you might have to publish two different versions on PyPI repository.

mycaule avatar Nov 08 '19 10:11 mycaule

This should be a pull request ;-)

Binternet avatar Jan 11 '21 09:01 Binternet

This package is not maintained anymore. Last update was 5 years ago and Python 2 now being deprecated.

See also #6

mycaule avatar Jan 11 '21 09:01 mycaule

Is there no other solution other than to mount the bucket via goofys backet /mnt and use the usual ncdu?

dan10051 avatar Mar 26 '24 16:03 dan10051