[QPKG] sherpa: a 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
OneCD
Guru
Posts: 12141
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

OK, I think it's working well-enough now. ;)

Try:

Code: Select all

sherpa clean
sherpa check

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
potestus
Easy as a breeze
Posts: 321
Joined: Tue May 10, 2011 7:30 pm

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

Post by potestus »

Thanks that's worked fine. But sab still stuck.. No error messages. I forced the nzbs to be wanted and seems OK.
You do not have the required permissions to view the files attached to this post.
User avatar
OneCD
Guru
Posts: 12141
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

"Trying to fetch" usually means you've used-up your daily allowance for those indexers (or your indexer account could have an issue), and the indexers have temporarily stopped you from downloading. ;)

SABnzbd will keep trying until it succeeds or you cancel them.

Suggest you try downloading manually from those indexers to make sure they're not limiting you.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
potestus
Easy as a breeze
Posts: 321
Joined: Tue May 10, 2011 7:30 pm

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

Post by potestus »

No the indexers are good and unlimited . I just set them to wanted from snatched. And they worked fine. It seems that when sab starts up. It doesn't do the queued snatches. They're so quick you rarely see them.
User avatar
OneCD
Guru
Posts: 12141
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

Oh good. :D

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
HuskerDu
Starting out
Posts: 28
Joined: Sun Mar 14, 2021 5:17 am

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

Post by HuskerDu »

Hi again,
I got this msg,
note: an upgraded QPKG is available for sherpa
how do we upgrade the script?
Brutalis
Starting out
Posts: 27
Joined: Thu Mar 15, 2012 6:33 pm

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

Post by Brutalis »

OneCD wrote: Mon Apr 05, 2021 6:23 am
Brutalis wrote: Mon Apr 05, 2021 5:26 am I have the same problem with SABnzbd and SickChill doesn't want to start either. So I thought let's update sherpa with the latest qnap package on your github and reinstall Entware. But I'm getting this error:
@potestus and Brutalis, I've reverted the management script to an earlier state to get your installs working again. (I'm quite focused on the 'develop' branch at the moment and can't invest time fixing problems related only to the 'main' branch ;) ).

Please run:

Code: Select all

sherpa clean
sherpa check 
I tried that, but it wont start the packages.

Code: Select all

[~] # sherpa clean
done: logs path cleaned 
done: work path cleaned 
[~] # sherpa check debug
proc: init ... 
dbug: (vv) $_obj_session_debug_toscreen_flag_ : 'true' 
dbug: (II) ==================================================================================================== 
dbug: (**)    SCRIPT:           started: Mon Apr 5 21:58:54 CEST 2021 
dbug: (**)    SCRIPT:           version: package: 210328, manager: 210405, loader: 200923 
dbug: (**)    SCRIPT:               PID: 13096 
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (II) Markers: (**) detected, (II) information, (WW) warning, (EE) error, (LL) log file, (--) processing, 
dbug: (II) (==) done, (>>) f entry, (<<) f exit, (vv) variable name & value, ($1) positional argument value 
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (vv) $_obj_session_summary_flag_ : 'true' 
dbug: (**)      QPKG: Entware installer: std 
dbug: (**)      QPKG:              arch: none 
dbug: (>>) ParseArguments 
dbug: (vv) $USER_ARGS_RAW : 'check debug' 
dbug: (>>) QPKGs.States.Build 
proc: checking installed QPKGs ... 
dbug: (vv) $_obj_qpkgs_states_built_flag_ : 'true' 
dbug: (<<) QPKGs.States.Build|0|0|4207ms 
dbug: (vv) $_obj_opts_dependencies_check_flag_ : 'true' 
dbug: (<<) ParseArguments|0|0|4470ms    
dbug: (<<) Session.Init|0|0|6711ms      
dbug: (>>) Session.Validate             
dbug: (>>) ArgumentSuggestions          
dbug: (<<) ArgumentSuggestions|0|0|76ms 
proc: validating parameters ... 
dbug: (>>) ListEnvironment           
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (**)  HARDWARE:             model: TS-419P II 
dbug: (**)  HARDWARE:               CPU 
dbug: (**)  HARDWARE:               RAM: 515492kB 
dbug: (**)  FIRMWARE:           version: 4.3.3 
dbug: (**)  FIRMWARE:             build: 20201006 
dbug: (**)  FIRMWARE:            kernel: 3.4.6 armv5tel 
dbug: (**)  FIRMWARE:          platform: MARVELL_6281 
dbug: (**) USERSPACE:         OS uptime: 4 days 
dbug: (**) USERSPACE:       system load: 1m:3.18, 5m:2.89, 15m:2.80 
dbug: (**) USERSPACE:             $USER: admin 
dbug: (**) USERSPACE:             $EUID: 0 
dbug: (**) USERSPACE:     $BASH_VERSION: 3.2.57(9)-release 
dbug: (**) USERSPACE:    default volume: /share/MD0_DATA 
dbug: (**) USERSPACE:              /opt: /share/MD0_DATA/.qpkg/Entware 
dbug: (**) USERSPACE:             $PATH: /opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/... 
dbug: (**) USERSPACE:    'python3' path: /opt/bin/python3 
dbug: (**) USERSPACE: 'python3' version: 3.9.2 
dbug: (**) USERSPACE:     'python' path: /opt/bin/python 
dbug: (**) USERSPACE:  'python' version: 3.9.2 
dbug: (**)    SCRIPT:         logs path: /share/MD0_DATA/.qpkg/sherpa/logs 
dbug: (**)    SCRIPT:         work path: /share/MD0_DATA/.qpkg/sherpa/cache 
dbug: (**)    SCRIPT:      objects hash: f94c5346e4a1bc45377d5361a86e71e1 
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (<<) ListEnvironment|0|0|1905ms 
dbug: (vv) $_obj_ipkgs_upgrade_flag_ : 'true' 
dbug: (vv) $_obj_ipkgs_install_flag_ : 'true' 
dbug: (vv) $_obj_pips_install_flag_ : 'true' 
dbug: (<<) Session.Validate|0|0|2670ms 
dbug: (>>) Tiers.Processor           
dbug: (>>) QPKGs.IsSupportBackup.Build 
dbug: (<<) QPKGs.IsSupportBackup.Build|0|0|211ms 
dbug: (>>) QPKGs.IsSupportUpdateOnRestart.Build 
dbug: (<<) QPKGs.IsSupportUpdateOnRestart.Build|0|0|220ms 
dbug: (>>) Tier.Processor            
proc: checking for packages to update package cache with ... 
dbug: (II) no QPKGs to process                                    
dbug: (<<) Tier.Processor|0|0|181ms                               
dbug: (>>) Tier.Processor                                         
proc: checking for packages to backup configuration for ... 
dbug: (II) no QPKGs to process                                   
dbug: (<<) Tier.Processor|0|0|179ms                              
dbug: (>>) Tier.Processor                                        
proc: checking for dependent packages to stop ... 
dbug: (II) no QPKGs to process                         
dbug: (<<) Tier.Processor|0|0|188ms                    
dbug: (>>) Tier.Processor                              
proc: checking for standalone packages to stop ... 
dbug: (II) no QPKGs to process                          
dbug: (<<) Tier.Processor|0|0|224ms                     
dbug: (>>) Tier.Processor                               
proc: checking for dependent packages to uninstall ... 
dbug: (II) no QPKGs to process                              
dbug: (<<) Tier.Processor|0|0|185ms                         
dbug: (>>) Tier.Processor                                   
proc: checking for addon packages to uninstall ... 
dbug: (>>) IPKGs.Uninstall                              
dbug: (>>) CalcAllIPKGDepsToUninstall                   
dbug: (II)       0 IPKGs requested: none                
dbug: (--) excluding IPKGs not installed ...            
dbug: (==) no IPKGs to uninstall                        
dbug: (<<) CalcAllIPKGDepsToUninstall|0|0|328ms         
dbug: (<<) IPKGs.Uninstall|0|0|509ms                    
dbug: (<<) Tier.Processor|0|0|758ms                     
dbug: (>>) Tier.Processor                               
proc: checking for standalone packages to uninstall ... 
dbug: (II) no QPKGs to process                               
dbug: (<<) Tier.Processor|0|0|186ms                          
dbug: (>>) Tier.Processor                                    
proc: checking for standalone packages to upgrade ... 
dbug: (II) no QPKGs to process                             
dbug: (<<) Tier.Processor|0|0|245ms                        
dbug: (>>) Tier.Processor                                  
proc: checking for standalone packages to reinstall ... 
dbug: (II) no QPKGs to process                               
dbug: (<<) Tier.Processor|0|0|206ms                          
dbug: (>>) Tier.Processor                                    
proc: checking for standalone packages to install ... 
dbug: (II) no QPKGs to process                             
dbug: (<<) Tier.Processor|0|0|193ms                        
dbug: (>>) Tier.Processor                                  
proc: checking for standalone packages to restore configuration for ... 
dbug: (II) no QPKGs to process                                               
dbug: (<<) Tier.Processor|0|0|191ms                                          
dbug: (>>) Tier.Processor                                                    
proc: checking for standalone packages to start ... 
dbug: (II) no QPKGs to process                           
dbug: (<<) Tier.Processor|0|0|186ms                      
dbug: (>>) Tier.Processor                                
proc: checking for standalone packages to restart ... 
dbug: (II) no QPKGs to process                             
dbug: (<<) Tier.Processor|0|0|234ms                        
dbug: (>>) Tier.Processor                                  
proc: checking for addon packages to upgrade ... 
dbug: (II) 'Entware' package list updated less-than 60 minutes ago: skipping update 
dbug: (>>) IPKGs.Upgrade                              
dbug: (>>) CalcIPKGsDownloadSize                      
dbug: (>>) RunAndLog                                  
dbug: (--) exec: '/usr/local/sbin/7z e -o/share/MD0_DATA/.qpkg/sherpa/cache /opt/var/opkg-lists/entware' ... 

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,1 CPU LE)

