New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QNAP: Error importing xxxx: invalid syntax (Plugin.py, line 118) #2749
Comments
What python version are you running? |
The NAS has 3.5.02 , and 2.7.3 installed, I've tried disabling 2.7.3 and restarting pyload, but I get the same error. It seems the pyload package comes with its on version of python that it installs that isnt visible in the QNAP GUI, the pyload GUI reports version: Python: 2.5.5 (r255:77872, May 16 2010, 10:32:26) [GCC 4.2.1] Which version should it be? |
Same here and the log show this: Think is a little bug at the new Plugin.py TAL9000 PS: Good Job, thanks for PyLoad! |
@TAL9000 I'm pretty sure that you are running python 2.5, that's why this error. @h1ghju1ce Debug log please. |
Got the same error with python version 2.5.6 and log output:
Does this mean python 2.5 won't be supported anymore? |
Maybe, it's being considered (#2741 (comment)) Can't you upgrade to python 2.7? |
Ahh, i see, thanks for the clarification. An upgrade is indeed no problem for me. |
OK, i check with python --version and the System say Python 2.7.3, Need help Step by Step to Upgrade/repair this... TAL9000 Sorry for my bad English |
@TAL9000 How did you installed pyLoad? |
QNAP package uses python 2.5 explicity: /bin/echo "Starting pyLoad"
${QPKG_DIR}/opt/bin/python2.5 ${QPKG_DIR}/pyLoadCore.py --daemon
;;
stop)
/bin/echo "Stopping pyLoad"
${QPKG_DIR}/opt/bin/python2.5 ${QPKG_DIR}/pyLoadCore.py --quit
/bin/sleep 1 |
Hi, I got the same problem on QNAP TS-251, since yesterday (without any updates or change) I got: Pyload is running but is unable to dowload or update plugins. I've tried a recursive grep searching for pyload.org and I've found many matches: is it possible that the UpdateManager is still trying to point to the old domain? In this case, where is the configuration file to be modified with new paths? Thanks in adavance for your attention, Simone |
Sorry @GammaC0de but changing python version lead to a disaster: $ head -n 67 /share/CACHEDEV1_DATA/.qpkg/pyload/pyload.sh|tail -n 20 case "$1" in
$ python $ /etc/init.d/pyload.sh start Meanwhile using pyhton 2.5 (build-in the pyload package) almost permit to the deamon to start: the problem is finding download plugins. |
Actually i was a bit rash with the problem-free python upgrade on my system. |
@simoleso do @GaryBlooper I am running pyLoad with python 2.7 on MyBook Live without problems: |
same here, running in Qnap NAS. |
@GammaC0de: i dont remember all, but there was Problems using the QPKG System and i type many Commands from Google Search pages to fix it. At one Point pyload was running and i leave it at this Point. Python 2.7 is installed [/share/CACHEDEV1_DATA/.qpkg/Python/bin/python2.7] change /share/CACHEDEV1_DATA/.qpkg/pyload/pyload.sh
then the Failure massage equal simoleso
dont work at QNAP (opkg Command no found) equal UserX82 Must make a Break, go to Bed, then Work and then i read again here. TAL9000 |
@TAL9000 You have to install the Entware package and the you will have https://github.com/Entware-ng/Entware-ng/wiki/Install-on-QNAP-NAS For the long run I would ask QNAP to update their pyLoad package to use python 2.7 |
Hello, |
Hello, |
|
@GammaC0de I've followed your instructions but: Now, my qnap is used to store important files (like my photos): i not feel comfortable installing software not certified. Only one question: I pretty sure I've not upgrade anything on the fully working pyload. I used it successfully on Saturday and yesterday stops working by itself. What have you changed? Why it stops working suddenly? |
@GammaC0de Thanks for the tip with optware-ng, worked like a charm *thumbs up* |
@simoleso This is because we consider stop supporting python 2.5 Entware is not supposed to do any harm to your NAS because it installs everything to /opt directory, leaving the system intact. Have you installed Entware or Entware-ng? The best thing would be if you ask QNAP support to build a new pyLoad package that works on python 2.7 |
Hello, |
Hello, There is one issue left! How shall I tell my Qnap NAS to restart pyload at Startup? Before I had to reinstall pyload, I used a Qnap installer file, where I just had to update some files. But this installer made a small Icon in my Qnap Appcenter, where I could define the start/stop/restart options. |
@donaufisch66 That's great news. First of all, please describe step by step how did you installed pyLoad so others can benefit from it. As for your question, I will to make a better tutor that works as normal pyLoad QNAP package, but for that I need your step by step instructions. |
So I've installed EnWare-NG , and downloaded Python using the commandline you gave opkg install python python-pip python-crypto python-curl python-openssl pillow tesseract js unrar It installs that to .Qpkg\Entware-ng\lib\python2.7 The log now says its running, and updating plugins etc, but I now cant get to the webinterface! I didnt change the conf line: int port : "Port" = 5003 and the log reports: INFO Starting builtin webserver: 0.0.0.0:5003 I've tried editing the pyload.conf to enable the debug mode (bool debug_mode = True) , but either thats not right, or it doesnt create the debug log?? I guess I now have the issue similar to this one: BUT I dont get any errors loading the webserver 28.02.2017 10:06:19 INFO Starting ThriftBackend: 0.0.0.0:7227 Is there now a limitation on what ports it will load on? |
Now the problem is the "Segmentation fault". I suggest you uninstall |
I did. Uninstalled/deleted everything, rebooted the QNAP and followed your guide again. It is still hanging at: 15.03.2017 23:45:14 INFO ADDON UpdateManager: All plugins are up to date! and after some time: Segmentation fault. |
@dexter1212 |
@dexter1212 Pyload is now running on my QNAP. I followed these instructions:
IMPORTANT: When I restarted my QNAP, pyload started automatically but I could not login via WebUI. So I had to stop and start pyload via QNAP App Center and after a few seconds I could login via WebUI. I have to do this after every reboot! |
OK, so maybe that is the problem.. |
I have a TS-869 Pro (2012) (Intel Atom D2700) and my pyload (when its working) doesnt ever give me a segment fault My friend has a TS-453A (2016) (Intel Celeron N3150) and I setup pyload the same way I did on mine, but he gets the segment fault. both machines are on the same FW, and the Intel spec sheets say they are both x64 capable CPUs thats pretty much the only differences (I think he also had HDSatation enabled, maybe that affects it...) @dexter1212 - what model QNAP do you have? |
@h1ghju1ce Maybe add
before I this does not help, I would even try set |
Yeah tried that, made sure both LD were empty, and only had Entware entries in it added Entware to the $PATH as well, still segment fault |
@h1ghju1ce I have an TS-120, I think its an ARM cpu. I will try your suggestions now! edit: |
OK, i have creat a new OPKG-File. Can everyone test it?
|
Maybe units with Entware issues have the malware app installed on their QNAP? https://forum.qnap.com/viewtopic.php?f=351&t=116737&sid=2f8a7895df1d368a6b1aec2f7926f18b "Malware Remover package blocks Entware - uninstall it and do not install later" |
so downloading is working, but I am getting the following unrar error: |
I have no problem with unrar. I use 7zip |
@thestulle you do not use the ExtractArchive plugin? I cannot find a 7zip plugin for pyload |
I have use my Windows for Download and extract |
@dexter1212 Just uninstall |
Hello, |
@donaufisch66 Why would you want to use send2trash on a NAS? |
I just want to delete rar/zip files automatically after extracting. "ExtractAcrchive" tells me, that Send2Trash is missing, eaven if "deleting" is "ON". |
@donaufisch66 You must copy the Send2trash Files in the |
@thestulle : the old pyload stopped working again. I will try your knew opkg file. Is there anything elese I have to do, after Entware and the small Pyload-opkg file installation? |
@thestulle : the new Qnap install file doesnt work for me! |
@donaufisch66 send2trash is used to move the file to the trash (e.g. recycle bin on windows), it has no use for NASs. |
@donaufisch66 |
@donaufisch66 |
Since the python2.5 issue, I have installed pyload manually on my NAS several times. This is how it works for me. The new opkg file just added a shortcut but didnt work. INSTALL Manual for QNAP NAS TS453 and others: 1-7 for pyload installation. Then you can start/top pyload with any terminal.
|
This ticket has been automatically locked since there has not been any recent activity after it was closed. |
Getting an error loading plugins, from Uploaded.to, and rapidgator.net
was working all fine for months yesterday, stopped working on mine and my mates QNAP
(Firmware not changed)
Anyone else getting this? thanks
The text was updated successfully, but these errors were encountered: