It is currently Mon Aug 20, 2018 8:37 am
All times are UTC + 8 hours

(SOLVED)Help installing LXML

CouchPotato is an automatic NZB and torrent downloader.
You can keep a "want to watch"-list and it will search for NZBs/torrents of these items every X hours. Once a correct release is found, matching the correct quality, it will send it to SABnzbd or download the .nzb or .torrent to a specified directory.

Moderators: clinton.hall, JohnnyFive

(SOLVED)Help installing LXML

Postby burgernz » Sat Jul 25, 2015 5:14 pm

Afaik I need to have LXML running in order for CP to parse the results from a private tracker.

I've tried running this:

ipkg install libxml2
ipkg install libxslt

Which works. However this command:

pip install lxml

Fails. From the log it looks like something important is missing:

"unable to execute x86_64-asustor-linux-gnu-gcc: No such file or directory"
burgernz
 
Posts: 5
Joined: Sat Jul 25, 2015 5:10 pm

Re: Help installing LXML

Postby clinton.hall » Mon Jul 27, 2015 7:00 pm

You can't compile on Asustor. You need to cross compile on another system and the copy the files across.
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 825
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Help installing LXML

Postby burgernz » Mon Jul 27, 2015 7:04 pm

Hi Clinton,

Thanks for your reply. Can you give me a little more info? My knowledge of linux is rather limited.

Cheers :)
burgernz
 
Posts: 5
Joined: Sat Jul 25, 2015 5:10 pm

Re: Help installing LXML

Postby clinton.hall » Wed Aug 12, 2015 9:15 pm

Compiling this, then building into the App is on my to-do list... I'll try and update this App soon.
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 825
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Help installing LXML

Postby clinton.hall » Sun Aug 23, 2015 4:29 pm

Please download the latest version from here {{ removed }} and let me know how it goes... this now includes lxml
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 825
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Help installing LXML

Postby burgernz » Mon Aug 24, 2015 4:00 am

Hi Clinton,

Still getting zero data back from a search. i.e:

08-23 19:59:08INFO[hpotato.core.plugins.base] Opening url: get https://xxx.xx/t?l7=&l48=&l20=&q=%22ing ... rrents&p=1, data: []
burgernz
 
Posts: 5
Joined: Sat Jul 25, 2015 5:10 pm

Re: Help installing LXML

Postby clinton.hall » Mon Aug 24, 2015 6:09 pm

Can you enable debug logging (settings, general, debug), then restart couchpotato and try the search again?
Is there any more information in the logs?
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 825
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Help installing LXML

Postby burgernz » Mon Aug 24, 2015 6:49 pm

Hiya,

Here is a more thorough output:

Code: Select all
08-24 11:45:38INFO[ie.providers.info.omdbapi] Found: Inglourious Basterds (2009)
08-24 11:45:38DEBUG[   couchpotato.core.event] Return modified results for movie.info
08-24 11:45:38DEBUG[to.core.media.movie._base] Adding titles: [u'Inglourious Basterds', u'Malditos Bastardos', u'\u6076\u68cd\u7279\u5de5', u'\u5e0c\u9b54\u649e\u6b63\u6740\u4eba\u72c2', u'Bastardos Ingl\xf3rios', u'Kunniattomat paskiaiset', u'\u0411\u0415\u0421\u0421\u041b\u0410\u0412\u041d\u042b\u0415 \u0423\u0411\u041b\u042e\u0414\u041a\u0418', u'Inglorious Basterds', u'B\u0119karty wojny', u'Becstelen Brigantyk', u'\u60e1\u68cd\u7279\u5de5', u'Bastardos sin gloria', u'Sacanas Sem Lei', u'Male\xefts Malparits', u'\u067e\u0633\u062a \u0641\u0637\u0631\u062a \u0647\u0627\u06cc \u0644\u0639\u0646\u062a\u06cc']
08-24 11:45:38DEBUG[hpotato.core.plugins.base] Releasing lock: media.get.b3099d33304b47c0a500489e031f18c0
08-24 11:45:38DEBUG[to.core.media._base.media] Changing status for Inglourious Basterds
08-24 11:45:38INFO[hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/eta/tt0361748/, data: []
08-24 11:45:44DEBUG[hpotato.core.plugins.base] Setting cache ce7e050a4b660cda8bc1b47d033432d0
08-24 11:45:44DEBUG[iders.info.couchpotatoapi] Found ETA for tt0361748: {u'dvd': 0, u'expires': 1441200089, u'theater': 1250805600, u'bluray': True}
08-24 11:45:44DEBUG[o.core.notifications.core] Notifying frontend
08-24 11:45:44DEBUG[o.core.notifications.core] Done notifying frontend
08-24 11:45:44INFO[core.media.movie.searcher] Search for Inglourious Basterds in 720p ignoring ETA
08-24 11:45:44INFO[hpotato.core.plugins.base] Opening url: get https://iptorrents.eu/inbox.php, data: []
08-24 11:45:48DEBUG[o.core.notifications.core] Getting messages with id: 8985b537-1d85-4d8f-bf0b-676a097a050d
08-24 11:45:48DEBUG[o.core.notifications.core] Returning for 8985b537-1d85-4d8f-bf0b-676a097a050d 0 messages
08-24 11:45:49ERROR[hpotato.core.plugins.base] Failed opening url in IPTorrents: https://iptorrents.eu/inbox.php Traceback (most recent call last):
HTTPError: 404 Client Error: Not Found for url: https://iptorrents.eu/inbox.php
08-24 11:45:49INFO[hpotato.core.plugins.base] Opening url: post https://iptorrents.eu/, data: ['username', 'login', 'password']
08-24 11:45:49DEBUG[hpotato.core.plugins.base] Waiting for IPTorrents, 1 seconds
08-24 11:45:50INFO[hpotato.core.plugins.base] Opening url: get https://iptorrents.eu/t?l48=&q=%22inglourious+basterds%22+2009&qf=#torrents&p=1, data: []
08-24 11:45:50DEBUG[hpotato.core.plugins.base] Setting cache f1011deba57dd45e1cd8e68a18fe7af6
08-24 11:45:50DEBUG[core.media.movie.searcher] Nothing found for Inglourious Basterds in 720p
08-24 11:45:50INFO[core.media.movie.searcher] Search for Inglourious Basterds in 1080p ignoring ETA
08-24 11:45:50DEBUG[hpotato.core.plugins.base] Getting cache f1011deba57dd45e1cd8e68a18fe7af6
08-24 11:45:51DEBUG[core.media.movie.searcher] Nothing found for Inglourious Basterds in 1080p
08-24 11:45:51INFO[core.media.movie.searcher] Search for Inglourious Basterds in BR-Rip ignoring ETA
08-24 11:45:51DEBUG[hpotato.core.plugins.base] Waiting for IPTorrents, 1 seconds
08-24 11:45:51INFO[hpotato.core.plugins.base] Opening url: get https://iptorrents.eu/t?l7=&l48=&l20=&q=%22inglourious+basterds%22+2009&qf=#torrents&p=1, data: []
08-24 11:45:51DEBUG[hpotato.core.plugins.base] Setting cache c077a45a7886a6b36d6c82f7865f61e5
08-24 11:45:51DEBUG[core.media.movie.searcher] Nothing found for Inglourious Basterds in BR-Rip
08-24 11:45:51INFO[core.media.movie.searcher] Search for Inglourious Basterds in DVD-Rip ignoring ETA
08-24 11:45:51DEBUG[hpotato.core.plugins.base] Getting cache c077a45a7886a6b36d6c82f7865f61e5
08-24 11:45:52DEBUG[core.media.movie.searcher] Nothing found for Inglourious Basterds in DVD-Rip
08-24 11:45:52DEBUG[o.core.notifications.core] Notifying frontend
08-24 11:45:52DEBUG[o.core.notifications.core] Done notifying frontend
08-24 11:45:52DEBUG[o.core.notifications.core] Notifying frontend
08-24 11:45:52DEBUG[o.core.notifications.core] Done notifying frontend


Not sure why it's trying to open /inbox.php either.

Looking around it looks like I might have to change:

Line 53 in /couchpotato/CouchPotatoServer/couchpotato/core/media/_base/providers/torrent/iptorrents.py

to..
html = BeautifulSoup(data, "lxml")

However I cannot ssh into my box remotely to test this.
burgernz
 
Posts: 5
Joined: Sat Jul 25, 2015 5:10 pm

Re: Help installing LXML

Postby clinton.hall » Mon Aug 24, 2015 8:22 pm

Sorry... I had a typo in the start script...
Please test this version
https://www.dropbox.com/s/4ebuz0f84kzws1s/couchpotato_20150824_any.apk
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 825
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Help installing LXML

Postby burgernz » Mon Aug 24, 2015 8:53 pm

Fixed!

Looks like everything is working correctly now. Search/Send to Deluge all worked perfectly.
burgernz
 
Posts: 5
Joined: Sat Jul 25, 2015 5:10 pm

Return to CouchPotato

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest