I think the pyload package is broken (and some other python questions)

142 views
Skip to first unread message

scaramanga

unread,
Sep 22, 2014, 5:59:04 AM9/22/14
to al...@googlegroups.com
Hi Joao,

I wanted to take pyload for a spin, but it seems like the package installation is failing.
The package content itself seems to install without a problem. That was the confusing part, since it added the daemon configuration page. However, there was no daemon.
It seems that github moved the source file location, so the postinst script doesn't complete successfully.

While I was looking at this, I noticed that the python installation didn't include pip.
It was easy enough (trivial, in fact) to [url=https://pip.pypa.io/en/latest/installing.html]do that manually[/url], but was wondering why wasn't it included to begin with, or maybe as an additional package.

As always, thank you for all your hard work.

João Cardoso

unread,
Sep 22, 2014, 8:36:31 AM9/22/14
to al...@googlegroups.com


On Monday, September 22, 2014 10:59:04 AM UTC+1, scaramanga wrote:
Hi Joao,

I wanted to take pyload for a spin, but it seems like the package installation is failing.
The package content itself seems to install without a problem. That was the confusing part, since it added the daemon configuration page. However, there was no daemon.
It seems that github moved the source file location, so the postinst script doesn't complete successfully.

It must have been some glitch, I installed it just now:

Installing pyload (0.4.9) to /Alt-F...
Installing pyopenssl (0.11-1) to /Alt-F...
Installing pycurl (7.19.5) to /Alt-F...
Installing pycrypto (2.6.1) to /Alt-F...
Configuring pycrypto
Configuring pycurl
Configuring pyload
Resolving github.com... 192.30.252.130
Connecting to github.com|192.30.252.130|:443... connected.
HTTP request sent, awaiting response... 302 Found
Resolving codeload.github.com... 192.30.252.147
Connecting to codeload.github.com|192.30.252.147|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: '/tmp/pyload-v0.4.9.tar.gz'

     0K ........ ........ .                                    348K=3.3s

2014-09-22 13:20:38 (348 KB/s) - '/tmp/pyload-v0.4.9.tar.gz' saved [1156918]

Then it displays an error, "You have to configure pyLoad first", but that is expected, and it succeeds at the end.
After configuring and starting it I was able to access its web interface. As with all python-based packages there is a big initial delay after starting before it could be used.
I have not used it to download anything...

Please try again


While I was looking at this, I noticed that the python installation didn't include pip.
It was easy enough (trivial, in fact) to [url=https://pip.pypa.io/en/latest/installing.html]do that manually[/url], but was wondering why wasn't it included to begin with, or maybe as an additional package.

There are so many Python packages and extensions... only what comes on the base python tarball is made available.

scaramanga

unread,
Sep 22, 2014, 9:09:26 AM9/22/14
to al...@googlegroups.com
Here's what happens:

[root@Turtle]# ipkg install pyload

Installing pyload (0.4.9) to /Alt-F...
Downloading http://sourceforge.net/projects/alt-f/files/pkgs/unstable/pyload_0.4.9_arm.ipk
Configuring pyload
--2014-09-22 15:58:34--  https://github.com/pyload/pyload/archive/v0.4.9.tar.gz
Resolving github.com... 192.30.252.131
Connecting to github.com|192.30.252.131|:443... connected.

HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/pyload/pyload/tar.gz/v0.4.9 [following]
--2014-09-22 15:58:36--  https://codeload.github.com/pyload/pyload/tar.gz/v0.4.9
Resolving codeload.github.com... 192.30.252.144
Connecting to codeload.github.com|192.30.252.144|:443... connected.

HTTP request sent, awaiting response... 200 OK
Length: 1156918 (1.1M) [application/x-gzip]
Saving to: '/tmp/pyload-v0.4.9.tar.gz'

     0K ........ ........ .                                  100%  310K=3.6s

2014-09-22 15:58:41 (310 KB/s) - '/tmp/pyload-v0.4.9.tar.gz' saved [1156918/1156918]

Extraction of pyLoad failed.
postinst script returned status 1
ERROR: pyload.postinst returned 1
Successfully terminated.
[root@Turtle]#

João Cardoso

unread,
Sep 22, 2014, 10:28:03 AM9/22/14
to al...@googlegroups.com


On Monday, September 22, 2014 2:09:26 PM UTC+1, scaramanga wrote:
Here's what happens:

[root@Turtle]# ipkg install pyload
Installing pyload (0.4.9) to /Alt-F...
Downloading http://sourceforge.net/projects/alt-f/files/pkgs/unstable/pyload_0.4.9_arm.ipk
Configuring pyload
--2014-09-22 15:58:34--  https://github.com/pyload/pyload/archive/v0.4.9.tar.gz
Resolving github.com... 192.30.252.131
Connecting to github.com|192.30.252.131|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/pyload/pyload/tar.gz/v0.4.9 [following]
--2014-09-22 15:58:36--  https://codeload.github.com/pyload/pyload/tar.gz/v0.4.9
Resolving codeload.github.com... 192.30.252.144
Connecting to codeload.github.com|192.30.252.144|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1156918 (1.1M) [application/x-gzip]
Saving to: '/tmp/pyload-v0.4.9.tar.gz'

     0K ........ ........ .                                  100%  310K=3.6s

2014-09-22 15:58:41 (310 KB/s) - '/tmp/pyload-v0.4.9.tar.gz' saved [1156918/1156918]

Extraction of pyLoad failed.
postinst script returned status 1
ERROR: pyload.postinst returned 1
Successfully terminated.
[root@Turtle]#



You are right, a 'mkdir -p /Alt-F/opt' is missing in the install script.
Users who already have any of couchpotato, couchpotato2, nzbgetweb, sabnzbd or sickbeard installed will not notice the issue.

Fixed and uploaded to sourceforge, please test it.

Thanks


scaramanga

unread,
Sep 22, 2014, 11:47:53 AM9/22/14
to al...@googlegroups.com
Oh yeah, I saw that /opt referenced in the script.
After updating the package list the installation went through. Thank you!

Btw, regarding /opt: Seems like an odd place to install this package to. Why is that? Some optware/entware convention?

João Cardoso

unread,
Sep 22, 2014, 1:23:47 PM9/22/14
to al...@googlegroups.com


On Monday, September 22, 2014 4:47:53 PM UTC+1, scaramanga wrote:
Oh yeah, I saw that /opt referenced in the script.
After updating the package list the installation went through. Thank you!

Btw, regarding /opt: Seems like an odd place to install this package to. Why is that? Some optware/entware convention?

I put in /opt all "programs" that are downloaded at install time, not built and tested by me.
These are generally python/html/js scripts.
 
Reply all
Reply to author
Forward
0 new messages