[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
papampi
Getting the hang of things
Posts: 81
Joined: Sat Jun 06, 2015 2:52 pm
Contact:

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

Post by papampi »

Hi
Today running sherpa check gave me an error too:

Code: Select all

[~] # sherpa check
sherpa 220418d • a mini-package-manager for QNAP NAS

done: installed 2 PIP groups                                            
warn: 'Python3' modules check failed 
done: restarted 1 dependent QPKG
Models: TVS-863, HS-251
قیمت فروش پیچ و مهره
User avatar
OneCD
Guru
Posts: 12144
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

Hi Shady. :)
Shadytree wrote: Mon Apr 18, 2022 8:33 pm @OneCD hope you are well? I tried running a Sherpa Status check and get the following error:

error: 'Python3' is enabled. sherpa is incompatible with this package

Tried the clean command, but still get the Python3 error message?
This means you have also installed the QNAP-maintained Python3 QPKG in your App Center. This isn't needed to run sherpa applications.

Historically, this package would cause issues with the Python3 scripts run by the various sherpa applications, but may not be an issue anymore. I'll consider changing sherpa's message about this QPKG from a conflict to a warning.

Do you really need the Python3 QPKG installed? If not, please uninstall it in your App Center. Image

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

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

Post by OneCD »

Hi @papampi. :)
papampi wrote: Mon Apr 18, 2022 8:55 pm

Code: Select all

[~] # sherpa check
sherpa 220418d • a mini-package-manager for QNAP NAS

done: installed 2 PIP groups                                            
warn: 'Python3' modules check failed 
done: restarted 1 dependent QPKG
Hmm, can you please paste your sherpa log online:

Code: Select all

sherpa paste log
... then post the generated URL back here so I can view it?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
Shadytree
Know my way around
Posts: 241
Joined: Thu Feb 12, 2009 4:58 am
Location: United Kingdom

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

Post by Shadytree »

OneCD wrote: Tue Apr 19, 2022 3:31 am

Do you really need the Python3 QPKG installed? If not, please uninstall it in your App Center. Image
Honestly I can't remember why I have it installed, but its been there a couple of years. Just odd that suddenly throws up the error. I will un-install and see if the Sherpa Status command works.
cheers
TVS-872XT-32GB | Raid 6 | 8 x 6TB WD Gold | 1TB NVMe SSD | QTS 4.5.2 1566
TS-569L-3GB | Raid 5 | 5 x 3TB WD Red Drives | QTS 4.3.4.1368 |
Apps: Python 2.7.12 | Python3 3.5.2.0 | Sherpa qpkg 200917 SABnzbdplus v3.1.1 |SickChill Master v2020.09.20-7 |
Plex Media Server 4.51.1 |

[Old Box] - QNAP TS-509 Pro | Raid 5 - 5 x 1TB WD Green Drives
FW 3.7.3 Build 20120801 -Redundancy backup
User avatar
OneCD
Guru
Posts: 12144
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

Shadytree wrote: Tue Apr 19, 2022 3:36 am ... but its been there a couple of years. Just odd that suddenly throws up the error.
That's because I only recently fixed the bit of code that checks for it. So, it now works correctly. ;)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
Shadytree
Know my way around
Posts: 241
Joined: Thu Feb 12, 2009 4:58 am
Location: United Kingdom

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

Post by Shadytree »

OneCD wrote: Tue Apr 19, 2022 3:41 am
Shadytree wrote: Tue Apr 19, 2022 3:36 am ... but its been there a couple of years. Just odd that suddenly throws up the error.
That's because I only recently fixed the bit of code that checks for it. So, it now works correctly. ;)
Removed and works fine now. cheers mate
TVS-872XT-32GB | Raid 6 | 8 x 6TB WD Gold | 1TB NVMe SSD | QTS 4.5.2 1566
TS-569L-3GB | Raid 5 | 5 x 3TB WD Red Drives | QTS 4.3.4.1368 |
Apps: Python 2.7.12 | Python3 3.5.2.0 | Sherpa qpkg 200917 SABnzbdplus v3.1.1 |SickChill Master v2020.09.20-7 |
Plex Media Server 4.51.1 |

[Old Box] - QNAP TS-509 Pro | Raid 5 - 5 x 1TB WD Green Drives
FW 3.7.3 Build 20120801 -Redundancy backup
User avatar
OneCD
Guru
Posts: 12144
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