Scanning the drive for archives:
1 file, 300271 bytes (294 KiB)

Extracting archive: /opt/var/opkg-lists/entware
--
Path = /opt/var/opkg-lists/entware
Type = gzip
Headers Size = 19

Everything is Ok

Size:       1150491
Compressed: 300271
dbug: (<<) RunAndLog|0|0|612ms                        
dbug: (==) no IPKGs to size                           
dbug: (<<) CalcIPKGsDownloadSize|0|0|836ms            
dbug: (<<) IPKGs.Upgrade|0|0|1751ms                   
dbug: (<<) Tier.Processor|0|0|2038ms                  
dbug: (>>) Tier.Processor                             
proc: checking for addon packages to install ... 
dbug: (II) 'Entware' package list updated less-than 60 minutes ago: skipping update 
dbug: (>>) IPKGs.Install                              
dbug: (>>) CalcIPKGsDepsToInstall                     
dbug: (>>) RunAndLog                                  
dbug: (--) exec: '/usr/local/sbin/7z e -o/share/MD0_DATA/.qpkg/sherpa/cache /opt/var/opkg-lists/entware' ... 

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,1 CPU LE)

Scanning the drive for archives:
1 file, 300271 bytes (294 KiB)

Extracting archive: /opt/var/opkg-lists/entware
--
Path = /opt/var/opkg-lists/entware
Type = gzip
Headers Size = 19

Everything is Ok

Size:       1150491
Compressed: 300271
dbug: (<<) RunAndLog|0|0|462ms                        
proc: calculating IPKG dependencies ... 
dbug: (II) 13 IPKGs requested: 'ca-certificates findutils gcc git git-http grep less nano par2cmdline python3-dev python3-pip python3-setuptools sed'  
dbug: (==) complete in 13 iterations         
dbug: (II) 73 IPKGs required (including dependencies): 'ar binutils ca-bundle ca-certificates ca-certs file findutils gcc git git-http grep less libbfd libbz2 libc libctf libcurl libdb47 libexpat libffi libgcc libgdbm libiconv-full libintl-full liblzma libmagic libncurses libncursesw libopcodes libopenssl libpcre libpthread librt libsqlite3 libssp libstdcpp libtirpc libuuid nano objdump par2cmdline python-pip-conf python3 python3-asyncio python3-base python3-cgi python3-cgitb python3-codecs python3-ctypes python3-dbm python3-decimal python3-dev python3-distutils python3-email python3-gdbm python3-lib2to3 python3-light python3-logging python3-lzma python3-multiprocessing python3-ncurses python3-openssl python3-pip python3-pkg-resources python3-pydoc python3-setuptools python3-sqlite3 python3-unittest python3-urllib python3-xml sed terminfo zlib'  
dbug: (--) excluding IPKGs already installed ... 
dbug: (<<) CalcIPKGsDepsToInstall|0|0|4975ms 
dbug: (>>) CalcIPKGsDownloadSize             
dbug: (>>) RunAndLog                         
dbug: (--) exec: '/usr/local/sbin/7z e -o/share/MD0_DATA/.qpkg/sherpa/cache /opt/var/opkg-lists/entware' ... 

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,1 CPU LE)

Scanning the drive for archives:
1 file, 300271 bytes (294 KiB)

Extracting archive: /opt/var/opkg-lists/entware
--
Path = /opt/var/opkg-lists/entware
Type = gzip
Headers Size = 19

Everything is Ok

Size:       1150491
Compressed: 300271
dbug: (<<) RunAndLog|0|0|454ms               
dbug: (==) no IPKGs to size                  
dbug: (<<) CalcIPKGsDownloadSize|0|0|781ms   
dbug: (<<) IPKGs.Install|0|0|6223ms          
dbug: (<<) Tier.Processor|0|0|6503ms         
dbug: (>>) Tier.Processor                    
proc: checking for addon packages to install ... 
dbug: (>>) PIPs.Install                               
proc: installing 1 PIP group (might take a while) ... 50% (1/1) 
dbug: (--) downloading & installing 'Python3' modules ...            
dbug: (>>) RunAndLog                                                 
dbug: (--) exec: '/opt/bin/pip3 install apprise apscheduler beautifulsoup4 cfscrape cheetah3 cheroot!=8.4.4 cherrypy configobj feedparser portend pygithub python-levenshtein python-magic random_user_agent sabyenc3 simplejson slugify --disable-pip-version-check --cache-dir /share/MD0_DATA/.qpkg/sherpa/cache/pips' ... 
Collecting apprise
  Downloading apprise-0.9.1-py2.py3-none-any.whl (969 kB)
Collecting apscheduler
  Downloading APScheduler-3.7.0-py2.py3-none-any.whl (59 kB)
Collecting beautifulsoup4
  Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Collecting cfscrape
  Downloading cfscrape-2.1.1-py3-none-any.whl (12 kB)
Collecting cheetah3
  Downloading Cheetah3-3.2.6.post1.tar.gz (295 kB)
Collecting cheroot!=8.4.4
  Downloading cheroot-8.5.2-py2.py3-none-any.whl (97 kB)
Collecting cherrypy
  Downloading CherryPy-18.6.0-py2.py3-none-any.whl (419 kB)
Collecting configobj
  Downloading configobj-5.0.6.tar.gz (33 kB)
Requirement already satisfied: feedparser in /share/MD0_DATA/.qpkg/Entware/lib/python3.9/site-packages (6.0.2)
Collecting portend
  Downloading portend-2.7.1-py3-none-any.whl (5.3 kB)
Collecting pygithub
  Downloading PyGithub-1.54.1-py3-none-any.whl (289 kB)
Collecting python-levenshtein
  Downloading python-Levenshtein-0.12.2.tar.gz (50 kB)
Collecting python-magic
  Downloading python_magic-0.4.22-py2.py3-none-any.whl (12 kB)
Collecting random_user_agent
  Downloading random_user_agent-1.0.1-py3-none-any.whl (8.2 MB)
Requirement already satisfied: sabyenc3 in /share/MD0_DATA/.qpkg/Entware/lib/python3.9/site-packages (4.0.2)
Collecting simplejson
  Downloading simplejson-3.17.2.tar.gz (83 kB)
Collecting slugify
  Downloading slugify-0.0.1.tar.gz (1.2 kB)
Collecting markdown
  Downloading Markdown-3.3.4-py3-none-any.whl (97 kB)
Collecting click>=5.0
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
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-nxp0u1yy/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
  Complete output (62 lines):
  Collecting setuptools>=40.6.0
    Using cached setuptools-54.2.0-py3-none-any.whl (785 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 setuptools-rust>=0.11.4
    Using cached setuptools_rust-0.12.1-py3-none-any.whl (22 kB)
  Collecting pycparser
    Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
  Collecting toml>=0.9.0
    Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
  Collecting semantic-version>=2.6.0
    Using cached semantic_version-2.8.5-py2.py3-none-any.whl (15 kB)
  Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
  Installing collected packages: setuptools, wheel, pycparser, cffi, toml, semantic-version, setuptools-rust
      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-8s7kiud3/cffi/setup.py'"'"'; __file__='"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-8s7kiud3/cffi/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/tmp/pip-record-j4yz16ji/install-record.txt --single-version-externally-managed --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-nxp0u1yy/overlay --compile --install-headers /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-nxp0u1yy/overlay/include/python3.9/cffi
           cwd: /share/MD0_DATA/.qpkg/Entware/tmp/pip-install-8s7kiud3/cffi/
      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/__init__.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/api.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/cparser.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/error.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/lock.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/model.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/verifier.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/ware4/Entware.2021.03/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: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-8s7kiud3/cffi/setup.py'"'"'; __file__='"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-8s7kiud3/cffi/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/tmp/pip-record-j4yz16ji/install-record.txt --single-version-externally-managed --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-nxp0u1yy/overlay --compile --install-headers /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-nxp0u1yy/overlay/include/python3.9/cffi Check the logs for full command output.
  WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
  You should consider upgrading via the '/opt/bin/python3 -m pip install --upgrade pip' command.
  ----------------------------------------
ERROR: Command errored out with exit status 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-nxp0u1yy/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' Check the logs for full command output.
dbug: (LL) ---------------------------------------------------------------------------------------------------- 
dbug: (LL) adding external log to main log ...                       
dbug: (vv) $_obj_session_debug_toscreen_flag_ : 'true'               
dbug: (LL) ---------------------------------------------------------------------------------------------------- 
dbug: (<<) RunAndLog|1|0|00h:03m:55s                                 
eror: Download & install 'Python3' modules failed ! result_code: [1]  
dbug: (vv) $_script_error_flag_ : 'true'                             
proc: installing 2 PIP groups (might take a while) ... 33% (1/2) 
dbug: (--) downloading & installing 'Python3 sabyenc3' module ...     
dbug: (>>) RunAndLog                                                  
dbug: (--) exec: '/opt/bin/pip3 install --force-reinstall --ignore-installed --no-binary :all: sabyenc3 --disable-pip-version-check --cache-dir /share/MD0_DATA/.qpkg/sherpa/cache/pips' ... 
Collecting sabyenc3
  Downloading sabyenc3-4.0.2.tar.gz (10 kB)
Skipping wheel build for sabyenc3, due to binaries being disabled for it.
Installing collected packages: sabyenc3
    Running setup.py install for sabyenc3: started
    Running setup.py install for sabyenc3: finished with status 'done'
Successfully installed sabyenc3-4.0.2
dbug: (<<) RunAndLog|0|0|00h:00m:33s                                  
dbug: (==) downloaded & installed 'Python3 sabyenc3' module           
proc: installing 2 PIP groups (might take a while) ... 67% (2/2) 
dbug: (--) downloading & installing 'Python3 feedparser' module ...   
dbug: (>>) RunAndLog                                                  
dbug: (--) exec: '/opt/bin/pip3 install --upgrade feedparser --disable-pip-version-check --cache-dir /share/MD0_DATA/.qpkg/sherpa/cache/pips' ... 
Requirement already up-to-date: feedparser in /share/MD0_DATA/.qpkg/Entware/lib/python3.9/site-packages (6.0.2)
Requirement already satisfied, skipping upgrade: sgmllib3k in /share/MD0_DATA/.qpkg/Entware/lib/python3.9/site-packages (from feedparser) (1.0.0)
dbug: (<<) RunAndLog|0|0|12504ms                                      
dbug: (==) downloaded & installed 'Python3 feedparser' module         
proc: installing 2 PIP groups (might take a while) ... 100% (1/2) 
warn: installed 2 PIP groups, but 1 PIP group failed              
dbug: (<<) PIPs.Install|0|0|00h:04m:43s                                
dbug: (<<) Tier.Processor|0|0|00h:04m:43s                              
dbug: (>>) Tier.Processor                                              
proc: checking for dependent packages to upgrade ... 
dbug: (II) no QPKGs to process                            
dbug: (<<) Tier.Processor|0|0|206ms                       
dbug: (>>) Tier.Processor                                 
proc: checking for dependent packages to reinstall ... 
dbug: (II) no QPKGs to process                              
dbug: (<<) Tier.Processor|0|0|203ms                         
dbug: (>>) Tier.Processor                                   
proc: checking for dependent packages to install ... 
dbug: (II) no QPKGs to process                            
dbug: (<<) Tier.Processor|0|0|197ms                       
dbug: (>>) Tier.Processor                                 
proc: checking for dependent packages to restore configuration for ... 
dbug: (II) no QPKGs to process                                              
dbug: (<<) Tier.Processor|0|0|259ms                                         
dbug: (>>) Tier.Processor                                                   
proc: checking for dependent packages to start ... 
dbug: (II) no QPKGs to process                          
dbug: (<<) Tier.Processor|0|0|215ms                     
dbug: (>>) Tier.Processor                               
proc: checking for dependent packages to restart ... 
proc: restarting 1 dependent QPKG (might take a while) ... 50% (1/1) 
dbug: (>>) QPKG.Restart                                                   
dbug: (>>) RunAndLog                                                      
dbug: (--) exec: '/sbin/qpkg_service enable SABnzbd' ...                  
dbug: (<<) RunAndLog|0|0|378ms                                            
dbug: (--) restarting 'SABnzbd' ...                                       
dbug: (>>) RunAndLog                                                      
dbug: (--) exec: '/sbin/qpkg_service restart SABnzbd' ...                 
daemon: NOT active
disable QPKG icon: OK
daemon: NOT active
file (/opt/bin/git): exists
update 'SABnzbd' from remote repository: OK
current git branch: master
file (/opt/bin/python3): exists
load UI ports from application: OK
start daemon: failed!
= ExecuteAndLog()
output: "Not all required Python modules are available, please check requirements.txt
Missing module: Cheetah
You can read more at: https://sabnzbd.org/wiki/installation/install-off-modules
If you still experience problems, remove all .pyc files in this folder and subfolders"
result: [1]
dbug: (<<) RunAndLog|0|0|7277ms                                           
dbug: (==) restarted 'SABnzbd'                                            
eror: 'SABnzbd' service operation failed. Check (/var/log/SABnzbd.log) for more information 
dbug: (<<) QPKG.Restart|0|0|8444ms                                        
proc: restarting 1 dependent QPKG (might take a while) ... 100% (1/1) 
done: restarted 1 dependent QPKG                                            
dbug: (<<) Tier.Processor|0|0|9967ms                                       
dbug: (>>) QPKGs.States.List                                               
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (II)      QPKG:       IsInstalled: (5) Entware,nzbToMedia,SABnzbd,sherpa,SickChill 
dbug: (II)      QPKG:    IsNotInstalled: (15) ClamAV,Deluge-server,Deluge-web,duf,HideThatBanner,LazyLibrarian,OMedusa,Mylar3,NZBGet,Par2,RunLast,sha3sum,OSickGear,SortMyQPKGs,OTransmission 
dbug: (II)      QPKG:         IsStarted: (2) Entware,sherpa                
dbug: (II)      QPKG:         IsStopped: (3) nzbToMedia,SABnzbd,SickChill  
dbug: (II)      QPKG:     IsNotBackedUp: (3) nzbToMedia,SABnzbd,SickChill  
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (<<) QPKGs.States.List|0|0|740ms                                     
dbug: (<<) Tiers.Processor|0|0|00h:05m:09s                                 
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (**)    SCRIPT:          finished: Mon Apr  5 22:04:13 CEST 2021     
dbug: (**)    SCRIPT:      elapsed time: 00h:05m:19s                       
dbug: (II) ==================================================================================================== 
User avatar
OneCD
Guru
Posts: 12141
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

HuskerDu wrote: Tue Apr 06, 2021 12:50 am Hi again,
I got this msg,
note: an upgraded QPKG is available for sherpa
how do we upgrade the script?
Use:

Code: Select all

sherpa upgrade upgradable

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

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

Post by OneCD »

Brutalis wrote: Tue Apr 06, 2021 4:06 am I tried that, but it wont start the packages.
Can you please try another reinstall of Entware?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
HuskerDu
Starting out
Posts: 28
Joined: Sun Mar 14, 2021 5:17 am

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

Post by HuskerDu »

OneCD wrote: Tue Apr 06, 2021 4:19 am
HuskerDu wrote: Tue Apr 06, 2021 12:50 am Hi again,
I got this msg,
note: an upgraded QPKG is available for sherpa
how do we upgrade the script?
Use:

Code: Select all

sherpa upgrade upgradable
Done, thank you sir! :)
Brutalis
Starting out
Posts: 27
Joined: Thu Mar 15, 2012 6:33 pm

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

Post by Brutalis »

OneCD wrote: Tue Apr 06, 2021 4:20 am
Brutalis wrote: Tue Apr 06, 2021 4:06 am I tried that, but it wont start the packages.
Can you please try another reinstall of Entware?
Hmm still an error:

A small snippet of the error at the bottom is the full log:

Code: Select all

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/ware4/Entware.2021.03/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: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-mtmssc7w/cffi/setup.py'"'"'; __file__='"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-mtmssc7w/cffi/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/tmp/pip-record-l54jv7c6/install-record.txt --single-version-externally-managed --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-hxrydkv7/overlay --compile --install-headers /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-hxrydkv7/overlay/include/python3.9/cffi 

Code: Select all

