mediadc icon indicating copy to clipboard operation
mediadc copied to clipboard

Cant run pip after local install.

Open fromage9747 opened this issue 3 years ago • 8 comments

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):

  • OS Ubuntu
  • CPU x86
  • Browser Chrome
  • Nextcloud version 23
  • Database configuration mariadb
  • Python version 3.6
  • MediaDC version latest

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

image

fromage9747 avatar May 02 '22 07:05 fromage9747

Do you use snap?

bigcat88 avatar May 02 '22 08:05 bigcat88

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

fromage9747 avatar May 02 '22 09:05 fromage9747

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

bigcat88 avatar May 02 '22 09:05 bigcat88

@bigcat88

Below is the output:

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

image

fromage9747 avatar May 02 '22 09:05 fromage9747

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...

bigcat88 avatar May 02 '22 09:05 bigcat88

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

fromage9747 avatar May 02 '22 09:05 fromage9747

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

fromage9747 avatar May 02 '22 11:05 fromage9747

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

Airell avatar Aug 22 '22 07:08 Airell

@Airell #91

bigcat88 avatar Dec 04 '22 10:12 bigcat88