Shadytree wrote: Tue Apr 19, 2022 3:42 am Removed and works fine now. cheers mate
Excellent. :)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
papampi
Getting the hang of things
Posts: 81
Joined: Sat Jun 06, 2015 2:52 pm
Contact:

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

Post by papampi »

OneCD wrote: Tue Apr 19, 2022 3:33 am Hi @papampi. :)
papampi wrote: Mon Apr 18, 2022 8:55 pm

Code: Select all

[~] # sherpa check
sherpa 220418d • a mini-package-manager for QNAP NAS

done: installed 2 PIP groups                                            
warn: 'Python3' modules check failed 
done: restarted 1 dependent QPKG
Hmm, can you please paste your sherpa log online:

Code: Select all

sherpa paste log
... then post the generated URL back here so I can view it?
Here you go:
https://termbin.com/n66k
Models: TVS-863, HS-251
قیمت فروش پیچ و مهره
User avatar
OneCD
Guru
Posts: 12144
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

papampi wrote: Tue Apr 19, 2022 4:57 am Here you go:
https://termbin.com/n66k
Thanks mate. Image

Unfortunately, the log is so long, it's been cut-off and is incomplete. Can you please run these commands to clear the log, regenerate the problem and paste it online again?

Code: Select all

sherpa reset
sherpa check
sherpa paste log
I'll work on limiting the amount of old log entries uploaded to that pastebin site. :geek:

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
papampi
Getting the hang of things
Posts: 81
Joined: Sat Jun 06, 2015 2:52 pm
Contact:

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

Post by papampi »

OneCD wrote: Tue Apr 19, 2022 5:14 am
papampi wrote: Tue Apr 19, 2022 4:57 am Here you go:
https://termbin.com/n66k
Thanks mate. Image

Unfortunately, the log is so long, it's been cut-off and is incomplete. Can you please run these commands to clear the log, regenerate the problem and paste it online again?

Code: Select all

sherpa reset
sherpa check
sherpa paste log
I'll work on limiting the amount of old log entries uploaded to that pastebin site. :geek:

After reset:
https://termbin.com/ioes
Models: TVS-863, HS-251
قیمت فروش پیچ و مهره
User avatar
OneCD
Guru
Posts: 12144
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

papampi wrote: Tue Apr 19, 2022 5:54 am After reset:
https://termbin.com/ioes
To fix, please run:

Code: Select all

/opt/bin/python3 -m pip install --force-reinstall twisted

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
papampi
Getting the hang of things
Posts: 81
Joined: Sat Jun 06, 2015 2:52 pm
Contact:

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

Post by papampi »

OneCD wrote: Tue Apr 19, 2022 6:26 am
papampi wrote: Tue Apr 19, 2022 5:54 am After reset:
https://termbin.com/ioes
To fix, please run:

Code: Select all

/opt/bin/python3 -m pip install --force-reinstall twisted
Thanks a lot for making our life so much easier.
You are the best.

Code: Select all

[~] # /opt/bin/python3 -m pip install --force-reinstall twisted
Collecting twisted
  Downloading Twisted-22.4.0-py3-none-any.whl (3.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 1.0 MB/s eta 0:00:00
Collecting zope.interface>=4.4.2
  Downloading zope.interface-5.4.0.tar.gz (249 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 249.3/249.3 KB 1.8 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting constantly>=15.1
  Downloading constantly-15.1.0-py2.py3-none-any.whl (7.9 kB)
Collecting hyperlink>=17.1.1
  Downloading hyperlink-21.0.0-py2.py3-none-any.whl (74 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.6/74.6 KB 1.6 MB/s eta 0:00:00
Collecting Automat>=0.8.0
  Downloading Automat-20.2.0-py2.py3-none-any.whl (31 kB)
Collecting incremental>=21.3.0
  Downloading incremental-21.3.0-py2.py3-none-any.whl (15 kB)
Collecting attrs>=19.2.0
  Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 KB 2.0 MB/s eta 0:00:00
Collecting typing-extensions>=3.6.5
  Downloading typing_extensions-4.2.0-py3-none-any.whl (24 kB)
Collecting six
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting idna>=2.5
  Downloading idna-3.3-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 KB 1.2 MB/s eta 0:00:00
Collecting setuptools
  Downloading setuptools-62.1.0-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 1.8 MB/s eta 0:00:00
Building wheels for collected packages: zope.interface
  Building wheel for zope.interface (setup.py) ... done
  Created wheel for zope.interface: filename=zope.interface-5.4.0-cp310-cp310-linux_x86_64.whl size=211145 sha256=cee7d6dcbe3a3d47d040024e4bf8db98c1a4b33add399cca31305432fc36b966
  Stored in directory: /root/.cache/pip/wheels/21/a9/8b/0bfc5594d8e109d5b25d6b69e0cff14d09d93e3522dcb16d2b
Successfully built zope.interface
Installing collected packages: incremental, constantly, typing-extensions, six, setuptools, idna, attrs, zope.interface, hyperlink, Automat, twisted
  Attempting uninstall: six
    Found existing installation: six 1.16.0
    Uninstalling six-1.16.0:
      Successfully uninstalled six-1.16.0
  Attempting uninstall: setuptools
    Found existing installation: setuptools 59.6.0
    Uninstalling setuptools-59.6.0:
      Successfully uninstalled setuptools-59.6.0
  Attempting uninstall: idna
    Found existing installation: idna 3.3
    Uninstalling idna-3.3:
      Successfully uninstalled idna-3.3
  Attempting uninstall: attrs
    Found existing installation: attrs 21.4.0
    Uninstalling attrs-21.4.0:
      Successfully uninstalled attrs-21.4.0
  Attempting uninstall: twisted
    Found existing installation: Twisted 22.2.0
    Uninstalling Twisted-22.2.0:
      Successfully uninstalled Twisted-22.2.0
Successfully installed Automat-20.2.0 attrs-21.4.0 constantly-15.1.0 hyperlink-21.0.0 idna-3.3 incremental-21.3.0 setuptools-62.1.0 six-1.16.0 twisted-22.4.0 typing-extensions-4.2.0 zope.interface-5.4.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

Code: Select all

[~] # sherpa check
sherpa 220419 • a mini-package-manager for QNAP NAS

done: installed 2 PIP groups                                            
done: restarted 1 dependent QPKG      
Models: TVS-863, HS-251
قیمت فروش پیچ و مهره
User avatar
OneCD
Guru
Posts: 12144
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

No worries mate. 👍

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
tadpole
Starting out
Posts: 16
Joined: Tue Feb 19, 2013 10:12 pm

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

Post by tadpole »

Hello,
after the last upgrade, OSickGear doesn't start any more:
fail: 'OSickGear' service action failed. Check (/var/log/OSickGear.log) for more information..
there i found this entry:
Python 3.10.4 detected.
Sorry, SickGear requires a Python version 2. 7. 9 - 2. 7. 18, 3. 7. 1 - 3. 8. 12, 3. 9. 0 - 3. 9. 2, 3. 9. 4 - 3. 9. 10, 3. 10. 0 - 3. 10. 2
here is the complete log:
https://termbin.com/7tc6

This brings back memories of times before finding out about the sherpa script :)
If some magic commands come into mind how to fix this, please let me know!
User avatar
OneCD
Guru
Posts: 12144
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

Hey @tadpole. :)
tadpole wrote: Tue Apr 19, 2022 4:01 pm after the last upgrade, OSickGear doesn't start any more:
fail: 'OSickGear' service action failed. Check (/var/log/OSickGear.log) for more information..
there i found this entry:
Python 3.10.4 detected.
Sorry, SickGear requires a Python version 2. 7. 9 - 2. 7. 18, 3. 7. 1 - 3. 8. 12, 3. 9. 0 - 3. 9. 2, 3. 9. 4 - 3. 9. 10, 3. 10. 0 - 3. 10. 2
Hmm, the SickGear devs pushed an update about 3 weeks ago to fix this. It works fine on my test NAS:

Code: Select all

[~] # /opt/bin/python3 -V
Python 3.10.4

Code: Select all

[~] # /etc/init.d/osickgear.sh restart
daemon: IS active
daemon PID: 1313
stop daemon with SIGTERM: (no-more than 60 seconds): 1, OK
daemon: NOT active
file (/opt/bin/git): exists
update 'OSickGear' from remote repository: OK
current git branch: master
file (/opt/bin/python3): exists
load UI ports from application: OK
start daemon: OK
file (/var/run/OSickGear.pid): exists
daemon: IS active
daemon PID: 6998
daemon listening address: 0.0.0.0
check for UI port 7181 response: (no-more than 60 seconds): OK
HTTP port 7181: OK
update QPKG icon with UI ports: OK
There was a separate issue resolved last month that required a 'clean' of OSickGear. Can you please try cleaning your OSickGear installation?

Code: Select all

sherpa clean sg
BTW: excellent reporting. Your attention to detail is very helpful. Image

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
Post Reply

Return to “Community Apps”