[HOWTO] pyLoad 0.4.9 (self-made port)

Mee

Cadet
Joined
Jan 2, 2015
Messages
1
Hello to everyone.
Iam able to follow the instructions, but whatever tried (source code through ports for deps or pkg), I could not enable the remote function. the error was:

02.01.2015 15:44:17 INFO Starting pyLoad 0.4.9
02.01.2015 15:44:17 INFO Using home directory: /usr/local/etc/pyload
02.01.2015 15:44:17 WARNING ExtractArchive: Could not activate SevenZip | 'NoneType' object has no attribute 'SevenZip'
02.01.2015 15:44:17 INFO ExtractArchive: Activated UnRar UnZip
02.01.2015 15:44:17 INFO Activated plugins: ClickAndLoad, ExternalScripts, ExtractArchive, UnSkipOnFail, UpdateManager, XFileSharingPro
02.01.2015 15:44:17 INFO Deactivate plugins: AlldebridCom, BypassCaptcha, Captcha9kw, CaptchaBrotherhood, Checksum, DeathByCaptcha, DebridItaliaCom, DeleteFinished, DownloadScheduler, EasybytezCom, ExpertDecoders, FastixRu, FreeWayMe, HotFolder, IRCInterface, ImageTyperz, LinkdecrypterCom, LinksnappyCom, MegaDebridEu, MergeFiles, MultiHome, MultihostersCom, MultishareCz, MyfastfileCom, NoPremiumPl, OverLoadMe, PremiumTo, PremiumizeMe, RPNetBiz, RapideoPl, RealdebridCom, RehostTo, RestartFailed, RestartSlow, SimplyPremiumCom, SimplydebridCom, SkipRev, UnrestrictLi, WindowsPhoneToastNotify, XMPPInterface, ZeveraCom
02.01.2015 15:44:17 INFO Downloadtime: True
Traceback (most recent call last):
File "/usr/local/bin/pyload", line 668, in <module>
main()
File "/usr/local/bin/pyload", line 659, in main
pyload_core.start()
File "/usr/local/bin/pyload", line 406, in start
self.remoteManager.startBackends()
File "/usr/local/share/pyload/module/remote/RemoteManager.py", line 76, in startBackends
klass = getattr(__import__("module.remote.%s" % b, globals(), locals(), , -1), b)
AttributeError: 'module' object has no attribute 'ThriftBackend'

Any ideas?
 

cephyr

Dabbler
Joined
Sep 29, 2014
Messages
23
finally got it to work, i will do a tutorial :)
 
Last edited:

cephyr

Dabbler
Joined
Sep 29, 2014
Messages
23
Last edited:

Gonzalo

Patron
Joined
Nov 29, 2014
Messages
457
Hello,

What would be the easiest way to use the Master branch of pyLoad (instead of the Stable) in the port? Many bugs have been fixed and the latest release is from 2011.

Thanks for the port!

Regards.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@mrhanky
Thanks for this! I'm gonna use your port and see if I can cook together a plugin.
 

Gonzalo

Patron
Joined
Nov 29, 2014
Messages
457
@Joshua Parker Ruehlig
Try to use the master branch for the plugin, many bugs have been fixed since the last stable release.

Thanks!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yes, there's an UpdateManager for automatic updates but seems you cannot select the branch.
Why do you suggest the 'master' branch? It seems the 'stable' branch is the default for their github and has been committed to more recently (today versus 6 months ago). Do you know what's the reason for the 2 branchs?
 

Gonzalo

Patron
Joined
Nov 29, 2014
Messages
457
I don't know... I suggested the 'master' branch because a month ago I saw some fixes there (like MEGA issue) that didn't exist in the 'stable' branch. Even today, there are fixes only there.
 

jarjar51

Cadet
Joined
Mar 25, 2015
Messages
1
Hi,
i've a probleme with pyload.
I used a freenas 9.3. I installed the pyload in a jail standard, the option "vimage" is disable.
I follow instrutions, but when i launch a ddl, i've an error : "ascii' codec can't encode character u'\xb0' in position 23: ordinal not in range(128) 0.00 B"
I tried many tests but i'm bloqued.
any idea ?
Thanks.
 

Frosch1482

Dabbler
Joined
Feb 16, 2014
Messages
28
Hello guys,

i tried to install pyload again, after my jail suddenly stopped to work.
I prepared a fresh jail.
when I try to install pyload, I got following error.

Code:
root@pyLoad:/usr/ports/www/pyload/pyload # cd pyload/ && make install clean
make: don't know how to make install. Stop
root@pyLoad:/usr/ports/www/pyload/pyload/pyload # git clone https://github.com/mrhanky17/pyload-freebsd.git pyload
Cloning into 'pyload'...
remote: Counting objects: 110, done.
remote: Total 110 (delta 0), reused 0 (delta 0), pack-reused 110
Receiving objects: 100% (110/110), 57.73 KiB | 0 bytes/s, done.
Resolving deltas: 100% (58/58), done.
Checking connectivity... done.
root@pyLoad:/usr/ports/www/pyload/pyload/pyload # cd pyload/ && make install clean
===>  License GPLv3 accepted by the user
===>  Found saved configuration for pyload-0.4.9_1
===>   pyload-0.4.9_1 depends on file: /usr/local/sbin/pkg - found
=> pyload-pyload-0.4.9-0-gc297f27_GH0.tar.gz is not in /usr/ports/www/pyload/pyload/pyload/pyload/distinfo.
=> Either /usr/ports/www/pyload/pyload/pyload/pyload/distinfo is out of date, or
=> pyload-pyload-0.4.9-0-gc297f27_GH0.tar.gz is spelled incorrectly.
*** [do-fetch] Error code 1

Stop in /usr/ports/www/pyload/pyload/pyload/pyload.
*** [install] Error code 1

Stop in /usr/ports/www/pyload/pyload/pyload/pyload.
root@pyLoad:/usr/ports/www/pyload/pyload/pyload/pyload #


Anyone an idea?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hello guys,

i tried to install pyload again, after my jail suddenly stopped to work.
I prepared a fresh jail.
when I try to install pyload, I got following error.

Code:
root@pyLoad:/usr/ports/www/pyload/pyload # cd pyload/ && make install clean
make: don't know how to make install. Stop
root@pyLoad:/usr/ports/www/pyload/pyload/pyload # git clone https://github.com/mrhanky17/pyload-freebsd.git pyload
Cloning into 'pyload'...
remote: Counting objects: 110, done.
remote: Total 110 (delta 0), reused 0 (delta 0), pack-reused 110
Receiving objects: 100% (110/110), 57.73 KiB | 0 bytes/s, done.
Resolving deltas: 100% (58/58), done.
Checking connectivity... done.
root@pyLoad:/usr/ports/www/pyload/pyload/pyload # cd pyload/ && make install clean
===>  License GPLv3 accepted by the user
===>  Found saved configuration for pyload-0.4.9_1
===>   pyload-0.4.9_1 depends on file: /usr/local/sbin/pkg - found
=> pyload-pyload-0.4.9-0-gc297f27_GH0.tar.gz is not in /usr/ports/www/pyload/pyload/pyload/pyload/distinfo.
=> Either /usr/ports/www/pyload/pyload/pyload/pyload/distinfo is out of date, or
=> pyload-pyload-0.4.9-0-gc297f27_GH0.tar.gz is spelled incorrectly.
*** [do-fetch] Error code 1

Stop in /usr/ports/www/pyload/pyload/pyload/pyload.
*** [install] Error code 1

Stop in /usr/ports/www/pyload/pyload/pyload/pyload.
root@pyLoad:/usr/ports/www/pyload/pyload/pyload/pyload #


Anyone an idea?
It's complainaing the distinfo is out of date. "make makesum" would regenerate this for you.
 

Frosch1482

Dabbler
Joined
Feb 16, 2014
Messages
28
Hi Joshua,

thank you very much for that hint. After a "make maksum" everything worked fine and I was able to install pyload and all related dependencies.
 

waldi

Cadet
Joined
Aug 6, 2015
Messages
1
Hello,

i managed to install pyload on my machine in a jail, everything seems to be working.
As you see internet connection is avalable, as the account info for my premium account is loaded correctly.
But why do I get the error with the UpdateManager?

Code:
root@pyload:/usr/local/share/pyload # python pyLoadCore.py -d                                                                      
07.08.2015 15:20:18 INFO      starte pyLoad 0.4.9                                                                                  
07.08.2015 15:20:18 INFO      Benutze Home-Verzeichnis: /usr/local/share/pyload                                                    
07.08.2015 15:20:18 DEBUG     Remote activated: False                                                                              
07.08.2015 15:20:18 DEBUG     created index of plugins                                                                             
07.08.2015 15:20:18 INFO      ExtractArchive: Aktiviert UnRar UnZip                                                                
07.08.2015 15:20:18 INFO      Aktivierte Plugins: ClickAndLoad, ExternalScripts, ExtractArchive, UnSkipOnFail, UpdateManager, XFileS
haringPro                                                                                                                          
07.08.2015 15:20:18 INFO      Deaktivierte Plugins: AlldebridCom, BypassCaptcha, Captcha9kw, CaptchaBrotherhood, CaptchaTrader, Chec
ksum, DeathByCaptcha, DebridItaliaCom, DeleteFinished, DownloadScheduler, EasybytezCom, Ev0InFetcher, ExpertDecoders, FastixRu, HotF
older, IRCInterface, ImageTyperz, LinkdecrypterCom, MergeFiles, MultiDebridCom, MultiHome, MultishareCz, Premium4Me, PremiumizeMe, R
PNetBiz, RealdebridCom, RehostTo, ReloadCc, RestartFailed, SimplydebridCom, UnrestrictLi, WindowsPhoneToastNotify, XMPPInterface, Ze
veraCom                                                                                                                            
07.08.2015 15:20:18 INFO      Downloadzeit: True                                                                                   
07.08.2015 15:20:18 INFO      Free space: 1.75 TiB                                                                                 
07.08.2015 15:20:18 INFO      Activating Accounts...                                                                               
07.08.2015 15:20:18 INFO      Starting threaded webserver: 0.0.0.0:8000                                                            
07.08.2015 15:20:19 DEBUG     UploadedTo: Get Account Info for XXXXXXX                                                              
07.08.2015 15:20:19 DEBUG     UploadedTo: Account Info: {'maxtraffic': 52428800, 'validuntil': 1446369619.681366, 'trafficleft': 545259520}                                                                                                                            
07.08.2015 15:20:19 INFO      Activating Plugins...                                                                                
07.08.2015 15:20:19 DEBUG     XFileSharingPro: Pattern loaded - handling 83 hosters                                                
07.08.2015 15:20:19 INFO      pyLoad is up and running                                                                             
07.08.2015 15:20:22 WARNING   UpdateManager: Not able to connect server for updates                                                
07.08.2015 15:20:22 INFO      UpdateManager: No plugin updates available
 

ArgaWoW

Patron
Joined
Jul 4, 2015
Messages
444
Hi,
i have installed pyLoad in Freenas 9.3. it works so far, but when i restart my Server i cant get run pyload again. I got following error:

Traceback (most recent call last):
File "/usr/local/bin/pyload", line 48, in <module>
from module.network.RequestFactory import RequestFactory
File "/usr/local/share/pyload/module/network/RequestFactory.py", line 22, in <module>
from Browser import Browser
File "/usr/local/share/pyload/module/network/Browser.py", line 6, in <module>
from HTTPRequest import HTTPRequest
File "/usr/local/share/pyload/module/network/HTTPRequest.py", line 20, in <module>
import pycurl
ImportError: Shared object "libcurl.so.4" not found,

Any solution on this problem?

Thanks for helping!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hi,
i have installed pyLoad in Freenas 9.3. it works so far, but when i restart my Server i cant get run pyload again. I got following error:

Traceback (most recent call last):
File "/usr/local/bin/pyload", line 48, in <module>
from module.network.RequestFactory import RequestFactory
File "/usr/local/share/pyload/module/network/RequestFactory.py", line 22, in <module>
from Browser import Browser
File "/usr/local/share/pyload/module/network/Browser.py", line 6, in <module>
from HTTPRequest import HTTPRequest
File "/usr/local/share/pyload/module/network/HTTPRequest.py", line 20, in <module>
import pycurl
ImportError: Shared object "libcurl.so.4" not found,

Any solution on this problem?

Thanks for helping!
Just a guess, but wonder if this would help.
Code:
pkg install py27-curl
 

ZodiacUHD

Patron
Joined
Aug 28, 2015
Messages
226
Hello there, i've already spent 4 days trying to get this to work. I seem to be getting all the errors a man could possibly imagine. I tried different guides, googled all my issues with no success so far. I'm a HUGE NEWBIE so be patient if i'll ask for basics guidelines. Thanks in advance! I'm running on FreeNas 9.3

I'm getting errors at point #2:

Code:
An older version of git is already installed (git-2.3.4)
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of git
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** [check-already-installed] Error code 1

Stop in /usr/ports/devel/git.
*** [install] Error code 1

Stop in /usr/ports/devel/git. 


If i try "pkg_add -r py27-curl" i get this:
Code:
pkg_add -r py27-curl
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-st
able/Latest/py27-curl.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages
-9-stable/Latest/py27-curl.tbz' by URL
 

ArgaWoW

Patron
Joined
Jul 4, 2015
Messages
444
Have you do this steps?

