Hacker News new | past | comments | ask | show | jobs | submit login

Did anybody try to run it? Python part of this PoC depends on python2 module "fuse", which in turn depends on "gunpowder", "a library to facilitate machine learning on large, multi-dimensional images". What is even going on here?

  $ pip2 install fuse
  Collecting fuse
    Downloading https://files.pythonhosted.org/packages/c3/f6/82777531d0dd0fa1d1b509258873f4b48e1ec702dcf0258214fafb474895/fuse-0.1.3.tar.gz
  ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
  fuse depends on gunpowder@ git+https://github.com/funkey/gunpowder@721718b6569b47a2f5d5d6633c76c85f779e25c7

I think you want https://pypi.org/project/fuse-python/ instead. That python packages can and often do have different names than their corresponding distributables is ... not great.

I agree that it's terrible, though it can be nice in cases where a package ends up forked— for example allowing Pillow to be a drop-in replacement for PIL.

I so so strongly hate this feature in python

I think it's meant to depend on the fuse-python (https://pypi.org/project/fuse-python/). fuse is something else

Pretty sure they meant to depend on python-fuse not fuse. The former is python bindings to libfuse.


Use your OS's own packaging system to install python-fuse.

It may already be installed!

The python-fuse package on Ubuntu 18.04 does not seem to work (too old?).

  $ python2 fs.py x
  Traceback (most recent call last):
    File "fs.py", line 8, in <module>
      class fs(fuse.Operations):
  AttributeError: 'module' object has no attribute 'Operations'
  $ python2
  Python 2.7.17 (default, Nov  7 2019, 10:07:09) 
  [GCC 7.4.0] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import fuse
  >>> fuse.__version__

You probably have to change the import to something like

    from fuse import fuse

That’s not it. Grep shows the word Operations isn’t present in the fuse module.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact