[QPKG] sherpa mini-package-manager (CLI) beta

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
User avatar
Knuspar
Know my way around
Posts: 155
Joined: Thu Aug 25, 2011 5:02 am
Location: Denmark
Contact:

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by Knuspar »

OneCD wrote: Tue Apr 20, 2021 3:17 pm
Knuspar wrote: Tue Apr 20, 2021 2:08 pm Sadly that dident help, I still get the same message :-/
OK, I've just pushed a mod that installs the 'python3-cryptography' IPKG.

Your log indicates the Par2 QPKG is missing. This means there's some remnant of it left behind in qpkg.conf. To remove this:

Code: Select all

rmcfg Par2 -f /etc/config/qpkg.conf
... then please clean your management script so your NAS will grab the updated one I've just pushed to GitHub:

Code: Select all

sherpa clean
... then reinstall Entware again:

Code: Select all

sherpa reinstall ew
Just tried - unfortunatly - same result :-(

https://termbin.com/lozt

edit: Seems to be the cryptography thats failing :-/

Small snipp here

Code: Select all

Collecting cryptography
  Downloading cryptography-3.4.7.tar.gz (546 kB)
  Installing build dependencies: started
  Installing build dependencies: still running...
  Installing build dependencies: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/bin/python3 /opt/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-9m6d0ymo/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"'' 'setuptools-rust>=0.11.4'
       cwd: None
Currently: TS-653D
Retired: TS-419+
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD »

Knuspar wrote: Tue Apr 20, 2021 4:58 pm Just tried - unfortunatly - same result :-(

https://termbin.com/lozt

edit: Seems to be the cryptography thats failing :-/
Sorry, I'm out-of-ideas. I'll need to test for this when I receive my "new" EOL NAS. :(

Are you able to temporarily switch to NZBGet?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
zyxmon
Experience counts
Posts: 1001
Joined: Mon Oct 27, 2014 2:27 pm
Location: Moscow, Russia
Contact:

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by zyxmon »

OneCD wrote: Wed Apr 21, 2021 2:49 am
Sorry, I'm out-of-ideas. I'll need to test for this when I receive my "new" EOL NAS. :(
IMHO python3-cffi should be installed as an ipk.
Incorrect path is used when compiling. This can be fixed with a patch or by providing appropriate missing pkconfig.
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD »

zyxmon wrote: Wed Apr 21, 2021 5:36 am IMHO python3-cffi should be installed as an ipk.
Okiedoke, I'll ensure that one gets installed as an IPKG. Thank you. :)

I recall this was being done previously, but I think I switched to the pip 'cffi' because of problems starting the Deluge UI package.
zyxmon wrote: Wed Apr 21, 2021 5:36 am Incorrect path is used when compiling. This can be fixed with a patch or by providing appropriate missing pkconfig.
Now, this is where I'm out-of-my-depth. It's the compiling process that I know almost nothing about (including how to fix errors).

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD »

Things are working fine here with the Python3 CFFI IPKG installed. Image

@Knuspar, if you'd like to try it again, please run a 'clean', then 'reinstall ew'.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
zyxmon
Experience counts
Posts: 1001
Joined: Mon Oct 27, 2014 2:27 pm
Location: Moscow, Russia
Contact:

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by zyxmon »

OneCD wrote: Wed Apr 21, 2021 5:41 am ....' because of problems starting the Deluge UI package.
Just in case sherpa uses deluge* ipk from Entware - we have downgraded rasterbar-libtorrent in repo used by deluge. opkg does not downgrade packages automatically. Users running qbittorrent and deluge from Entware may need to downgrade rasterbar-libtorrent packages manually.
User avatar
Knuspar
Know my way around
Posts: 155
Joined: Thu Aug 25, 2011 5:02 am
Location: Denmark
Contact:

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by Knuspar »

OneCD wrote: Wed Apr 21, 2021 6:31 am Things are working fine here with the Python3 CFFI IPKG installed. Image

@Knuspar, if you'd like to try it again, please run a 'clean', then 'reinstall ew'.
Ill try again - just clocked in at work :-) Running it now, ill get back when it finishes :-)
Currently: TS-653D
Retired: TS-419+
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD »

zyxmon wrote: Wed Apr 21, 2021 2:23 pm Just in case sherpa uses deluge* ipk from Entware - we have downgraded rasterbar-libtorrent in repo used by deluge. opkg does not downgrade packages automatically. Users running qbittorrent and deluge from Entware may need to downgrade rasterbar-libtorrent packages manually.
No worries, I'll work on adding a downgrader for that package. Thank you. :geek:

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
Knuspar
Know my way around
Posts: 155
Joined: Thu Aug 25, 2011 5:02 am
Location: Denmark
Contact:

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by Knuspar »

OneCD wrote: Wed Apr 21, 2021 6:31 am Things are working fine here with the Python3 CFFI IPKG installed. Image

@Knuspar, if you'd like to try it again, please run a 'clean', then 'reinstall ew'.
Failed again :-(

https://termbin.com/lnwn


Looks to me like it fails with this snipp:

Code: Select all

Collecting cryptography
  Downloading cryptography-3.4.7.tar.gz (546 kB)
  Installing build dependencies: started
  Installing build dependencies: still running...
  Installing build dependencies: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/bin/python3 /opt/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-v42fdr_5/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"'' 'setuptools-rust>=0.11.4'
       cwd: None
and then just deathballs from there :-/
Currently: TS-653D
Retired: TS-419+
zyxmon
Experience counts
Posts: 1001
Joined: Mon Oct 27, 2014 2:27 pm
Location: Moscow, Russia
Contact:

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by zyxmon »

It fails building python3-cryptography
zyxmon
Experience counts
Posts: 1001
Joined: Mon Oct 27, 2014 2:27 pm
Location: Moscow, Russia
Contact:

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by zyxmon »

A small investigation resulted in building cryptology (x19)
python3-cffi ipkg was installed and a symlink was created manually - it is need to compile with pip3.

Code: Select all

 ln -s /opt/lib/libffi.so.7 /opt/lib/libffi.so
An old version of cryptology installed. New versions require rust that is not in Entware - https://github.com/pyca/cryptography/issues/5771
I have used the same version, that is in entware.

Code: Select all

 # pip install cryptography==3.3.2
Collecting cryptography==3.3.2
  Downloading cryptography-3.3.2.tar.gz (539 kB)
     |████████████████████████████████| 539 kB 1.7 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting six>=1.4.1
  Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Requirement already satisfied: cffi>=1.12 in /share/HDA_DATA/.qpkg/Entware/lib/python3.9/site-packages (from cryptography==3.3.2) (1.14.5)
Requirement already satisfied: pycparser in /share/HDA_DATA/.qpkg/Entware/lib/python3.9/site-packages (from cffi>=1.12->cryptography==3.3.2) (2.20)
Building wheels for collected packages: cryptography
  Building wheel for cryptography (PEP 517) ... done
  Created wheel for cryptography: filename=cryptography-3.3.2-cp39-cp39-linux_armv5tel.whl size=342501 sha256=21d71469fbd37a3254bb752ba9f965d3ad7ca077472f1880f61d5aa172ed38fb
  Stored in directory: /share/HDA_DATA/.qpkg/Entware/root/.cache/pip/wheels/0b/8b/61/b67c8d096e2e7ce198c09468a96a762be8ce29881268a000aa
Successfully built cryptography
Installing collected packages: six, cryptography
Successfully installed cryptography-3.3.2 six-1.15.0
User avatar
Knuspar
Know my way around
Posts: 155
Joined: Thu Aug 25, 2011 5:02 am
Location: Denmark
Contact:

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by Knuspar »

zyxmon wrote: Wed Apr 21, 2021 6:46 pm A small investigation resulted in building cryptology (x19)
python3-cffi ipkg was installed and a symlink was created manually - it is need to compile with pip3.

Code: Select all

 ln -s /opt/lib/libffi.so.7 /opt/lib/libffi.so
An old version of cryptology installed. New versions require rust that is not in Entware - https://github.com/pyca/cryptography/issues/5771
I have used the same version, that is in entware.

Code: Select all

 # pip install cryptography==3.3.2
Collecting cryptography==3.3.2
  Downloading cryptography-3.3.2.tar.gz (539 kB)
     |████████████████████████████████| 539 kB 1.7 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting six>=1.4.1
  Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Requirement already satisfied: cffi>=1.12 in /share/HDA_DATA/.qpkg/Entware/lib/python3.9/site-packages (from cryptography==3.3.2) (1.14.5)
Requirement already satisfied: pycparser in /share/HDA_DATA/.qpkg/Entware/lib/python3.9/site-packages (from cffi>=1.12->cryptography==3.3.2) (2.20)
Building wheels for collected packages: cryptography
  Building wheel for cryptography (PEP 517) ... done
  Created wheel for cryptography: filename=cryptography-3.3.2-cp39-cp39-linux_armv5tel.whl size=342501 sha256=21d71469fbd37a3254bb752ba9f965d3ad7ca077472f1880f61d5aa172ed38fb
  Stored in directory: /share/HDA_DATA/.qpkg/Entware/root/.cache/pip/wheels/0b/8b/61/b67c8d096e2e7ce198c09468a96a762be8ce29881268a000aa
Successfully built cryptography
Installing collected packages: six, cryptography
Successfully installed cryptography-3.3.2 six-1.15.0

I took a wild shot and tried ...

Code: Select all

[~] # ln -s /opt/lib/libffi.so.7 /opt/lib/libffi.so                                                                                                                                         
[~] # pip install cryptography==3.3.2                                                                                                                                                       
Collecting cryptography==3.3.2                                                                                                                                                              
  Downloading cryptography-3.3.2.tar.gz (539 kB)                                                                                                                                            
     |████████████████████████████████| 539 kB 1.8 MB/s 
  Installing build dependencies ... error                                                                                                                                                   
  ERROR: Command errored out with exit status 1:
   command: /opt/bin/python3 /opt/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-fxaw8yql/overlay --no-warn-s
cript-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"''
       cwd: None
  Complete output (100 lines):
  Collecting setuptools>=40.6.0
    Using cached setuptools-56.0.0-py3-none-any.whl (784 kB)
  Collecting wheel
    Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
  Collecting cffi>=1.12
    Using cached cffi-1.14.5.tar.gz (475 kB)
  Collecting pycparser
    Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
  Building wheels for collected packages: cffi
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-nmt2st2t/cffi_32ca82c8a603452680a6f5342aa56c3a/setu
p.py'"'"'; __file__='"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-nmt2st2t/cffi_32ca82c8a603452680a6f5342aa56c3a/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code
=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /share/MD0_DATA/.qpkg/Entware/tmp/pip-wheel-sd18kc67
         cwd: /share/MD0_DATA/.qpkg/Entware/tmp/pip-install-nmt2st2t/cffi_32ca82c8a603452680a6f5342aa56c3a/
    Complete output (36 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-armv5tel-3.9
    creating build/lib.linux-armv5tel-3.9/cffi
    copying cffi/model.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/error.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/__init__.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/verifier.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/api.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/cparser.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/lock.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv5tel-3.9/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-armv5tel-3.9/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv5tel-3.9
    creating build/temp.linux-armv5tel-3.9/c
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -O2
 -pipe -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -O2 -pipe -mtune=xscale -fn
o-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -I/media/ware3/Entware.2021.04/staging_dir/toolchai
n-arm_xscale_gcc-8.4.0_glibc-2.27_eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.9 -c c/_cffi_backend.c -o build/t
emp.linux-armv5tel-3.9/c/_cffi_backend.o
    c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
     #include <ffi.h>
              ^~~~~~~
    compilation terminated.
    error: command '/opt/bin/gcc' failed with exit code 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
    Running setup.py clean for cffi
  Failed to build cffi
  Installing collected packages: pycparser, wheel, setuptools, cffi
      Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-nmt2st2t/cffi_32ca82c8a603452680a6f5342aa56c3a/se
tup.py'"'"'; __file__='"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-nmt2st2t/cffi_32ca82c8a603452680a6f5342aa56c3a/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);co
de=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /share/MD0_DATA/.qpkg/Entware/tmp/pip-record-wwhygikk/install-re
cord.txt --single-version-externally-managed --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-fxaw8yql/overlay --compile --install-headers /share/MD0_DATA/.qpkg/Entware/tmp/pip-bui
ld-env-fxaw8yql/overlay/include/python3.9/cffi
           cwd: /share/MD0_DATA/.qpkg/Entware/tmp/pip-install-nmt2st2t/cffi_32ca82c8a603452680a6f5342aa56c3a/
      Complete output (36 lines):
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-armv5tel-3.9
      creating build/lib.linux-armv5tel-3.9/cffi
      copying cffi/model.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/error.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/__init__.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/verifier.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/api.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/cparser.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/lock.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/_embedding.h -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-armv5tel-3.9/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-armv5tel-3.9
      creating build/temp.linux-armv5tel-3.9/c
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -
O2 -pipe -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -O2 -pipe -mtune=xscale -
fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -I/media/ware3/Entware.2021.04/staging_dir/toolch
ain-arm_xscale_gcc-8.4.0_glibc-2.27_eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.9 -c c/_cffi_backend.c -o build
/temp.linux-armv5tel-3.9/c/_cffi_backend.o
      c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
       #include <ffi.h>
                ^~~~~~~
      compilation terminated.
      error: command '/opt/bin/gcc' failed with exit code 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-nmt2st2t/cffi_32
ca82c8a603452680a6f5342aa56c3a/setup.py'"'"'; __file__='"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-nmt2st2t/cffi_32ca82c8a603452680a6f5342aa56c3a/setup.py'"'"';f=getattr(tokenize, '
"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /share/MD0_DATA/.qpkg/Entware/t
mp/pip-record-wwhygikk/install-record.txt --single-version-externally-managed --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-fxaw8yql/overlay --compile --install-headers /share/M
D0_DATA/.qpkg/Entware/tmp/pip-build-env-fxaw8yql/overlay/include/python3.9/cffi Check the logs for full command output.
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/d4/85/38715448253404186029c575d559879912eb8a1c5d16ad9f25d35f7c4f4c/cryptography-3.3.2.tar.gz#sha256=5a60d3780149e13b7a6ff7ad6526
b38846354d11a15e21068e57073e29e19bed (from https://pypi.org/simple/cryptography/) (requires-python:>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*). Command errored out with exit sta
tus 1: /opt/bin/python3 /opt/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-fxaw8yql/overlay --no-warn-script
-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for
 full command output.
ERROR: Could not find a version that satisfies the requirement cryptography==3.3.2
ERROR: No matching distribution found for cryptography==3.3.2
Dident work :-/
Currently: TS-653D
Retired: TS-419+
zyxmon
Experience counts
Posts: 1001
Joined: Mon Oct 27, 2014 2:27 pm
Location: Moscow, Russia
Contact:

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by zyxmon »

Knuspar wrote: Wed Apr 21, 2021 6:59 pm Dident work :-/
Are correct headers downloaded and unpacked? It should be done in sherpa....
In my case cryptography installation used python3-cffi package- in your case pip compiles python3-cffi as a dependancy. I'll have a look in compiling python3-cffi.
I have no prooblems

Code: Select all

/share/HDA_DATA/.qpkg/Entware/root # opkg remove python3-cffi
Removing package python3-cffi from root...
/share/HDA_DATA/.qpkg/Entware/root # pip install cffi
Collecting cffi
  Using cached cffi-1.14.5.tar.gz (475 kB)
Requirement already satisfied: pycparser in /share/HDA_DATA/.qpkg/Entware/lib/python3.9/site-packages (from cffi) (2.20)
Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Installing collected packages: cffi
    Running setup.py install for cffi ... done
Successfully installed cffi-1.14.5
zyxmon
Experience counts
Posts: 1001
Joined: Mon Oct 27, 2014 2:27 pm
Location: Moscow, Russia
Contact:

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by zyxmon »

@Knuspar Try to run

Code: Select all

wget -qO- http://bin.entware.net/armv5sf-k3.2/include/include.tar.gz | tar xvz -C /opt/include
and run pip once more.
Here is a part of verbose output without error

Code: Select all

 building '_cffi_backend' extension
    creating build/temp.linux-armv5tel-3.9
    creating build/temp.linux-armv5tel-3.9/c
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -O2 -pipe -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -O2 -pipe -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -I/media/ware3/Entware.2021.04/staging_dir/toolchain-arm_xscale_gcc-8.4.0_glibc-2.27_eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv5tel-3.9/c/_cffi_backend.o
    c/_cffi_backend.c: In function 'fb_prepare_cif':
    c/_cffi_backend.c:5887:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (status == -1) {
                    ^~
    gcc -shared -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -Wl,-rpath=/opt/lib -L/media/ware3/Entware.2021.04/staging_dir/toolchain-arm_xscale_gcc-8.4.0_glibc-2.27_eabi/lib -L/media/ware3/Entware.2021.04/build_dir/target-arm_xscale_glibc-2.27_eabi/Python-3.9.4 -L/media/ware3/Entware.2021.04/staging_dir/target-arm_xscale_glibc-2.27_eabi/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -Wl,-rpath=/opt/lib -L/media/ware3/Entware.2021.04/staging_dir/toolchain-arm_xscale_gcc-8.4.0_glibc-2.27_eabi/lib -L/media/ware3/Entware.2021.04/build_dir/target-arm_xscale_glibc-2.27_eabi/Python-3.9.4 -L/media/ware3/Entware.2021.04/staging_dir/target-arm_xscale_glibc-2.27_eabi/opt/lib build/temp.linux-armv5tel-3.9/c/_cffi_backend.o -L/opt/lib -lffi -o build/lib.linux-armv5tel-3.9/_cffi_backend.cpython-39.so
User avatar
Knuspar
Know my way around
Posts: 155
Joined: Thu Aug 25, 2011 5:02 am
Location: Denmark
Contact:

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by Knuspar »

zyxmon wrote: Wed Apr 21, 2021 7:52 pm @Knuspar Try to run

Code: Select all

wget -qO- http://bin.entware.net/armv5sf-k3.2/include/include.tar.gz | tar xvz -C /opt/include
and run pip once more.
Here is a part of verbose output without error

Code: Select all

 building '_cffi_backend' extension
    creating build/temp.linux-armv5tel-3.9
    creating build/temp.linux-armv5tel-3.9/c
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -O2 -pipe -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -O2 -pipe -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -I/media/ware3/Entware.2021.04/staging_dir/toolchain-arm_xscale_gcc-8.4.0_glibc-2.27_eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv5tel-3.9/c/_cffi_backend.o
    c/_cffi_backend.c: In function 'fb_prepare_cif':
    c/_cffi_backend.c:5887:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (status == -1) {
                    ^~
    gcc -shared -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -Wl,-rpath=/opt/lib -L/media/ware3/Entware.2021.04/staging_dir/toolchain-arm_xscale_gcc-8.4.0_glibc-2.27_eabi/lib -L/media/ware3/Entware.2021.04/build_dir/target-arm_xscale_glibc-2.27_eabi/Python-3.9.4 -L/media/ware3/Entware.2021.04/staging_dir/target-arm_xscale_glibc-2.27_eabi/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -Wl,-rpath=/opt/lib -L/media/ware3/Entware.2021.04/staging_dir/toolchain-arm_xscale_gcc-8.4.0_glibc-2.27_eabi/lib -L/media/ware3/Entware.2021.04/build_dir/target-arm_xscale_glibc-2.27_eabi/Python-3.9.4 -L/media/ware3/Entware.2021.04/staging_dir/target-arm_xscale_glibc-2.27_eabi/opt/lib build/temp.linux-armv5tel-3.9/c/_cffi_backend.o -L/opt/lib -lffi -o build/lib.linux-armv5tel-3.9/_cffi_backend.cpython-39.so
Youre brilliant :-)

Code: Select all

Successfully installed cffi-1.14.5 cryptography-3.3.2  

And a bit later :

Code: Select all

[~] # sherpa start sabnzbd                                                                                                                                                                  
sherpa 210421 • a mini-package-manager for QNAP NAS
                                                                                                                                                                                            
done: updated package cache with 1 QPKG                       
done: installed 1 standalone QPKG                                            
done: downloaded & installed 20 IPKGs             
fail: 'SABnzbd' service operation failed. Check (/var/log/SABnzbd.log) for more information 
done: started 1 dependent QPKG                                            

[~] # sherpa clean                                                                                                                                                                          
done: management script cleaned 
[~] # sherpa check                                                                                                                                                                          
sherpa 210421 • a mini-package-manager for QNAP NAS
                                                                                                                                                                                            
done: installed 3 PIP groups                                            
done: restarted 1 dependent QPKG                      
And most importantly -> SABnzbd - 210401 - started

TY !

Hope you can implementet in the Sherpa package - otherwise ill have to get a new NAS soon, this 419 aint new anymore :D
Currently: TS-653D
Retired: TS-419+
Post Reply

Return to “Community Apps”