Code:
. Login into your Freenas go to Jails and click 'Add Jails'
2. Click 'Advanced Mode'; Put in jail name; make note of the IP address; put in 'IPv4 default gateway'; make sure 'autostart' is enabled; 'type' is standard; 'VIMAGE', 'NAT' and '32Bit' are disabled and 'vanilla' is enabled and click OK
3. Use any terminal (Putty on Win, Terminal on OSX etc) to login with SSH to your NAS (SSH has to be enabled in services) as root or use the 'Shell' from the GUI.
4. Type in 'jls' (without quotes) and make note of JID of your jail
5. Type in 'jexec # csh' (where # is the JID of your jail)
6. Once in the jail type in 'portsnap fetch extract' (it'll take a while to finish)
7. 'cd /usr/ports/devel/git'
8. 'make install clean'
9. During the compilation it will ask you for the configuration of required packages - leave everything as is but make sure that when it asks for CURL you select Cookies support - it's disabled by default. (use arrows to move and space to check and uncheck the fields, enter to continue)
10. 'cd /usr/ports/www'
11. 'git clone https://github.com/mrhanky17/pyload-freebsd.git pyload'
12. 'cd pyload/'
13. 'make install clean' (you'll get the [install] Error code 1 at the end, ignore it)
14. 'pyload'
15. go through the setup
16. 'echo 'pyload_enable="YES"' >> /etc/rc.conf'
17. 'echo 'pyload_flags="--daemon"' >> /etc/rc.conf'
18. 'echo 'pyload_pid="/var/run/pyload.pid" ' >> /etc/rc.conf'
19. 'echo 'pyload_config="/root/pyload"' >> /etc/rc.conf' Note that this is the config Path you choose in the pyload Setup (Step 14-15). If you don't changed the Path its '/root/pyload'.
20. 'ln -s /usr/ports/www/pyload/work/stage/usr/local/etc/rc.d/pyload /etc/rc.d/pyload'
21. 'service pyload start'
22. pyload should run and you should have access to it through web interface with IP you saw in step 2. http://IP:8000/


It worked for me like a charm. But you have after step 12 to do
Code:
make makesum

This will solve your problem you have at the moment i think
 

ZodiacUHD

Patron
Joined
Aug 28, 2015
Messages
226
Have you do this steps?

Code:
. Login into your Freenas go to Jails and click 'Add Jails'
2. Click 'Advanced Mode'; Put in jail name; make note of the IP address; put in 'IPv4 default gateway'; make sure 'autostart' is enabled; 'type' is standard; 'VIMAGE', 'NAT' and '32Bit' are disabled and 'vanilla' is enabled and click OK
3. Use any terminal (Putty on Win, Terminal on OSX etc) to login with SSH to your NAS (SSH has to be enabled in services) as root or use the 'Shell' from the GUI.
4. Type in 'jls' (without quotes) and make note of JID of your jail
5. Type in 'jexec # csh' (where # is the JID of your jail)
6. Once in the jail type in 'portsnap fetch extract' (it'll take a while to finish)
7. 'cd /usr/ports/devel/git'
8. 'make install clean'
9. During the compilation it will ask you for the configuration of required packages - leave everything as is but make sure that when it asks for CURL you select Cookies support - it's disabled by default. (use arrows to move and space to check and uncheck the fields, enter to continue)
10. 'cd /usr/ports/www'
11. 'git clone https://github.com/mrhanky17/pyload-freebsd.git pyload'
12. 'cd pyload/'
13. 'make install clean' (you'll get the [install] Error code 1 at the end, ignore it)
14. 'pyload'
15. go through the setup
16. 'echo 'pyload_enable="YES"' >> /etc/rc.conf'
17. 'echo 'pyload_flags="--daemon"' >> /etc/rc.conf'
18. 'echo 'pyload_pid="/var/run/pyload.pid" ' >> /etc/rc.conf'
19. 'echo 'pyload_config="/root/pyload"' >> /etc/rc.conf' Note that this is the config Path you choose in the pyload Setup (Step 14-15). If you don't changed the Path its '/root/pyload'.
20. 'ln -s /usr/ports/www/pyload/work/stage/usr/local/etc/rc.d/pyload /etc/rc.d/pyload'
21. 'service pyload start'
22. pyload should run and you should have access to it through web interface with IP you saw in step 2. http://IP:8000/


It worked for me like a charm. But you have after step 12 to do
Code:
make makesum

This will solve your problem you have at the moment i think


I'm redoing it from scratch right now. Just a little note: i can't type anyting in "IPv4 default gateway " as long as VIMAGE is disabled. Now i'm using the shell to type everything in.

At step #7 i get this:
Code:
git-2.5.3 pkg(8) must be version 1.6.0 or greater, but you have 1.4.12. Yo
u must upgrade the ports-mgmt/pkg port first.
*** [install] Error code 1

Stop in /usr/ports/devel/git.


This is something already occured in the past days. Google helped me with that and found that someone else had my same problem. I'm trying to fix it with:
#1 cd /usr/ports/ports-mgmt/pkg
#2 make deinstall reinstall

I can now proceed to step #8
I have to say that there is NO COOKIES OPTION during the installation process ( i run it 8 times already, not a single time it showed up)

And after a while durin step 8 i get this
Code:
An older version of git is already installed (git-2.3.4)
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of git
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** [check-already-installed] Error code 1

Stop in /usr/ports/devel/git.
*** [install] Error code 1


I proceed then to
Code:
make deinstall reinstall


I then reach step #13 getting this:
Code:
pyload-pyload-0.4.9-0-g_GH0.tar.gz is not in /usr/ports/www/pyload/distinfo.
=> Either /usr/ports/www/pyload/distinfo is out of date, or
=> pyload-pyload-0.4.9-0-g_GH0.tar.gz is spelled incorrectly.
*** [do-fetch] Error code 1

Stop in /usr/ports/www/pyload.
*** [install] Error code 1

Stop in /usr/ports/www/pyload.
 
Last edited:
Top