[~] # sherpa clean
done: logs path cleaned 
done: work path cleaned 
[~] # sherpa reinstall ew debug
proc: init ... 
dbug: (vv) $_obj_session_debug_toscreen_flag_ : 'true' 
dbug: (II) ==================================================================================================== 
dbug: (**)    SCRIPT:           started: Tue Apr 6 10:22:21 CEST 2021 
dbug: (**)    SCRIPT:           version: package: 210328, manager: 210406, loader: 200923 
dbug: (**)    SCRIPT:               PID: 4279 
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (II) Markers: (**) detected, (II) information, (WW) warning, (EE) error, (LL) log file, (--) processing, 
dbug: (II) (==) done, (>>) f entry, (<<) f exit, (vv) variable name & value, ($1) positional argument value 
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (vv) $_obj_session_summary_flag_ : 'true' 
dbug: (**)      QPKG: Entware installer: std 
dbug: (**)      QPKG:              arch: none 
dbug: (>>) ParseArguments 
dbug: (vv) $USER_ARGS_RAW : 'reinstall ew debug' 
dbug: (>>) QPKGs.States.Build 
proc: checking installed QPKGs ... 
dbug: (vv) $_obj_qpkgs_states_built_flag_ : 'true' 
dbug: (<<) QPKGs.States.Build|0|0|2446ms 
dbug: (<<) ParseArguments|0|0|2698ms    
dbug: (<<) Session.Init|0|0|5115ms      
dbug: (>>) Session.Validate             
dbug: (>>) ArgumentSuggestions          
dbug: (<<) ArgumentSuggestions|0|0|62ms 
proc: validating parameters ... 
dbug: (>>) ListEnvironment           
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (**)  HARDWARE:             model: TS-419P II 
dbug: (**)  HARDWARE:               CPU 
dbug: (**)  HARDWARE:               RAM: 515492kB 
dbug: (**)  FIRMWARE:           version: 4.3.3 
dbug: (**)  FIRMWARE:             build: 20201006 
dbug: (**)  FIRMWARE:            kernel: 3.4.6 armv5tel 
dbug: (**)  FIRMWARE:          platform: MARVELL_6281 
dbug: (**) USERSPACE:         OS uptime: 5 days 
dbug: (**) USERSPACE:       system load: 1m:3.62, 5m:3.32, 15m:3.54 
dbug: (**) USERSPACE:             $USER: admin 
dbug: (**) USERSPACE:             $EUID: 0 
dbug: (**) USERSPACE:     $BASH_VERSION: 3.2.57(9)-release 
dbug: (**) USERSPACE:    default volume: /share/MD0_DATA 
dbug: (**) USERSPACE:              /opt: /share/MD0_DATA/.qpkg/Entware 
dbug: (**) USERSPACE:             $PATH: /opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/... 
dbug: (**) USERSPACE:    'python3' path: /opt/bin/python3 
dbug: (**) USERSPACE: 'python3' version: 3.9.2 
dbug: (**) USERSPACE:     'python' path: /opt/bin/python 
dbug: (**) USERSPACE:  'python' version: 3.9.2 
dbug: (**)    SCRIPT:         logs path: /share/MD0_DATA/.qpkg/sherpa/logs 
dbug: (**)    SCRIPT:         work path: /share/MD0_DATA/.qpkg/sherpa/cache 
dbug: (**)    SCRIPT:      objects hash: f94c5346e4a1bc45377d5361a86e71e1 
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (<<) ListEnvironment|0|0|2194ms 
dbug: (<<) Session.Validate|0|0|2559ms 
dbug: (>>) Tiers.Processor           
dbug: (>>) QPKGs.IsSupportBackup.Build 
dbug: (<<) QPKGs.IsSupportBackup.Build|0|0|208ms 
dbug: (>>) QPKGs.IsSupportUpdateOnRestart.Build 
dbug: (<<) QPKGs.IsSupportUpdateOnRestart.Build|0|0|229ms 
dbug: (>>) Tier.Processor            
proc: checking for packages to update package cache with ... 
proc: updating package cache with 1 QPKG ... 50% (1/1) 
dbug: (>>) QPKG.Download                                    
dbug: (--) downloading (Entware_1.03std.qpkg) ...           
dbug: (>>) RunAndLog                                        
dbug: (--) exec: '/sbin/curl --output /share/MD0_DATA/.qpkg/sherpa/cache/qpkgs/Entware_1.03std.qpkg https://raw.githubusercontent.com/OneCDOnly/sherpa/main/QPKGs/Entware/Entware_1.03std.qpkg' ... 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 52548  100 52548    0     0   134k      0 --:--:-- --:--:-- --:--:--  138k
dbug: (<<) RunAndLog|0|0|609ms                              
dbug: (==) downloaded (Entware_1.03std.qpkg)                
dbug: (<<) QPKG.Download|0|0|957ms                          
proc: updating package cache with 1 QPKG ... 100% (1/1) 
done: updated package cache with 1 QPKG                       
dbug: (<<) Tier.Processor|0|0|2389ms                         
dbug: (>>) Tier.Processor                                    
proc: checking for packages to backup configuration for ... 
dbug: (II) no QPKGs to process                                   
dbug: (<<) Tier.Processor|0|0|224ms                              
dbug: (>>) Tier.Processor                                        
proc: checking for dependent packages to stop ... 
dbug: (II) no QPKGs to process                         
dbug: (<<) Tier.Processor|0|0|189ms                    
dbug: (>>) Tier.Processor                              
proc: checking for standalone packages to stop ... 
dbug: (II) no QPKGs to process                          
dbug: (<<) Tier.Processor|0|0|302ms                     
dbug: (>>) Tier.Processor                               
proc: checking for dependent packages to uninstall ... 
dbug: (II) no dependent QPKGs to process                    
dbug: (<<) Tier.Processor|0|0|511ms                         
dbug: (>>) Tier.Processor                                   
proc: checking for addon packages to uninstall ... 
dbug: (>>) IPKGs.Uninstall                              
dbug: (>>) CalcAllIPKGDepsToUninstall                   
dbug: (II)       0 IPKGs requested: none                
dbug: (--) excluding IPKGs not installed ...            
dbug: (==) no IPKGs to uninstall                        
dbug: (<<) CalcAllIPKGDepsToUninstall|0|0|658ms         
dbug: (<<) IPKGs.Uninstall|0|0|953ms                    
dbug: (<<) Tier.Processor|0|0|1307ms                    
dbug: (>>) Tier.Processor                               
proc: checking for standalone packages to uninstall ... 
proc: uninstalling 1 standalone QPKG ... 50% (1/1) 
dbug: (>>) QPKG.Uninstall                               
dbug: (==) saved current 'pip3' module list to (/share/MD0_DATA/.qpkg/sherpa/cache/pip.prev.installed.list) 
dbug: (==) saved current 'Entware' IPKG list to (/share/MD0_DATA/.qpkg/sherpa/cache/opkg.prev.installed.list) 
dbug: (--) uninstalling 'Entware' ...                   
dbug: (>>) RunAndLog                                    
dbug: (--) exec: '/bin/sh /share/MD0_DATA/.qpkg/Entware/.uninstall.sh' ... 
Disable Entware/opkg
dbug: (<<) RunAndLog|0|0|7725ms                         
dbug: (==) uninstalled 'Entware'                        
dbug: (==) removed icon information from App Center     
dbug: (<<) QPKG.Uninstall|0|0|19421ms                   
proc: uninstalling 1 standalone QPKG ... 100% (1/1) 
done: uninstalled 1 standalone QPKG                       
dbug: (<<) Tier.Processor|0|0|20901ms                    
dbug: (>>) Tier.Processor                                
proc: checking for standalone packages to upgrade ... 
dbug: (II) no QPKGs to process                             
dbug: (<<) Tier.Processor|0|0|230ms                        
dbug: (>>) Tier.Processor                                  
proc: checking for standalone packages to reinstall ... 
dbug: (II) no QPKGs to process                               
dbug: (<<) Tier.Processor|0|0|409ms                          
dbug: (>>) Tier.Processor                                    
proc: checking for standalone packages to install ... 
proc: installing 1 standalone QPKG (might take a while) ... 50% (1/1) 
dbug: (>>) QPKG.Install                                                    
dbug: (--) installing 'Entware' ...                                        
dbug: (>>) RunAndLog                                                       
dbug: (--) exec: '/bin/sh /share/MD0_DATA/.qpkg/sherpa/cache/qpkgs/Entware_1.03std.qpkg' ... 
Install QNAP package on TS-NAS...
15+1 records in
15+1 records out
./
./built_info
./qinstall.sh
./package_routines
./qpkg.cfg
1+1 records in
1+1 records out
26+0 records in
26+0 records out
Firmware check is fine.
Sym-link /opt ...
Info: Opkg package manager deployment...
Info: Basic packages installation...
Downloading http://bin.entware.net/armv5sf-k3.2/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Entware uses separate locale-archive file independent from main system
Creating locale archive /opt/usr/lib/locale/locale-archive
Adding en_EN.UTF-8
Adding ru_RU.UTF-8
You can download locale sources from http://bin.entware.net/other/i18n_glib227.tar.gz
You can add new locales to Entware using /opt/bin/localedef.new
Upgrade operations are not required.
Installing entware-opt (227000-3) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/entware-opt_227000-3_all.ipk
Installing libgcc (8.4.0-11) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libgcc_8.4.0-11_armv5-3.2.ipk
Installing libc (2.27-11) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libc_2.27-11_armv5-3.2.ipk
Installing libssp (8.4.0-11) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libssp_8.4.0-11_armv5-3.2.ipk
Installing libpthread (2.27-11) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libpthread_2.27-11_armv5-3.2.ipk
Installing librt (2.27-11) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/librt_2.27-11_armv5-3.2.ipk
Installing libstdcpp (8.4.0-11) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libstdcpp_8.4.0-11_armv5-3.2.ipk
Installing entware-release (1.0-2) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/entware-release_1.0-2_all.ipk
Installing zoneinfo-asia (2021a-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/zoneinfo-asia_2021a-1_armv5-3.2.ipk
Installing zoneinfo-europe (2021a-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/zoneinfo-europe_2021a-1_armv5-3.2.ipk
Installing findutils (4.7.0-3) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/findutils_4.7.0-3_armv5-3.2.ipk
Installing terminfo (6.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/terminfo_6.2-1_armv5-3.2.ipk
Installing libpcre (8.44-4) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libpcre_8.44-4_armv5-3.2.ipk
Installing grep (3.6-1a) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/grep_3.6-1a_armv5-3.2.ipk
Installing locales (2.27-9) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/locales_2.27-9_armv5-3.2.ipk
Installing opkg (2020-12-24-9bbc7eae-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/opkg_2020-12-24-9bbc7eae-1_armv5-3.2.ipk
Installing entware-upgrade (1.0-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/entware-upgrade_1.0-1_all.ipk
Configuring libgcc.
Configuring libc.
Configuring libssp.
Configuring libpthread.
Configuring librt.
Configuring terminfo.
Configuring libpcre.
Configuring grep.
Configuring locales.
Configuring entware-upgrade.
Configuring opkg.
Configuring zoneinfo-europe.
Configuring zoneinfo-asia.
Configuring libstdcpp.
Configuring entware-release.
Configuring findutils.
Configuring entware-opt.
Link service start/stop script: Entware.sh
Set QPKG information in /etc/config/qpkg.conf
[App Center] Installed Entware-std 1.03 in /share/MD0_DATA/.qpkg/Entware.
Enable Entware/opkg
[App Center] Enabled Entware-std.
dbug: (<<) RunAndLog|10|0|00h:00m:36s                                      
dbug: (==) installed 'Entware'                                             
dbug: (WW) 'Entware' service status is incorrect                           
dbug: (==) patch: do the "opt shuffle"                                     
dbug: (--) installing standalone IPKGs ...                                 
dbug: (>>) RunAndLog                                                       
dbug: (--) exec: '/opt/bin/opkg install --force-overwrite findutils grep less sed --cache /share/MD0_DATA/.qpkg/sherpa/cache/ipkgs --tmp-dir /share/MD0_DATA/.qpkg/sherpa/cache/ipkgs.downloads' ... 
Collected errors:
 * opkg_conf_set_option: Duplicate option tmp_dir, using first seen value "/share/MD0_DATA/.qpkg/sherpa/cache/ipkgs.downloads".
Package findutils (4.7.0-3) installed in root is up to date.
Package grep (3.6-1a) installed in root is up to date.
Installing less (563-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/less_563-1_armv5-3.2.ipk
Installing libncursesw (6.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libncursesw_6.2-1_armv5-3.2.ipk
Installing libncurses (6.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libncurses_6.2-1_armv5-3.2.ipk
Installing sed (4.8-3) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/sed_4.8-3_armv5-3.2.ipk
Configuring libncursesw.
Configuring libncurses.
Configuring less.
Configuring sed.
dbug: (<<) RunAndLog|0|0|2162ms                                            
dbug: (==) installed standalone IPKGs                                      
dbug: (vv) $_obj_pips_install_flag_ : 'true'                               
dbug: (<<) QPKG.Install|0|0|00h:00m:39s                                    
proc: installing 1 standalone QPKG (might take a while) ... 100% (1/1) 
done: installed 1 standalone QPKG                                            
dbug: (<<) Tier.Processor|0|0|00h:00m:41s                                   
dbug: (>>) Tier.Processor                                                   
proc: checking for standalone packages to restore configuration for ... 
dbug: (II) no QPKGs to process                                               
dbug: (<<) Tier.Processor|0|0|193ms                                          
dbug: (>>) Tier.Processor                                                    
proc: checking for standalone packages to start ... 
dbug: (II) no QPKGs to process                           
dbug: (<<) Tier.Processor|0|0|212ms                      
dbug: (>>) Tier.Processor                                
proc: checking for standalone packages to restart ... 
dbug: (II) no QPKGs to process                             
dbug: (<<) Tier.Processor|0|0|209ms                        
dbug: (vv) $_obj_ipkgs_upgrade_flag_ : 'true'              
dbug: (vv) $_obj_ipkgs_install_flag_ : 'true'              
dbug: (>>) Tier.Processor                                  
proc: checking for addon packages to upgrade ... 
dbug: (II) 'Entware' package list updated less-than 60 minutes ago: skipping update 
dbug: (>>) IPKGs.Upgrade                              
dbug: (>>) CalcIPKGsDownloadSize                      
dbug: (>>) RunAndLog                                  
dbug: (--) exec: '/usr/local/sbin/7z e -o/share/MD0_DATA/.qpkg/sherpa/cache /opt/var/opkg-lists/entware' ... 

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,1 CPU LE)

Scanning the drive for archives:
1 file, 300271 bytes (294 KiB)

Extracting archive: /opt/var/opkg-lists/entware
--
Path = /opt/var/opkg-lists/entware
Type = gzip
Headers Size = 19

Everything is Ok

Size:       1150491
Compressed: 300271
dbug: (<<) RunAndLog|0|0|669ms                        
dbug: (==) no IPKGs to size                           
dbug: (<<) CalcIPKGsDownloadSize|0|0|917ms            
dbug: (<<) IPKGs.Upgrade|0|0|1563ms                   
dbug: (<<) Tier.Processor|0|0|1853ms                  
dbug: (>>) Tier.Processor                             
proc: checking for addon packages to install ... 
dbug: (II) 'Entware' package list updated less-than 60 minutes ago: skipping update 
dbug: (>>) IPKGs.Install                              
dbug: (>>) CalcIPKGsDepsToInstall                     
dbug: (>>) RunAndLog                                  
dbug: (--) exec: '/usr/local/sbin/7z e -o/share/MD0_DATA/.qpkg/sherpa/cache /opt/var/opkg-lists/entware' ... 

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,1 CPU LE)

Scanning the drive for archives:
1 file, 300271 bytes (294 KiB)

Extracting archive: /opt/var/opkg-lists/entware
--
Path = /opt/var/opkg-lists/entware
Type = gzip
Headers Size = 19

Everything is Ok

Size:       1150491
Compressed: 300271
dbug: (<<) RunAndLog|0|0|467ms                        
proc: calculating IPKG dependencies ... 
dbug: (II) 13 IPKGs requested: 'ca-certificates findutils gcc git git-http grep less nano par2cmdline python3-dev python3-pip python3-setuptools sed'  
dbug: (==) complete in 13 iterations         
dbug: (II) 73 IPKGs required (including dependencies): 'ar binutils ca-bundle ca-certificates ca-certs file findutils gcc git git-http grep less libbfd libbz2 libc libctf libcurl libdb47 libexpat libffi libgcc libgdbm libiconv-full libintl-full liblzma libmagic libncurses libncursesw libopcodes libopenssl libpcre libpthread librt libsqlite3 libssp libstdcpp libtirpc libuuid nano objdump par2cmdline python-pip-conf python3 python3-asyncio python3-base python3-cgi python3-cgitb python3-codecs python3-ctypes python3-dbm python3-decimal python3-dev python3-distutils python3-email python3-gdbm python3-lib2to3 python3-light python3-logging python3-lzma python3-multiprocessing python3-ncurses python3-openssl python3-pip python3-pkg-resources python3-pydoc python3-setuptools python3-sqlite3 python3-unittest python3-urllib python3-xml sed terminfo zlib'  
dbug: (--) excluding IPKGs already installed ... 
dbug: (<<) CalcIPKGsDepsToInstall|0|0|5973ms 
dbug: (>>) CalcIPKGsDownloadSize             
dbug: (>>) RunAndLog                         
dbug: (--) exec: '/usr/local/sbin/7z e -o/share/MD0_DATA/.qpkg/sherpa/cache /opt/var/opkg-lists/entware' ... 

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,1 CPU LE)

Scanning the drive for archives:
1 file, 300271 bytes (294 KiB)

Extracting archive: /opt/var/opkg-lists/entware
--
Path = /opt/var/opkg-lists/entware
Type = gzip
Headers Size = 19

Everything is Ok

Size:       1150491
Compressed: 300271
dbug: (<<) RunAndLog|0|0|602ms               
dbug: (==) 58 IPKGs to download: 'ar binutils ca-bundle ca-certificates file gcc git git-http libbfd libbz2 libctf libcurl libdb47 libexpat libffi libgdbm libiconv-full libintl-full liblzma libmagic libopcodes libopenssl libsqlite3 libtirpc libuuid nano objdump par2cmdline python-pip-conf python3 python3-asyncio python3-base python3-cgi python3-cgitb python3-codecs python3-ctypes python3-dbm python3-decimal python3-dev python3-distutils python3-email python3-gdbm python3-lib2to3 python3-light python3-logging python3-lzma python3-multiprocessing python3-ncurses python3-openssl python3-pip python3-pkg-resources python3-pydoc python3-setuptools python3-sqlite3 python3-unittest python3-urllib python3-xml zlib' 
dbug: (--) calculating size of IPKGs to download ... 
dbug: (==) 86595766 bytes (87MB) to download 
dbug: (<<) CalcIPKGsDownloadSize|0|0|1389ms  
proc: downloading & installing 58 IPKGs ... 
dbug: (>>) RunAndLog                             
dbug: (--) exec: '/opt/bin/opkg install --force-overwrite ar binutils ca-bundle ca-certificates file gcc git git-http libbfd libbz2 libctf libcurl libdb47 libexpat libffi libgdbm libiconv-full libintl-full liblzma libmagic libopcodes libopenssl libsqlite3 libtirpc libuuid nano objdump par2cmdline python-pip-conf python3 python3-asyncio python3-base python3-cgi python3-cgitb python3-codecs python3-ctypes python3-dbm python3-decimal python3-dev python3-distutils python3-email python3-gdbm python3-lib2to3 python3-light python3-logging python3-lzma python3-multiprocessing python3-ncurses python3-openssl python3-pip python3-pkg-resources python3-pydoc python3-setuptools python3-sqlite3 python3-unittest python3-urllib python3-xml zlib --cache /share/MD0_DATA/.qpkg/sherpa/cache/ipkgs --tmp-dir /share/MD0_DATA/.qpkg/sherpa/cache/ipkgs.downloads' ... 
56% (49MB/87MB) Installing ar (2.34-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/ar_2.34-1_armv5-3.2.ipk
Installing zlib (1.2.11-3) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/zlib_1.2.11-3_armv5-3.2.ipk
Installing libiconv-full (1.16-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libiconv-full_1.16-1_armv5-3.2.ipk
Installing libintl-full (0.21-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libintl-full_0.21-1_armv5-3.2.ipk
Installing libbfd (2.34-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libbfd_2.34-1_armv5-3.2.ipk
Installing binutils (2.34-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/binutils_2.34-1_armv5-3.2.ipk
Installing libopcodes (2.34-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libopcodes_2.34-1_armv5-3.2.ipk
Installing libctf (2.34-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libctf_2.34-1_armv5-3.2.ipk
Installing objdump (2.34-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/objdump_2.34-1_armv5-3.2.ipk
Installing ca-bundle (20210119-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/ca-bundle_20210119-1_all.ipk
Installing ca-certificates (20210119-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/ca-certificates_20210119-1_all.ipk
Installing file (5.39-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/file_5.39-1_armv5-3.2.ipk
Installing liblzma (5.2.5-3) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/liblzma_5.2.5-3_armv5-3.2.ipk
Installing libbz2 (1.0.8-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libbz2_1.0.8-1_armv5-3.2.ipk
Installing libmagic (5.39-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libmagic_5.39-1_armv5-3.2.ipk
Installing gcc (7.4.0-5) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/gcc_7.4.0-5_armv5-3.2.ipk
Installing git (2.29.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/git_2.29.2-1_armv5-3.2.ipk
Installing libopenssl (1.1.1k-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libopenssl_1.1.1k-1_armv5-3.2.ipk
Installing git-http (2.29.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/git-http_2.29.2-1_armv5-3.2.ipk
Installing libcurl (7.75.0-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libcurl_7.75.0-1_armv5-3.2.ipk
Package libbfd (2.34-1) installed in root is up to date.
Package libbz2 (1.0.8-1) installed in root is up to date.
Package libctf (2.34-1) installed in root is up to date.
Package libcurl (7.75.0-1) installed in root is up to date.
Installing libdb47 (4.7.25.4.NC-6) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libdb47_4.7.25.4.NC-6_armv5-3.2.ipk
Installing libexpat (2.2.10-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libexpat_2.2.10-1_armv5-3.2.ipk
Installing libffi (3.3-2) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libffi_3.3-2_armv5-3.2.ipk
Installing libgdbm (1.19-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libgdbm_1.19-1_armv5-3.2.ipk
Package libiconv-full (1.16-1) installed in root is up to date.
Package libintl-full (0.21-1) installed in root is up to date.
Package liblzma (5.2.5-3) installed in root is up to date.
Package libmagic (5.39-1) installed in root is up to date.
Package libopcodes (2.34-1) installed in root is up to date.
Package libopenssl (1.1.1k-1) installed in root is up to date.
Installing libsqlite3 (3330000-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libsqlite3_3330000-1_armv5-3.2.ipk
Installing libtirpc (1.3.1-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libtirpc_1.3.1-1_armv5-3.2.ipk
Installing libuuid (2.36.1-2) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/libuuid_2.36.1-2_armv5-3.2.ipk
Installing nano (5.6-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/nano_5.6-1_armv5-3.2.ipk
Package objdump (2.34-1) installed in root is up to date.
Installing par2cmdline (0.8.1-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/par2cmd98% (85MB/87MB) stalled for 20 seconds v5-3.2.ipk
Installing python-pip-conf (0.1-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python-pip-conf_0.1-1_armv5-3.2.ipk
Installing python3 (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3_3.9.2-1_armv5-3.2.ipk
Installing python3-base (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-base_3.9.2-1_armv5-3.2.ipk
Installing python3-light (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-light_3.9.2-1_armv5-3.2.ipk
Installing python3-unittest (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-unittest_3.9.2-1_armv5-3.2.ipk
Installing python3-ncurses (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-ncurses_3.9.2-1_armv5-3.2.ipk
Installing python3-ctypes (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-ctypes_3.9.2-1_armv5-3.2.ipk
Installing python3-pydoc (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-pydoc_3.9.2-1_armv5-3.2.ipk
Installing python3-multiprocessing (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-multiprocessing_3.9.2-1_armv5-3.2.ipk
Installing python3-codecs (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-codecs_3.9.2-1_armv5-3.2.ipk
Installing python3-gdbm (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-gdbm_3.9.2-1_armv5-3.2.ipk
Installing python3-email (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-email_3.9.2-1_armv5-3.2.ipk
Installing python3-urllib (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-urllib_3.9.2-1_armv5-3.2.ipk
Installing python3-xml (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-xml_3.9.2-1_armv5-3.2.ipk
Installing python3-sqlite3 (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-sqlite3_3.9.2-1_armv5-3.2.ipk
Installing python3-logging (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-logging_3.9.2-1_armv5-3.2.ipk
Installing python3-distutils (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-distutils_3.9.2-1_armv5-3.2.ipk
Installing python3-openssl (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-openssl_3.9.2-1_armv5-3.2.ipk
Installing python3-cgi (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-cgi_3.9.2-1_armv5-3.2.ipk
Installing python3-cgitb (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-cgitb_3.9.2-1_armv5-3.2.ipk
Installing python3-dbm (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-dbm_3.9.2-1_armv5-3.2.ipk
Installing python3-asyncio (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-asyncio_3.9.2-1_armv5-3.2.ipk
Installing python3-lzma (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-lzma_3.9.2-1_armv5-3.2.ipk
Installing python3-decimal (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-decimal_3.9.2-1_armv5-3.2.ipk
Package python3-asyncio (3.9.2-1) installed in root is up to date.
Package python3-base (3.9.2-1) installed in root is up to date.
Package python3-cgi (3.9.2-1) installed in root is up to date.
Package python3-cgitb (3.9.2-1) installed in root is up to date.
Package python3-codecs (3.9.2-1) installed in root is up to date.
Package python3-ctypes (3.9.2-1) installed in root is up to date.
Package python3-dbm (3.9.2-1) installed in root is up to date.
Package python3-decimal (3.9.2-1) installed in root is up to date.
Installing python3-dev (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-dev_3.9.2-1_armv5-3.2.ipk
Installing python3-lib2to3 (3.9.2-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-lib2to3_3.9.2-1_armv5-3.2.ipk
Package python3-distutils (3.9.2-1) installed in root is up to date.
Package python3-email (3.9.2-1) installed in root is up to date.
100% (87MB/87MB) There are no *-dev packages in Entware(with few exceptions)!
Please install headers as described in the wiki:
https://github.com/Entware/Entware/wiki
Collected errors:
 * opkg_conf_set_option: Duplicate option tmp_dir, using first seen value "/share/MD0_DATA/.qpkg/sherpa/cache/ipkgs.downloads".
gdbm (3.9.2-1) installed in root is up to date.
Package python3-lib2to3 (3.9.2-1) installed in root is up to date.
Package python3-light (3.9.2-1) installed in root is up to date.
Package python3-logging (3.9.2-1) installed in root is up to date.
Package python3-lzma (3.9.2-1) installed in root is up to date.
Package python3-multiprocessing (3.9.2-1) installed in root is up to date.
Package python3-ncurses (3.9.2-1) installed in root is up to date.
Package python3-openssl (3.9.2-1) installed in root is up to date.
Installing python3-pip (20.2.3-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-pip_20.2.3-1_armv5-3.2.ipk
Installing python3-pkg-resources (49.2.1-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-pkg-resources_49.2.1-1_armv5-3.2.ipk
Installing python3-setuptools (49.2.1-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-setuptools_49.2.1-1_armv5-3.2.ipk
Package python3-pkg-resources (49.2.1-1) installed in root is up to date.
Package python3-pydoc (3.9.2-1) installed in root is up to date.
Package python3-setuptools (49.2.1-1) installed in root is up to date.
Package python3-sqlite3 (3.9.2-1) installed in root is up to date.
Package python3-unittest (3.9.2-1) installed in root is up to date.
Package python3-urllib (3.9.2-1) installed in root is up to date.
Package python3-xml (3.9.2-1) installed in root is up to date.
Package zlib (1.2.11-3) installed in root is up to date.
Configuring zlib.
Configuring python3-base.
Configuring libffi.
Configuring libbz2.
Configuring libuuid.
Configuring libtirpc.
Configuring python3-light.
Configuring python3-email.
Configuring python3-urllib.
Configuring libiconv-full.
Configuring libintl-full.
Configuring libbfd.
Configuring libopcodes.
Configuring libctf.
Configuring objdump.
Configuring ar.
Configuring binutils.
Configuring liblzma.
Configuring libmagic.
Configuring file.
Configuring nano.
Configuring python3-pydoc.
Configuring libopenssl.
Configuring ca-bundle.
Configuring libcurl.
Configuring python3-cgi.
Configuring python3-cgitb.
Configuring python3-decimal.
Configuring python-pip-conf.
Configuring libexpat.
Configuring python3-xml.
Configuring python3-unittest.
Configuring python3-ncurses.
Configuring python3-ctypes.
Configuring python3-multiprocessing.
Configuring python3-codecs.
Configuring libgdbm.
Configuring python3-gdbm.
Configuring libsqlite3.
Configuring python3-sqlite3.
Configuring python3-logging.
Configuring python3-distutils.
Configuring python3-openssl.
Configuring libdb47.
Configuring python3-dbm.
Configuring python3-asyncio.
Configuring python3-lzma.
Configuring python3.
Configuring python3-pkg-resources.
Configuring python3-setuptools.
Configuring gcc.
Configuring ca-certificates.
Configuring python3-pip.
Configuring git.
Configuring python3-lib2to3.
Configuring python3-dev.
Configuring git-http.
Configuring par2cmdline.
dbug: (<<) RunAndLog|0|0|00h:03m:10s             
done: downloaded & installed 58 IPKGs             
dbug: (<<) IPKGs.Install|0|0|00h:03m:21s         
dbug: (<<) Tier.Processor|0|0|00h:03m:21s        
dbug: (>>) Tier.Processor                        
proc: checking for addon packages to install ... 
dbug: (>>) PIPs.Install                               
proc: installing 1 PIP group (might take a while) ... 50% (1/1) 
dbug: (--) downloading & installing 'Python3' modules ...            
dbug: (>>) RunAndLog                                                 
dbug: (--) exec: '/opt/bin/pip3 install apprise apscheduler beautifulsoup4 cfscrape cheetah3 cheroot!=8.4.4 cherrypy configobj feedparser portend pygithub python-levenshtein python-magic random_user_agent sabyenc3 simplejson slugify --disable-pip-version-check --cache-dir /share/MD0_DATA/.qpkg/sherpa/cache/pips' ... 
Collecting apprise
  Downloading apprise-0.9.1-py2.py3-none-any.whl (969 kB)
Collecting apscheduler
  Downloading APScheduler-3.7.0-py2.py3-none-any.whl (59 kB)
Collecting beautifulsoup4
  Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Collecting cfscrape
  Downloading cfscrape-2.1.1-py3-none-any.whl (12 kB)
Collecting cheetah3
  Downloading Cheetah3-3.2.6.post1.tar.gz (295 kB)
Collecting cheroot!=8.4.4
  Downloading cheroot-8.5.2-py2.py3-none-any.whl (97 kB)
Collecting cherrypy
  Downloading CherryPy-18.6.0-py2.py3-none-any.whl (419 kB)
Collecting configobj
  Downloading configobj-5.0.6.tar.gz (33 kB)
Collecting feedparser
  Downloading feedparser-6.0.2-py3-none-any.whl (80 kB)
Collecting portend
  Downloading portend-2.7.1-py3-none-any.whl (5.3 kB)
Collecting pygithub
  Downloading PyGithub-1.54.1-py3-none-any.whl (289 kB)
Collecting python-levenshtein
  Downloading python-Levenshtein-0.12.2.tar.gz (50 kB)
Collecting python-magic
  Downloading python_magic-0.4.22-py2.py3-none-any.whl (12 kB)
Collecting random_user_agent
  Downloading random_user_agent-1.0.1-py3-none-any.whl (8.2 MB)
Collecting sabyenc3
  Downloading sabyenc3-4.0.2.tar.gz (10 kB)
Collecting simplejson
  Downloading simplejson-3.17.2.tar.gz (83 kB)
Collecting slugify
  Downloading slugify-0.0.1.tar.gz (1.2 kB)
Collecting click>=5.0
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting six
  Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting markdown
  Downloading Markdown-3.3.4-py3-none-any.whl (97 kB)
Collecting PyYAML
  Downloading PyYAML-5.4.1.tar.gz (175 kB)
  Installing build dependencies: started
  Installing build dependencies: still running...
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: still running...
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting requests-oauthlib
  Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
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-hxrydkv7/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
  Complete output (62 lines):
  Collecting setuptools>=40.6.0
    Using cached setuptools-54.2.0-py3-none-any.whl (785 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 setuptools-rust>=0.11.4
    Using cached setuptools_rust-0.12.1-py3-none-any.whl (22 kB)
  Collecting pycparser
    Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
  Collecting semantic-version>=2.6.0
    Using cached semantic_version-2.8.5-py2.py3-none-any.whl (15 kB)
  Collecting toml>=0.9.0
    Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
  Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
  Installing collected packages: setuptools, wheel, pycparser, cffi, semantic-version, toml, setuptools-rust
      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-mtmssc7w/cffi/setup.py'"'"'; __file__='"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-mtmssc7w/cffi/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/tmp/pip-record-l54jv7c6/install-record.txt --single-version-externally-managed --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-hxrydkv7/overlay --compile --install-headers /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-hxrydkv7/overlay/include/python3.9/cffi
           cwd: /share/MD0_DATA/.qpkg/Entware/tmp/pip-install-mtmssc7w/cffi/
      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/__init__.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/api.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/cparser.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/error.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/lock.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/model.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/verifier.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/ware4/Entware.2021.03/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: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-mtmssc7w/cffi/setup.py'"'"'; __file__='"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-mtmssc7w/cffi/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/tmp/pip-record-l54jv7c6/install-record.txt --single-version-externally-managed --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-hxrydkv7/overlay --compile --install-headers /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-hxrydkv7/overlay/include/python3.9/cffi Check the logs for full command output.
  WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
  You should consider upgrading via the '/opt/bin/python3 -m pip install --upgrade pip' command.
  ----------------------------------------
ERROR: Command errored out with exit status 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-hxrydkv7/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' Check the logs for full command output.
dbug: (LL) ---------------------------------------------------------------------------------------------------- 
dbug: (LL) adding external log to main log ...                       
dbug: (vv) $_obj_session_debug_toscreen_flag_ : 'true'               
dbug: (LL) ---------------------------------------------------------------------------------------------------- 
dbug: (<<) RunAndLog|1|0|00h:07m:35s                                 
eror: Download & install 'Python3' modules failed ! result_code: [1]  
dbug: (vv) $_script_error_flag_ : 'true'                             
fail: Installed 1 PIP group failed                                    
dbug: (<<) PIPs.Install|1|0|00h:07m:35s                              
dbug: (<<) Tier.Processor|0|0|00h:07m:35s                            
dbug: (>>) Tier.Processor                                            
proc: checking for dependent packages to upgrade ... 
dbug: (II) no QPKGs to process                            
dbug: (<<) Tier.Processor|0|0|222ms                       
dbug: (>>) Tier.Processor                                 
proc: checking for dependent packages to reinstall ... 
dbug: (II) no QPKGs to process                              
dbug: (<<) Tier.Processor|0|0|214ms                         
dbug: (>>) Tier.Processor                                   
proc: checking for dependent packages to install ... 
dbug: (II) no QPKGs to process                            
dbug: (<<) Tier.Processor|0|0|199ms                       
dbug: (>>) Tier.Processor                                 
proc: checking for dependent packages to restore configuration for ... 
dbug: (II) no QPKGs to process                                              
dbug: (<<) Tier.Processor|0|0|204ms                                         
dbug: (>>) Tier.Processor                                                   
proc: checking for dependent packages to start ... 
dbug: (II) no QPKGs to process                          
dbug: (<<) Tier.Processor|0|0|221ms                     
dbug: (>>) Tier.Processor                               
proc: checking for dependent packages to restart ... 
dbug: (II) no QPKGs to process                            
dbug: (<<) Tier.Processor|0|0|218ms                       
dbug: (>>) QPKGs.States.List                              
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (II)      QPKG:       IsInstalled: (5) nzbToMedia,SABnzbd,sherpa,SickChill,Entware 
dbug: (II)      QPKG:    IsNotInstalled: (15) ClamAV,Deluge-server,Deluge-web,duf,HideThatBanner,LazyLibrarian,OMedusa,Mylar3,NZBGet,Par2,RunLast,sha3sum,OSickGear,SortMyQPKGs,OTransmission 
dbug: (II)      QPKG:         IsStarted: (2) sherpa,Entware 
dbug: (II)      QPKG:         IsStopped: (3) nzbToMedia,SABnzbd,SickChill 
dbug: (II)      QPKG:     IsNotBackedUp: (3) nzbToMedia,SABnzbd,SickChill 
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (<<) QPKGs.States.List|0|0|861ms                    
dbug: (<<) Tiers.Processor|0|0|00h:12m:13s                
dbug: (II) ---------------------------------------------------------------------------------------------------- 
dbug: (**)    SCRIPT:          finished: Tue Apr  6 10:34:43 CEST 2021 
dbug: (**)    SCRIPT:      elapsed time: 00h:12m:22s      
dbug: (II) ==================================================================================================== 
User avatar
OneCD
Guru
Posts: 12141
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

Brutalis wrote: Tue Apr 06, 2021 4:38 pm Hmm still an error:

A small snippet of the error at the bottom is the full log:
Thanks for posting your logs, it helps a lot. Image

Let's try installing the IPKG for CFFI first:

Code: Select all

opkg install python3-cffi
... then run your pip install again:

Code: Select all

/opt/bin/pip3 install apprise apscheduler beautifulsoup4 cfscrape cheetah3 cheroot!=8.4.4 cherrypy configobj feedparser portend pygithub python-levenshtein python-magic random_user_agent sabyenc3 simplejson slugify

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
Brutalis
Starting out
Posts: 27
Joined: Thu Mar 15, 2012 6:33 pm

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

Post by Brutalis »

OneCD wrote: Wed Apr 07, 2021 5:20 am
Brutalis wrote: Tue Apr 06, 2021 4:38 pm Hmm still an error:

A small snippet of the error at the bottom is the full log:
Thanks for posting your logs, it helps a lot. Image

Let's try installing the IPKG for CFFI first:

Code: Select all

opkg install python3-cffi
... then run your pip install again:

Code: Select all

/opt/bin/pip3 install apprise apscheduler beautifulsoup4 cfscrape cheetah3 cheroot!=8.4.4 cherrypy configobj feedparser portend pygithub python-levenshtein python-magic random_user_agent sabyenc3 simplejson slugify
Thanks for all your help, but... again an error:

Code: Select all

[~] # opkg install python3-cffi
Installing python3-cffi (1.14.5-1) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-cffi_1.14.5-1_armv5-3.2.ipk
Installing python3-ply (3.11-2) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-ply_3.11-2_armv5-3.2.ipk
Installing python3-pycparser (2.20-5) to root...
Downloading http://bin.entware.net/armv5sf-k3.2/python3-pycparser_2.20-5_armv5-3.2.ipk
Configuring python3-ply.
Configuring python3-pycparser.
Configuring python3-cffi.
[~] # /opt/bin/pip3 install apprise apscheduler beautifulsoup4 cfscrape cheetah3 cheroot!=8.4.4 cherrypy configobj feedparser portend pygithub python-levenshtein python-magic random_user_agent sabyenc3 simplejson slugify
Collecting apprise
  Downloading apprise-0.9.1-py2.py3-none-any.whl (969 kB)
     |████████████████████████████████| 969 kB 1.7 MB/s 
Collecting apscheduler
  Downloading APScheduler-3.7.0-py2.py3-none-any.whl (59 kB)
     |████████████████████████████████| 59 kB 1.3 MB/s 
Collecting beautifulsoup4
  Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
     |████████████████████████████████| 115 kB 1.0 MB/s 
Collecting cfscrape
  Downloading cfscrape-2.1.1-py3-none-any.whl (12 kB)
Collecting cheetah3
  Downloading Cheetah3-3.2.6.post1.tar.gz (295 kB)
     |████████████████████████████████| 295 kB 1.7 MB/s 
Collecting cheroot!=8.4.4
  Downloading cheroot-8.5.2-py2.py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 1.3 MB/s 
Collecting cherrypy
  Downloading CherryPy-18.6.0-py2.py3-none-any.whl (419 kB)
     |████████████████████████████████| 419 kB 2.9 MB/s 
Collecting configobj
  Downloading configobj-5.0.6.tar.gz (33 kB)
Collecting feedparser
  Downloading feedparser-6.0.2-py3-none-any.whl (80 kB)
     |████████████████████████████████| 80 kB 1.6 MB/s 
Collecting portend
  Downloading portend-2.7.1-py3-none-any.whl (5.3 kB)
Collecting pygithub
  Downloading PyGithub-1.54.1-py3-none-any.whl (289 kB)
     |████████████████████████████████| 289 kB 2.5 MB/s 
Collecting python-levenshtein
  Downloading python-Levenshtein-0.12.2.tar.gz (50 kB)
     |████████████████████████████████| 50 kB 1.4 MB/s 
Collecting python-magic
  Downloading python_magic-0.4.22-py2.py3-none-any.whl (12 kB)
Collecting random_user_agent
  Downloading random_user_agent-1.0.1-py3-none-any.whl (8.2 MB)
     |████████████████████████████████| 8.2 MB 2.0 MB/s 
Collecting sabyenc3
  Downloading sabyenc3-4.0.2.tar.gz (10 kB)
Collecting simplejson
  Downloading simplejson-3.17.2.tar.gz (83 kB)
     |████████████████████████████████| 83 kB 332 kB/s 
Collecting slugify
  Downloading slugify-0.0.1.tar.gz (1.2 kB)
Collecting markdown
  Downloading Markdown-3.3.4-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 1.3 MB/s 
Collecting cryptography
  Downloading cryptography-3.4.7.tar.gz (546 kB)
     |████████████████████████████████| 546 kB 2.7 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-ew_kezg_/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
  Complete output (62 lines):
  Collecting setuptools>=40.6.0
    Using cached setuptools-54.2.0-py3-none-any.whl (785 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 setuptools-rust>=0.11.4
    Using cached setuptools_rust-0.12.1-py3-none-any.whl (22 kB)
  Collecting pycparser
    Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
  Collecting semantic-version>=2.6.0
    Using cached semantic_version-2.8.5-py2.py3-none-any.whl (15 kB)
  Collecting toml>=0.9.0
    Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
  Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
  Installing collected packages: setuptools, wheel, pycparser, cffi, semantic-version, toml, setuptools-rust
      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-og4ardr5/cffi/setup.py'"'"'; __file__='"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-og4ardr5/cffi/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/tmp/pip-record-edkxfffn/install-record.txt --single-version-externally-managed --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-ew_kezg_/overlay --compile --install-headers /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-ew_kezg_/overlay/include/python3.9/cffi
           cwd: /share/MD0_DATA/.qpkg/Entware/tmp/pip-install-og4ardr5/cffi/
      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/__init__.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/api.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/cparser.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/error.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/lock.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/model.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv5tel-3.9/cffi
      copying cffi/verifier.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/ware4/Entware.2021.03/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: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-og4ardr5/cffi/setup.py'"'"'; __file__='"'"'/share/MD0_DATA/.qpkg/Entware/tmp/pip-install-og4ardr5/cffi/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/tmp/pip-record-edkxfffn/install-record.txt --single-version-externally-managed --prefix /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-ew_kezg_/overlay --compile --install-headers /share/MD0_DATA/.qpkg/Entware/tmp/pip-build-env-ew_kezg_/overlay/include/python3.9/cffi Check the logs for full command output.
  WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
  You should consider upgrading via the '/opt/bin/python3 -m pip install --upgrade pip' command.
  ----------------------------------------
ERROR: Command errored out with exit status 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-ew_kezg_/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' Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the '/opt/bin/python3 -m pip install --upgrade pip' command.
User avatar
OneCD
Guru
Posts: 12141
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

Brutalis wrote: Wed Apr 07, 2021 5:13 pm Thanks for all your help, but... again an error:
Apologies: I've still a long way to go with regard-to debugging these Python module installs. :oops:

I can't make this error occur on my test NAS (TS-230 with ARMv8), no-matter what I do. I suspect it's a compiling error only occurring on ARMv5.

I wonder if installing the 'wheel' pip module is needed on your arch to get 'cffi' installed?

After a lot of installs/reinstalls and testing on my own NAS this morning, here's the process I'm hoping you'll be willing to run through to confirm this. There are 2 methods: if the first fails, please run the second.

Method 1
  • The quick-and-dirty way, run this on your existing config:

    Code: Select all

    /opt/bin/pip3 install wheel cffi
Method 2
  • Remove the existing Entware installation. We're going to replace it with a vanilla Entware instead:

    Code: Select all

    sherpa remove ew
    cd /share/Public
    wget http://bin.entware.net/other/Entware_1.03std.qpkg
    sh Entware_1.03std.qpkg
    When Entware has finished installing, please logout your terminal session then back in again (to refresh $PATH).
  • Then run the following commands. These will install a basic Python module set, upgrade 'pip', then install 'wheel' (which I'm hoping will be the only required fix here) and 'apprise' (so 'cffi' gets pulled-in as a dependency):

    Code: Select all

    opkg install python3-pip python3-setuptools python3-dev
    /opt/bin/python3 -m pip install --upgrade pip
    /opt/bin/pip3 install wheel apprise
Now check the 'pip' module list:

Code: Select all

/opt/bin/pip3 list

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
rayza007
Starting out
Posts: 12
Joined: Thu Jun 13, 2013 1:20 am

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

Post by rayza007 »

Hi, hoping someone can help please. I am having issues with enabling HTTPS. (Error creating SSL Key and Cert). Below are my logs, I can see a python issue maybe, but I have to admit I am not very clued up.

2021-04-08 16:21:23,196::ERROR::[misc:763] Error creating SSL key and certificate
2021-04-08 16:21:23,197::INFO::[misc:764] Traceback:
Traceback (most recent call last):
File "/share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/sabnzbd/misc.py", line 759, in create_https_certificates
private_key = generate_key(key_size=2048, output_file=ssl_key)
File "/share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/sabnzbd/utils/certgen.py", line 24, in generate_key
private_key = rsa.generate_private_key(public_exponent=65537, key_size=key_size, backend=default_backend())
File "/opt/lib/python3.9/site-packages/cryptography/hazmat/backends/__init__.py", line 14, in default_backend
from cryptography.hazmat.backends.openssl.backend import backend
File "/opt/lib/python3.9/site-packages/cryptography/hazmat/backends/openssl/__init__.py", line 6, in <module>
from cryptography.hazmat.backends.openssl.backend import backend
File "/opt/lib/python3.9/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 113, in <module>
from cryptography.hazmat.bindings.openssl import binding
File "/opt/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 170, in <module>
_verify_package_version(cryptography.__version__)
File "/opt/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 159, in _verify_package_version
raise ImportError(
ImportError: The version of cryptography does not match the loaded shared object. This can happen if you have multiple copies of cryptography installed in your Python path. Please try creating a new virtual environment to resolve this issue. Loaded python version: 3.4.7, shared object version: b'3.3.2'
2021-04-08 16:21:23,199::INFO::[notifier:122] Sending notification: Warning - Disabled HTTPS because of missing CERT and KEY files (type=warning, job_cat=None)
2021-04-08 16:21:23,199::WARNING::[SABnzbd:1307] Disabled HTTPS because of missing CERT and KEY files
2021-04-08 16:21:23,201::INFO::[notifier:122] Sending notification: Warning - Disabled HTTPS because of invalid CERT and KEY files (type=warning, job_cat=None)
2021-04-08 16:21:23,201::WARNING::[SABnzbd:1317] Disabled HTTPS because of invalid CERT and KEY files
2021-04-08 16:21:23,201::INFO::[SABnzbd:1318] Traceback:
Traceback (most recent call last):
File "/share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/SABnzbd.py", line 1314, in main
trialcontext.load_cert_chain(https_cert, https_key)
FileNotFoundError: [Errno 2] No such file or directory
Post Reply

Return to “Community Apps”