cloud-py-api / mediadc

Nextcloud Media Duplicate Collector application
https://apps.nextcloud.com/apps/mediadc
GNU Affero General Public License v3.0
95 stars 8 forks source link

Cant run pip after local install. #58

Closed fromage9747 closed 1 year ago

fromage9747 commented 2 years ago

Describe the bug Cant run pip after local install.

To Reproduce Steps to reproduce the behavior:

  1. Install App through Nextcloud
  2. Navigate to app
  3. Click on install for the configuration
  4. See error

Expected behavior Install pillow and numpy successfully

Screenshots image

Desktop (please complete the following information):

Additional context I have manually installed pillow and numpy but it has not changed the result:

image

bigcat88 commented 2 years ago

Do you use snap?

fromage9747 commented 2 years ago

@bigcat88 I do not use snap on my NextCloud instance. It is not installed.

bigcat88 commented 2 years ago

@fromage9747 python3 -m pip -V post output of this, so we can check it, maybe some bug in version parsing...

fromage9747 commented 2 years ago

@bigcat88

Below is the output:

pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

image

bigcat88 commented 2 years ago

Looks like you have multiply pythons... You need to provide path to python3.9 in config of MediaDC.

In MediaDC admin settings configure "Full path to python interpreter" with proper path to python 3.9 (e.g. /usr/bin/python3.9) and try again. you can search for python probably with where python3 command in Linux.

P.S.: we will check with python 3.6 for that strange behaviour...

fromage9747 commented 2 years ago

@bigcat88 Thank you for the feedback. I will make the changes and get back to you if there are any issues.

fromage9747 commented 2 years ago

@bigcat88 I have made the required changes and it is working as expected under python3.9. Thank you for your speedy response and assistance.

Airell commented 2 years ago

I'm having the same issue, however, I'm using snap (as asked per 2 May). Installing with /usr/bin/python3 results in Cant run pip after local install. / Installation failed. Some server error occured. Installing and Checking with /usr/bin/python3.8 results in Python version is lower then 3.6.8 or not available (result_code:127)

required    numpy, pillow
optional    scipy, pywavelets, pillow_heif
boost       hexhamming

Manual install via pip does not clear the errors.

Ubuntu 20.04.4 LTS Snap 2.56.2 NC 24.0.3 (24.0.3snap1) Python 3.8 PIP 22.2.2 MediaDC 1.9

~/snap# which python3
/usr/bin/python3
~/snap# ls -la /usr/bin/python3
lrwxrwxrwx 1 root root 9 Mar 13  2020 /usr/bin/python3 -> python3.8
bigcat88 commented 1 year ago

@Airell #91