libfuse / pyfuse3

Python 3 bindings for libfuse 3 with asynchronous API (Trio compatible)
https://pyfuse3.readthedocs.io/
Other
162 stars 48 forks source link

Error when install pyfuse3 on EC2 Amazon linux #58

Closed thuylevn closed 1 year ago

thuylevn commented 1 year ago

in EC2 Amazon linux install pip3 install pyfuse3

ERRORs Defaulting to user installation because normal site-packages is not writeable Collecting pyfuse3 Using cached pyfuse3-3.2.1.tar.gz (509 kB) ERROR: Command errored out with exit status 2: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6b0b20_w/pyfuse3/setup.py'"'"'; file='"'"'/tmp/pip-install-6b0b20_w/pyfuse3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-vvfst1nw cwd: /tmp/pip-install-6b0b20_w/pyfuse3/ Complete output (4 lines): Package fuse3 was not found in the pkg-config search path. Perhaps you should add the directory containing `fuse3.pc' to the PKG_CONFIG_PATH environment variable No package 'fuse3' found

ERROR: Command errored out with exit status 2: python setup.py egg_info Check the logs for full command output.

Cannot install fuse3 in ec2 linux

pip3 install fuse3 Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement fuse3 (from versions: none) ERROR: No matching distribution found for fuse3

or wget https://github.com/libfuse/libfuse/archive/refs/tags/fuse-3.11.0.tar.gz pip3 install fuse-3.11.0.tar.gz

Defaulting to user installation because normal site-packages is not writeable Processing ./fuse-3.11.0.tar.gz ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-jvi0dibk/setup.py'"'"'; file='"'"'/tmp/pip-req-build-jvi0dibk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-cn4_8du6 cwd: /tmp/pip-req-build-jvi0dibk/ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.7/tokenize.py", line 447, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-jvi0dibk/setup.py'

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Any suggestions?

ThomasWaldmann commented 1 year ago

You need to install the fuse3 support packages for that linux. fuse3, libfuse3-dev or so.