NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 4 5 6 7 8 … 56 Next »
myGBPVR: use XMBC as GBPVR FrontEnd

 
  • 0 Vote(s) - 0 Average
myGBPVR: use XMBC as GBPVR FrontEnd
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#61
2010-04-15, 08:41 PM
Hey,

Just to be sure, could you provide a wire-shark trace (or other SOAP tracing) of the SOAP traffic? That would allow me to determine what exactly is going on... I haven't seen this with relation to the dates before, but it might be related to specific (US) date/time settings on the server or the Python client???

pBS Wrote:i'm getting this also..

everything seems to be in it's proper place..
any ideas?
dates are correct on both machines..ewa working fine locally and remotely..
does it require a certain dotnet ver or something like that?
any external dll's needed? do i have to install 2xbmc?
//Ton
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#62
2010-04-15, 08:48 PM (This post was last modified: 2010-04-15, 11:30 PM by Ton.)
Hey,

Looks like you're close... Only thing missing, as far as I can see, is the Crypto libraries...

I thought I had it written down quite okay in the "readme" file....
Code:
PyCrypto:
This is a framework for cryptographic codes under python.
It's used because the communication of userid's and passwords with EWA is encrypted.

for Windows:
You will need to install Python first, since the PyCrypto installer requires this.
I recommend installing Python 2.4.6 (since this is what XBMC is using).
Download Python from here: http://www.python.org/download/releases/2.4.6/

Next, download a binary distribution of PyCrypto (for python 2.4).

I found it here: http://www.voidspace.org.uk/python/modules.shtml (pycrypto-2.0.1.win32-py2.4.zip)

Run the installer and copy the PyCrypto directory from your Python installation:
C:\Python24\Lib\site-packages\Crypto
to this directory:
C:\Users\[your user]\Appdata\Roaming\XBMC\Scripts\resources\lib

So, to re-frase, first download and install Python 2.4.6. Then download the file in the link above:
http://www.voidspace.org.uk/python/modules.shtml

Browse down that page. It's a bit messy, but near the bottom is the link to: "pycrypto-2.0.1.win32-py2.4.zip". Download that. Inside is a executable that you can just run, and it will install the PyCrypto libraries to your Python install (C:\Python24\Lib\site-packages). Copy the "Crypto" library from there to your myGBPVR install, and you should be fine...

There are some notices about export-restrictions in the original archive, that's why I don't want to include it in my zip-file. Sorry for that, otherwise the install would be a lot simpler. Maybe one of you wants to host a version of myGBPVR with the PyCrypto libraries included....


Nukular Wrote:Yeah i provided an username and an password.

The EWA has an logfile?! Where is that stored?
Can u tell me the exactly "path" which mygbpvr tries to open? Is it http://127.0.0.1:7647/gbpvr/ ? I ask because at http://127.0.0.1 i get an 404 not found error message so it would help which file it tries to open. **EDIT**: http://127.0.0.1:7647/gbpvr/public/servi...foXML.aspx <- correct? **/EDIT**
I installed python meanwhile but how do i add these crypto thing?



Ok meanwhile i am a bit smarter ... and the xbmc-logfile changed to:

07:42:41 T:2964 M:2444042240 NOTICE: --> AreYouThere() returning: True
07:42:41 T:2964 M:2438299648 NOTICE: EXCEPTION: : Traceback (most recent call last):
File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\gbpvr\home.py", line 151, in refreshOnInit
self.statusData = self.gbpvr.GetGBPVRInfo(self.settings.GBPVR_USER, self.settings.GBPVR_PW)
File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\GBPVR_Connect.py", line 134, in GetGBPVRInfo
self.channels = self.getChannelList(userid, password)
File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\GBPVR_Connect.py", line 153, in getChannelList
authObj = self._AddAuthentication(authObj, userid, password)
ImportError: No module named Crypto.Cipher
07:43:10 T:3416 M:2440060928 ERROR: DIRECTORY::CDirectory::GetDirectory - Error getting ?
07:43:10 T:3416 M:2440056832 ERROR: CGUIMediaWindow::GetDirectory(?) failed

But those crypto thing is still not installed ... i dont know how ... maybe an little guide for that would be cool ... i cant imagine that everyone know how to work with python ....

** EDIT 2 **
I installed python-2.6.5.amd64.msi now.
Than i had to find out how to work with it ...
I had to register the python path by myself to manage to install these library...
During the installation this happens:

python setup.py install
running install
running build
running build_py
running build_ext
building 'Crypto.Hash.MD2' extension
error: Unable to find vcvarsall.bat

These vcvarsall.bat belongs to visual c++ ... and as far as i know only to visual c++ 2010 ...
this is quite a lot to install just for your script ... i guess u are an programmer and u have such tools installed on your pc ...
//Ton
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#63
2010-04-15, 08:58 PM
Hi,

Looks like you hit a bug in my code....

This:
Code:
argument 1 must be unicode or str
tells me that there's possibly something wrong in code...

Could you drop the file in the attached zip in "....myGBPVR/resources/src/gbpvr" (copy the old file if you want), and run it again... There should be a lot more info in the log-file afterwards....

Then post back, and I'll have a look to see if I can find what's going on....

arad85 Wrote:Hi - First post... I'm hoping that this script will enable me to have a single box under my TV that does everything Smile

I have xbmc running on an ion based htpc, communicating with a Win 7 server for gb-pvr. On two windows machines I can browse and see the EPG and see the config pages/logs etc. From xbmc, all I am able to do is browse the EPG.

Whenever I start myGBPVR, I get a can't connect to server message. The log from xbmc is (mac address set correctly, but not shown below):

Code:
16:34:01 T:3022068592 M:1407762432  NOTICE: -->Python Interpreter Initialized<--
16:34:01 T:3022068592 M:1407762432  NOTICE: myGBPVRGlobals Version: 0.0.1 Date: 29-11-2009
16:34:02 T:3078109072 M:1407754240   ERROR: GetDirectory - Error getting ?
16:34:02 T:3078109072 M:1407754240   ERROR: CGUIMediaWindow::GetDirectory(?) failed
16:34:02 T:3022068592 M:1404833792  NOTICE: --> AreYouThere() socket on port 7647 using ip=192.168.1.21
16:34:02 T:3022068592 M:1404833792  NOTICE:                   mac:xx:xx:xx:xx:xx:xxbroadcast: 255.255.255.255
16:34:02 T:3022068592 M:1404833792  NOTICE: This got: False / xx:xx:xx:xx:xx:xx
16:34:02 T:3022068592 M:1404833792  NOTICE: --> AreYouThere() returning: True
16:34:14 T:3022068592 M:1406836736  NOTICE: EXCEPTION: : Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/scripts/myGBPVR/resources/src/gbpvr/home.py", line 155, in refreshOnInit
                                                self.renderRecent()
                                              File "/home/xbmc/.xbmc/scripts/myGBPVR/resources/src/gbpvr/home.py", line 185, in renderRecent
                                                listItem.setProperty('title', t['title'])
                                            TypeError: argument 1 must be unicode or str

and the section ofg log from GB-PVR for this is:

Code:
2010-04-15 16:33:19.153    INFO    [4]    Using wmi for free space determination.....
2010-04-15 16:33:19.168    INFO    [4]    Using wmi for free space determination.....
2010-04-15 16:33:19.168    VERBOSE    [4]    RecordingFactory.loadSchedule()
2010-04-15 16:33:19.168    VERBOSE    [4]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2010-04-15 16:33:19.168    VERBOSE    [4]    getValue cached value: /settings/CheckForRenamedRecordings : true
2010-04-15 16:33:22.928    INFO    [14]    
2010-04-15 16:33:22.928    INFO    [14]    
2010-04-15 16:33:22.928    INFO    [14]    *********************
2010-04-15 16:33:22.928    INFO    [14]    * Validating Incomming Web Service
2010-04-15 16:33:22.928    INFO    [14]    *
2010-04-15 16:33:22.928    INFO    [14]    User Name = gbpvr
2010-04-15 16:33:22.928    INFO    [14]    User Password = gbpvr
2010-04-15 16:33:22.928    INFO    [14]    *
2010-04-15 16:33:22.928    INFO    [14]    *
2010-04-15 16:33:22.928    INFO    [14]    Checking credential timestamp....
2010-04-15 16:33:22.928    INFO    [14]    nowTime = 15/04/2010 15:33:22
2010-04-15 16:33:22.928    INFO    [14]    Credential time string = 15-04-2010 16:34:00
2010-04-15 16:33:22.928    INFO    [14]    Credential time converted = 15/04/2010 16:34:00
2010-04-15 16:33:22.928    INFO    [14]    Span time (seconds) = -38
2010-04-15 16:33:22.928    INFO    [14]    *
2010-04-15 16:33:22.928    INFO    [14]    *
2010-04-15 16:33:22.928    INFO    [14]    *********************
2010-04-15 16:33:22.928    INFO    [14]    
2010-04-15 16:33:22.928    INFO    [14]    
2010-04-15 16:33:25.658    INFO    [14]    
2010-04-15 16:33:25.658    INFO    [14]    
2010-04-15 16:33:25.658    INFO    [14]    *********************
2010-04-15 16:33:25.658    INFO    [14]    * Validating Incomming Web Service
2010-04-15 16:33:25.658    INFO    [14]    *
2010-04-15 16:33:25.658    INFO    [14]    User Name = gbpvr
2010-04-15 16:33:25.658    INFO    [14]    User Password = gbpvr
2010-04-15 16:33:25.658    INFO    [14]    *
2010-04-15 16:33:25.658    INFO    [14]    *
2010-04-15 16:33:25.658    INFO    [14]    Checking credential timestamp....
2010-04-15 16:33:25.658    INFO    [14]    nowTime = 15/04/2010 15:33:25
2010-04-15 16:33:25.658    INFO    [14]    Credential time string = 15-04-2010 16:34:00
2010-04-15 16:33:25.658    INFO    [14]    Credential time converted = 15/04/2010 16:34:00
2010-04-15 16:33:25.658    INFO    [14]    Span time (seconds) = -35
2010-04-15 16:33:25.658    INFO    [14]    *
2010-04-15 16:33:25.658    INFO    [14]    *
2010-04-15 16:33:25.658    INFO    [14]    *********************
2010-04-15 16:33:25.658    INFO    [14]    
2010-04-15 16:33:25.658    INFO    [14]    
2010-04-15 16:33:25.674    VERBOSE    [14]    RecordingFactory.loadSchedule()
2010-04-15 16:33:25.674    VERBOSE    [14]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2010-04-15 16:33:25.674    VERBOSE    [14]    getValue cached value: /settings/CheckForRenamedRecordings : true
2010-04-15 16:33:28.076    INFO    [14]    
2010-04-15 16:33:28.076    INFO    [14]    
2010-04-15 16:33:28.076    INFO    [14]    *********************
2010-04-15 16:33:28.076    INFO    [14]    * Validating Incomming Web Service
2010-04-15 16:33:28.076    INFO    [14]    *
2010-04-15 16:33:28.076    INFO    [14]    User Name = gbpvr
2010-04-15 16:33:28.076    INFO    [14]    User Password = gbpvr
2010-04-15 16:33:28.076    INFO    [14]    *
2010-04-15 16:33:28.076    INFO    [14]    *
2010-04-15 16:33:28.076    INFO    [14]    Checking credential timestamp....
2010-04-15 16:33:28.076    INFO    [14]    nowTime = 15/04/2010 15:33:28
2010-04-15 16:33:28.076    INFO    [14]    Credential time string = 15-04-2010 16:34:00
2010-04-15 16:33:28.076    INFO    [14]    Credential time converted = 15/04/2010 16:34:00
2010-04-15 16:33:28.076    INFO    [14]    Span time (seconds) = -32
2010-04-15 16:33:28.076    INFO    [14]    *
2010-04-15 16:33:28.076    INFO    [14]    *
2010-04-15 16:33:28.076    INFO    [14]    *********************
2010-04-15 16:33:28.076    INFO    [14]    
2010-04-15 16:33:28.076    INFO    [14]    
2010-04-15 16:33:28.092    VERBOSE    [14]    RecordingFactory.loadSchedule()
2010-04-15 16:33:28.092    VERBOSE    [14]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2010-04-15 16:33:28.092    VERBOSE    [14]    getValue cached value: /settings/CheckForRenamedRecordings : true
2010-04-15 16:33:28.092    VERBOSE    [14]    RecordingFactory.loadScheduleRecordingByOID()
2010-04-15 16:33:28.107    VERBOSE    [14]    RecordingFactory.loadScheduleRecordingByOID()
2010-04-15 16:33:48.918    INFO    [4]    In writing of file
2010-04-15 16:33:48.918    INFO    [4]    readcount = 10980

I have v83 installed (did a re-install just before testing to check!) and copied the Crypto directories from Python2.6 as suggested.

Any ideas?

Thanks
//Ton
arad85
Offline

Junior Member

Posts: 5
Threads: 0
Joined: Apr 2010
#64
2010-04-15, 10:13 PM
Ton Wrote:Hi,

Looks like you hit a bug in my code....

This:
Code:
argument 1 must be unicode or str
tells me that there's possibly something wrong in code...

Could you drop the file in the attached zip in "....myGBPVR/resources/src/gbpvr" (copy the old file if you want), and run it again... There should be a lot more info in the log-file afterwards....

Then post back, and I'll have a look to see if I can find what's going on....

Thanks. OK, we have from xbmc.log:

Code:
23:05:54 T:2903505776 M:1366102016  NOTICE: -->Python Interpreter Initialized<--
23:05:54 T:2903505776 M:1366102016  NOTICE: myGBPVRGlobals Version: 0.0.1 Date: 29-11-2009
23:05:55 T:3077564304 M:1366093824   ERROR: GetDirectory - Error getting ?
23:05:55 T:3077564304 M:1366093824   ERROR: CGUIMediaWindow::GetDirectory(?) failed
23:05:56 T:2903505776 M:1362161664  NOTICE: --> AreYouThere() socket on port 7647 using ip=192.168.1.21
23:05:56 T:2903505776 M:1362161664  NOTICE:                   mac:xx:xx:xx:xx:xx:xxbroadcast: 255.255.255.255
23:05:56 T:2903505776 M:1362161664  NOTICE: This got: False / xx:xx:xx:xx:xx:xx
23:05:56 T:2903505776 M:1362161664  NOTICE: --> AreYouThere() returning: True
23:06:06 T:2903505776 M:1365643264  NOTICE: [{'status': Completed, 'end': datetime.datetime(2010, 4, 7, 19, 42), 'title': None, 'rec': True, 'priority': 0, 'start': datetime.datetime(2010, 4, 7, 19, 39), 'channel': 'BBC1 West', 'recording_oid': 2, 'subtitle': '', 'channel_oid': 21, 'rectype': 'once', 'program_oid': 0, 'desc': ''}, {'status': Completed, 'end': datetime.datetime(2010, 4, 7, 19, 0), 'title': BBC Points West, 'rec': True, 'priority': 0, 'start': datetime.datetime(2010, 4, 7, 18, 30), 'channel': 'BBC1 West', 'recording_oid': 1, 'subtitle': '', 'channel_oid': 21, 'rectype': 'once', 'program_oid': 200, 'desc': The latest news, sport, weather and features from the West of England.}]
23:06:06 T:2903505776 M:1365643264  NOTICE: {'status': Completed, 'end': datetime.datetime(2010, 4, 7, 19, 42), 'title': None, 'rec': True, 'priority': 0, 'start': datetime.datetime(2010, 4, 7, 19, 39), 'channel': 'BBC1 West', 'recording_oid': 2, 'subtitle': '', 'channel_oid': 21, 'rectype': 'once', 'program_oid': 0, 'desc': ''}
23:06:06 T:2903505776 M:1365643264  NOTICE: EXCEPTION: : Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/scripts/myGBPVR/resources/src/gbpvr/home.py", line 155, in refreshOnInit
                                                self.renderRecent()
                                              File "/home/xbmc/.xbmc/scripts/myGBPVR/resources/src/gbpvr/home.py", line 187, in renderRecent
                                                listItem.setProperty('title', t['title'])
                                            TypeError: argument 1 must be unicode or str
23:06:25 T:3077564304 M:1365143552  NOTICE: Samba is idle. Closing the remaining connections
(END)

and from the server log:

Code:
2010-04-15 23:05:12.430    INFO    [4]    Using wmi for free space determination.....
2010-04-15 23:05:12.430    INFO    [4]    Using wmi for free space determination.....
2010-04-15 23:05:12.445    VERBOSE    [4]    RecordingFactory.loadSchedule()
2010-04-15 23:05:12.445    VERBOSE    [4]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2010-04-15 23:05:12.445    VERBOSE    [4]    getValue cached value: /settings/CheckForRenamedRecordings : true
2010-04-15 23:05:15.737    INFO    [4]    
2010-04-15 23:05:15.737    INFO    [4]    
2010-04-15 23:05:15.737    INFO    [4]    *********************
2010-04-15 23:05:15.737    INFO    [4]    * Validating Incomming Web Service
2010-04-15 23:05:15.737    INFO    [4]    *
2010-04-15 23:05:15.737    INFO    [4]    User Name = gbpvr
2010-04-15 23:05:15.737    INFO    [4]    User Password = gbpvr
2010-04-15 23:05:15.737    INFO    [4]    *
2010-04-15 23:05:15.737    INFO    [4]    *
2010-04-15 23:05:15.737    INFO    [4]    Checking credential timestamp....
2010-04-15 23:05:15.737    INFO    [4]    nowTime = 15/04/2010 22:05:15
2010-04-15 23:05:15.737    INFO    [4]    Credential time string = 15-04-2010 23:05:00
2010-04-15 23:05:15.737    INFO    [4]    Credential time converted = 15/04/2010 23:05:00
2010-04-15 23:05:15.737    INFO    [4]    Span time (seconds) = -45
2010-04-15 23:05:15.737    INFO    [4]    *
2010-04-15 23:05:15.737    INFO    [4]    *
2010-04-15 23:05:15.737    INFO    [4]    *********************
2010-04-15 23:05:15.737    INFO    [4]    
2010-04-15 23:05:15.737    INFO    [4]    
2010-04-15 23:05:18.514    INFO    [4]    
2010-04-15 23:05:18.514    INFO    [4]    
2010-04-15 23:05:18.514    INFO    [4]    *********************
2010-04-15 23:05:18.514    INFO    [4]    * Validating Incomming Web Service
2010-04-15 23:05:18.514    INFO    [4]    *
2010-04-15 23:05:18.514    INFO    [4]    User Name = gbpvr
2010-04-15 23:05:18.514    INFO    [4]    User Password = gbpvr
2010-04-15 23:05:18.514    INFO    [4]    *
2010-04-15 23:05:18.514    INFO    [4]    *
2010-04-15 23:05:18.514    INFO    [4]    Checking credential timestamp....
2010-04-15 23:05:18.514    INFO    [4]    nowTime = 15/04/2010 22:05:18
2010-04-15 23:05:18.514    INFO    [4]    Credential time string = 15-04-2010 23:06:00
2010-04-15 23:05:18.514    INFO    [4]    Credential time converted = 15/04/2010 23:06:00
2010-04-15 23:05:18.514    INFO    [4]    Span time (seconds) = -42
2010-04-15 23:05:18.514    INFO    [4]    *
2010-04-15 23:05:18.514    INFO    [4]    *
2010-04-15 23:05:18.514    INFO    [4]    *********************
2010-04-15 23:05:18.514    INFO    [4]    
2010-04-15 23:05:18.514    INFO    [4]    
2010-04-15 23:05:18.514    VERBOSE    [4]    RecordingFactory.loadSchedule()
2010-04-15 23:05:18.514    VERBOSE    [4]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2010-04-15 23:05:18.514    VERBOSE    [4]    getValue cached value: /settings/CheckForRenamedRecordings : true
2010-04-15 23:05:21.010    INFO    [4]    
2010-04-15 23:05:21.010    INFO    [4]    
2010-04-15 23:05:21.010    INFO    [4]    *********************
2010-04-15 23:05:21.010    INFO    [4]    * Validating Incomming Web Service
2010-04-15 23:05:21.010    INFO    [4]    *
2010-04-15 23:05:21.010    INFO    [4]    User Name = gbpvr
2010-04-15 23:05:21.010    INFO    [4]    User Password = gbpvr
2010-04-15 23:05:21.010    INFO    [4]    *
2010-04-15 23:05:21.010    INFO    [4]    *
2010-04-15 23:05:21.010    INFO    [4]    Checking credential timestamp....
2010-04-15 23:05:21.010    INFO    [4]    nowTime = 15/04/2010 22:05:21
2010-04-15 23:05:21.010    INFO    [4]    Credential time string = 15-04-2010 23:06:00
2010-04-15 23:05:21.010    INFO    [4]    Credential time converted = 15/04/2010 23:06:00
2010-04-15 23:05:21.010    INFO    [4]    Span time (seconds) = -39
2010-04-15 23:05:21.010    INFO    [4]    *
2010-04-15 23:05:21.010    INFO    [4]    *
2010-04-15 23:05:21.010    INFO    [4]    *********************
2010-04-15 23:05:21.010    INFO    [4]    
2010-04-15 23:05:21.010    INFO    [4]    
2010-04-15 23:05:21.025    VERBOSE    [4]    RecordingFactory.loadSchedule()
2010-04-15 23:05:21.025    VERBOSE    [4]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2010-04-15 23:05:21.025    VERBOSE    [4]    getValue cached value: /settings/CheckForRenamedRecordings : true
2010-04-15 23:05:21.025    VERBOSE    [4]    RecordingFactory.loadScheduleRecordingByOID()
2010-04-15 23:05:21.025    VERBOSE    [4]    RecordingFactory.loadScheduleRecordingByOID()
2010-04-15 23:05:39.465    INFO    [4]    In writing of file
2010-04-15 23:05:39.465    INFO    [4]    readcount = 21058
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#65
2010-04-15, 11:28 PM
Hi,

Do you have a manual recording in there? I'm getting a recording with no title (I don't ever use manual recording, that's why I didn't code for that)...

If that's the case, I can probably provide a fix real quickly...

Could you check your recordings? It's this one:

End date: 2010-4-7 19:42
title: None
start: 2010-4-7 19:39
channel: BBC1 West
rectype: once



arad85 Wrote:Thanks. OK, we have from xbmc.log:

Code:
23:05:54 T:2903505776 M:1366102016  NOTICE: -->Python Interpreter Initialized<--
23:05:54 T:2903505776 M:1366102016  NOTICE: myGBPVRGlobals Version: 0.0.1 Date: 29-11-2009
23:05:55 T:3077564304 M:1366093824   ERROR: GetDirectory - Error getting ?
23:05:55 T:3077564304 M:1366093824   ERROR: CGUIMediaWindow::GetDirectory(?) failed
23:05:56 T:2903505776 M:1362161664  NOTICE: --> AreYouThere() socket on port 7647 using ip=192.168.1.21
23:05:56 T:2903505776 M:1362161664  NOTICE:                   mac:xx:xx:xx:xx:xx:xxbroadcast: 255.255.255.255
23:05:56 T:2903505776 M:1362161664  NOTICE: This got: False / xx:xx:xx:xx:xx:xx
23:05:56 T:2903505776 M:1362161664  NOTICE: --> AreYouThere() returning: True
23:06:06 T:2903505776 M:1365643264  NOTICE: [{'status': Completed, 'end': datetime.datetime(2010, 4, 7, 19, 42), 'title': None, 'rec': True, 'priority': 0, 'start': datetime.datetime(2010, 4, 7, 19, 39), 'channel': 'BBC1 West', 'recording_oid': 2, 'subtitle': '', 'channel_oid': 21, 'rectype': 'once', 'program_oid': 0, 'desc': ''}, {'status': Completed, 'end': datetime.datetime(2010, 4, 7, 19, 0), 'title': BBC Points West, 'rec': True, 'priority': 0, 'start': datetime.datetime(2010, 4, 7, 18, 30), 'channel': 'BBC1 West', 'recording_oid': 1, 'subtitle': '', 'channel_oid': 21, 'rectype': 'once', 'program_oid': 200, 'desc': The latest news, sport, weather and features from the West of England.}]
23:06:06 T:2903505776 M:1365643264  NOTICE: {'status': Completed, 'end': datetime.datetime(2010, 4, 7, 19, 42), 'title': None, 'rec': True, 'priority': 0, 'start': datetime.datetime(2010, 4, 7, 19, 39), 'channel': 'BBC1 West', 'recording_oid': 2, 'subtitle': '', 'channel_oid': 21, 'rectype': 'once', 'program_oid': 0, 'desc': ''}
23:06:06 T:2903505776 M:1365643264  NOTICE: EXCEPTION: : Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/scripts/myGBPVR/resources/src/gbpvr/home.py", line 155, in refreshOnInit
                                                self.renderRecent()
                                              File "/home/xbmc/.xbmc/scripts/myGBPVR/resources/src/gbpvr/home.py", line 187, in renderRecent
                                                listItem.setProperty('title', t['title'])
                                            TypeError: argument 1 must be unicode or str
23:06:25 T:3077564304 M:1365143552  NOTICE: Samba is idle. Closing the remaining connections
(END)

and from the server log:

Code:
2010-04-15 23:05:12.430    INFO    [4]    Using wmi for free space determination.....
2010-04-15 23:05:12.430    INFO    [4]    Using wmi for free space determination.....
2010-04-15 23:05:12.445    VERBOSE    [4]    RecordingFactory.loadSchedule()
2010-04-15 23:05:12.445    VERBOSE    [4]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2010-04-15 23:05:12.445    VERBOSE    [4]    getValue cached value: /settings/CheckForRenamedRecordings : true
2010-04-15 23:05:15.737    INFO    [4]    
2010-04-15 23:05:15.737    INFO    [4]    
2010-04-15 23:05:15.737    INFO    [4]    *********************
2010-04-15 23:05:15.737    INFO    [4]    * Validating Incomming Web Service
2010-04-15 23:05:15.737    INFO    [4]    *
2010-04-15 23:05:15.737    INFO    [4]    User Name = gbpvr
2010-04-15 23:05:15.737    INFO    [4]    User Password = gbpvr
2010-04-15 23:05:15.737    INFO    [4]    *
2010-04-15 23:05:15.737    INFO    [4]    *
2010-04-15 23:05:15.737    INFO    [4]    Checking credential timestamp....
2010-04-15 23:05:15.737    INFO    [4]    nowTime = 15/04/2010 22:05:15
2010-04-15 23:05:15.737    INFO    [4]    Credential time string = 15-04-2010 23:05:00
2010-04-15 23:05:15.737    INFO    [4]    Credential time converted = 15/04/2010 23:05:00
2010-04-15 23:05:15.737    INFO    [4]    Span time (seconds) = -45
2010-04-15 23:05:15.737    INFO    [4]    *
2010-04-15 23:05:15.737    INFO    [4]    *
2010-04-15 23:05:15.737    INFO    [4]    *********************
2010-04-15 23:05:15.737    INFO    [4]    
2010-04-15 23:05:15.737    INFO    [4]    
2010-04-15 23:05:18.514    INFO    [4]    
2010-04-15 23:05:18.514    INFO    [4]    
2010-04-15 23:05:18.514    INFO    [4]    *********************
2010-04-15 23:05:18.514    INFO    [4]    * Validating Incomming Web Service
2010-04-15 23:05:18.514    INFO    [4]    *
2010-04-15 23:05:18.514    INFO    [4]    User Name = gbpvr
2010-04-15 23:05:18.514    INFO    [4]    User Password = gbpvr
2010-04-15 23:05:18.514    INFO    [4]    *
2010-04-15 23:05:18.514    INFO    [4]    *
2010-04-15 23:05:18.514    INFO    [4]    Checking credential timestamp....
2010-04-15 23:05:18.514    INFO    [4]    nowTime = 15/04/2010 22:05:18
2010-04-15 23:05:18.514    INFO    [4]    Credential time string = 15-04-2010 23:06:00
2010-04-15 23:05:18.514    INFO    [4]    Credential time converted = 15/04/2010 23:06:00
2010-04-15 23:05:18.514    INFO    [4]    Span time (seconds) = -42
2010-04-15 23:05:18.514    INFO    [4]    *
2010-04-15 23:05:18.514    INFO    [4]    *
2010-04-15 23:05:18.514    INFO    [4]    *********************
2010-04-15 23:05:18.514    INFO    [4]    
2010-04-15 23:05:18.514    INFO    [4]    
2010-04-15 23:05:18.514    VERBOSE    [4]    RecordingFactory.loadSchedule()
2010-04-15 23:05:18.514    VERBOSE    [4]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2010-04-15 23:05:18.514    VERBOSE    [4]    getValue cached value: /settings/CheckForRenamedRecordings : true
2010-04-15 23:05:21.010    INFO    [4]    
2010-04-15 23:05:21.010    INFO    [4]    
2010-04-15 23:05:21.010    INFO    [4]    *********************
2010-04-15 23:05:21.010    INFO    [4]    * Validating Incomming Web Service
2010-04-15 23:05:21.010    INFO    [4]    *
2010-04-15 23:05:21.010    INFO    [4]    User Name = gbpvr
2010-04-15 23:05:21.010    INFO    [4]    User Password = gbpvr
2010-04-15 23:05:21.010    INFO    [4]    *
2010-04-15 23:05:21.010    INFO    [4]    *
2010-04-15 23:05:21.010    INFO    [4]    Checking credential timestamp....
2010-04-15 23:05:21.010    INFO    [4]    nowTime = 15/04/2010 22:05:21
2010-04-15 23:05:21.010    INFO    [4]    Credential time string = 15-04-2010 23:06:00
2010-04-15 23:05:21.010    INFO    [4]    Credential time converted = 15/04/2010 23:06:00
2010-04-15 23:05:21.010    INFO    [4]    Span time (seconds) = -39
2010-04-15 23:05:21.010    INFO    [4]    *
2010-04-15 23:05:21.010    INFO    [4]    *
2010-04-15 23:05:21.010    INFO    [4]    *********************
2010-04-15 23:05:21.010    INFO    [4]    
2010-04-15 23:05:21.010    INFO    [4]    
2010-04-15 23:05:21.025    VERBOSE    [4]    RecordingFactory.loadSchedule()
2010-04-15 23:05:21.025    VERBOSE    [4]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2010-04-15 23:05:21.025    VERBOSE    [4]    getValue cached value: /settings/CheckForRenamedRecordings : true
2010-04-15 23:05:21.025    VERBOSE    [4]    RecordingFactory.loadScheduleRecordingByOID()
2010-04-15 23:05:21.025    VERBOSE    [4]    RecordingFactory.loadScheduleRecordingByOID()
2010-04-15 23:05:39.465    INFO    [4]    In writing of file
2010-04-15 23:05:39.465    INFO    [4]    readcount = 21058
//Ton
Nukular
Offline

Junior Member

Posts: 6
Threads: 1
Joined: Apr 2010
#66
2010-04-16, 06:15 AM (This post was last modified: 2010-04-16, 06:22 AM by Nukular.)
Oh sorry Ton!

I have only the msi-file of your mygbpvr ... so no readme anymore ... and my desktop looks like after an huge bomb attac actually Wink
Well i got it to install Python 2.4 and those crypto thing ...
What should i say .... new error message ...

Code:
08:11:23 T:1868 M:1926852608  NOTICE: EXCEPTION: : Traceback (most recent call last):
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\gbpvr\home.py", line 151, in refreshOnInit
                                                self.statusData = self.gbpvr.GetGBPVRInfo(self.settings.GBPVR_USER, self.settings.GBPVR_PW)
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\GBPVR_Connect.py", line 134, in GetGBPVRInfo
                                                self.channels = self.getChannelList(userid, password)
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\GBPVR_Connect.py", line 156, in getChannelList
                                                ret_soap = client.service.getChannelListObject(soapheaders=authObj)
                                            WebFault: Server raised fault: 'Server was unable to process request. ---> Padding is invalid and cannot be removed.'

More detailed log:

Code:
08:18:38 T:1664 M:2013073408  NOTICE: --> AreYouThere() socket on port 7777 using ip=10.1.201.53
08:18:38 T:1664 M:2013073408  NOTICE:                   mac:00:1C:C4:1A:9E:0Ebroadcast: 255.255.0.0
08:18:38 T:1664 M:2013073408  NOTICE: This got: False / 00:1C:C4:1A:9E:0E
08:18:38 T:1664 M:2013061120  NOTICE: --> AreYouThere() returning: True
08:18:38 T:1664 M:2011082752   DEBUG: LoadLibraryA('ws2_32')
08:18:38 T:1664 M:2011082752   DEBUG: Win32DllLoader::Load(C:\Windows\system32\ws2_32.dll)
08:18:38 T:1664 M:2011086848   DEBUG: LoadLibrary('ws2_32.dll') returning: 08A540D0
08:18:39 T:1664 M:2011009024   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
08:18:39 T:1664 M:2011009024   DEBUG: LoadLibraryA('pyexpat.pyd')
08:18:39 T:1664 M:2011009024   DEBUG: Win32DllLoader::Load(special://xbmc/system/python/DLLs\pyexpat.pyd)
08:18:39 T:1664 M:2010996736   DEBUG: LoadLibraryA('python24.dll')
08:18:39 T:1664 M:2010996736   DEBUG: LoadLibrary('python24.dll') returning: 08617918
08:18:39 T:1664 M:2010996736   DEBUG: LoadLibraryA('MSVCR71.dll')
08:18:39 T:1664 M:2010996736   DEBUG: LoadLibrary('MSVCR71.dll') returning: 02EB81C8
08:18:39 T:1664 M:2010996736   DEBUG: LoadLibrary('pyexpat.pyd') returning: 08A54080
08:18:39 T:1664 M:2010357760   [B]DEBUG: msvcrt.dll incomplete function _fdopen(...) called[/B]
08:18:39 T:1664 M:2007613440   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
08:18:39 T:1664 M:2007613440   DEBUG: LoadLibraryA('AES.pyd')
08:18:39 T:1664 M:2007613440   DEBUG: Win32DllLoader::Load(C:\Users\witt\AppData\Roaming\XBMC\scripts\myGBPVR\resources\lib\Crypto\Cipher\AES.pyd)
08:18:39 T:1664 M:2007605248   DEBUG: LoadLibrary('AES.pyd') returning: 08A53E50
08:18:39 T:1664 M:2007588864  [B]NOTICE: No handlers could be found for logger "suds.client"[/B]
08:18:39 T:1664 M:2007404544  NOTICE: EXCEPTION: : Traceback (most recent call last):
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\gbpvr\home.py", line 151, in refreshOnInit
                                                self.statusData = self.gbpvr.GetGBPVRInfo(self.settings.GBPVR_USER, self.settings.GBPVR_PW)
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\GBPVR_Connect.py", line 134, in GetGBPVRInfo
                                                self.channels = self.getChannelList(userid, password)
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\GBPVR_Connect.py", line 156, in getChannelList
                                                ret_soap = client.service.getChannelListObject(soapheaders=authObj)
                                            WebFault: Server raised fault: 'Server was unable to process request. ---> Padding is invalid and cannot be removed.'

I've seen there is someone else who had that error but i havent seen any suggestions to fix that problem, so what can i do now?
arad85
Offline

Junior Member

Posts: 5
Threads: 0
Joined: Apr 2010
#67
2010-04-16, 07:43 AM
Ton Wrote:Hi,

Do you have a manual recording in there? I'm getting a recording with no title (I don't ever use manual recording, that's why I didn't code for that)...

If that's the case, I can probably provide a fix real quickly...

Could you check your recordings? It's this one:

End date: 2010-4-7 19:42
title: None
start: 2010-4-7 19:39
channel: BBC1 West
rectype: once

Yup - correct! I was testing GBPVR out. I'll leave it there for the moment to help with debug Smile
SomeOne
Offline

Junior Member

Posts: 4
Threads: 0
Joined: Aug 2007
#68
2010-04-16, 10:39 AM
Ton Wrote:Hey,

Did you check the section in the readme-file that explains the installation of the crypto module?
Code:
PyCrypto:
This is a framework for cryptographic codes under python.
It's used because the communication of userid's and passwords with EWA is encrypted.

for Windows:
You will need to install Python first, since the PyCrypto installer requires this.
I recommend installing Python 2.4.6 (since this is what XBMC is using).
Download Python from here: http://www.python.org/download/releases/2.4.6/

Next, download a binary distribution of PyCrypto (for python 2.4).

I found it here: http://www.voidspace.org.uk/python/modules.shtml (pycrypto-2.0.1.win32-py2.4.zip)

Run the installer and copy the PyCrypto directory from your Python installation:
C:\Python24\Lib\site-packages\Crypto
to this directory:
C:\Users\[your user]\Appdata\Roaming\XBMC\Scripts\resources\lib

Due to possible copyright and legal issues, I will not be providing this library in the public domain.

for Linux:
Get the package from your package-framework (for ubuntu, the package is called "python-crypto"), i.e. on
a XBMC-live CD, run "sudo pkg-get install python-crypto".

Then, copy the libraries from your python-shared directory to the script-directory...
I.e. on a XBMC-live CD, run the following:
"cp -Rp /usr/lib/python2.6/dist-packages/Crypto ~/.xbmc/scripts/myGBPVR/resources/lib/"
You need to end-up with a directory called: ..../myGBPVR/resources/lib/Crypto with some files and sub-directories....

Hi,
It now works.. It was me that did not place it under the myGBPVR directory but in the root of the scripts directory... My bad sorry!

Now I was in the process of setting up the 2XBMC part and there is no PostProcessing.bat file in my GBPVR directory.. Is it something that I need to create myself ?

I also tried to run the 2XBMC file on it's own and did not work. Says invalid stream

I run 2XBMC mpeg.file GBPVR folder that contains the recordings ?

Thanks again!
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#69
2010-04-16, 07:23 PM
Hey,

Just to verify:

- You have EWA version 83 installed
- You have defined a userid and password (no unicode characters in userid and/or password) both in myGBPVR and in EWA (trhough Config)
- EWA works correctly via the browser

If all is correct, could you please do the following:
1) Post a snippet of the EWA log-file, there may be something there....
2) Get a trace of the SOAP-calls going through the system (with Wireshark or another SOAP tracing tool)

If you could get me that info, I could see if I can help you...

Also, the "readme" file is in the zip-file that is part of the first post...

Nukular Wrote:Oh sorry Ton!

I have only the msi-file of your mygbpvr ... so no readme anymore ... and my desktop looks like after an huge bomb attac actually Wink
Well i got it to install Python 2.4 and those crypto thing ...
What should i say .... new error message ...

Code:
08:11:23 T:1868 M:1926852608  NOTICE: EXCEPTION: : Traceback (most recent call last):
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\gbpvr\home.py", line 151, in refreshOnInit
                                                self.statusData = self.gbpvr.GetGBPVRInfo(self.settings.GBPVR_USER, self.settings.GBPVR_PW)
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\GBPVR_Connect.py", line 134, in GetGBPVRInfo
                                                self.channels = self.getChannelList(userid, password)
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\GBPVR_Connect.py", line 156, in getChannelList
                                                ret_soap = client.service.getChannelListObject(soapheaders=authObj)
                                            WebFault: Server raised fault: 'Server was unable to process request. ---> Padding is invalid and cannot be removed.'

More detailed log:

Code:
08:18:38 T:1664 M:2013073408  NOTICE: --> AreYouThere() socket on port 7777 using ip=10.1.201.53
08:18:38 T:1664 M:2013073408  NOTICE:                   mac:00:1C:C4:1A:9E:0Ebroadcast: 255.255.0.0
08:18:38 T:1664 M:2013073408  NOTICE: This got: False / 00:1C:C4:1A:9E:0E
08:18:38 T:1664 M:2013061120  NOTICE: --> AreYouThere() returning: True
08:18:38 T:1664 M:2011082752   DEBUG: LoadLibraryA('ws2_32')
08:18:38 T:1664 M:2011082752   DEBUG: Win32DllLoader::Load(C:\Windows\system32\ws2_32.dll)
08:18:38 T:1664 M:2011086848   DEBUG: LoadLibrary('ws2_32.dll') returning: 08A540D0
08:18:39 T:1664 M:2011009024   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
08:18:39 T:1664 M:2011009024   DEBUG: LoadLibraryA('pyexpat.pyd')
08:18:39 T:1664 M:2011009024   DEBUG: Win32DllLoader::Load(special://xbmc/system/python/DLLs\pyexpat.pyd)
08:18:39 T:1664 M:2010996736   DEBUG: LoadLibraryA('python24.dll')
08:18:39 T:1664 M:2010996736   DEBUG: LoadLibrary('python24.dll') returning: 08617918
08:18:39 T:1664 M:2010996736   DEBUG: LoadLibraryA('MSVCR71.dll')
08:18:39 T:1664 M:2010996736   DEBUG: LoadLibrary('MSVCR71.dll') returning: 02EB81C8
08:18:39 T:1664 M:2010996736   DEBUG: LoadLibrary('pyexpat.pyd') returning: 08A54080
08:18:39 T:1664 M:2010357760   [B]DEBUG: msvcrt.dll incomplete function _fdopen(...) called[/B]
08:18:39 T:1664 M:2007613440   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
08:18:39 T:1664 M:2007613440   DEBUG: LoadLibraryA('AES.pyd')
08:18:39 T:1664 M:2007613440   DEBUG: Win32DllLoader::Load(C:\Users\witt\AppData\Roaming\XBMC\scripts\myGBPVR\resources\lib\Crypto\Cipher\AES.pyd)
08:18:39 T:1664 M:2007605248   DEBUG: LoadLibrary('AES.pyd') returning: 08A53E50
08:18:39 T:1664 M:2007588864  [B]NOTICE: No handlers could be found for logger "suds.client"[/B]
08:18:39 T:1664 M:2007404544  NOTICE: EXCEPTION: : Traceback (most recent call last):
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\gbpvr\home.py", line 151, in refreshOnInit
                                                self.statusData = self.gbpvr.GetGBPVRInfo(self.settings.GBPVR_USER, self.settings.GBPVR_PW)
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\GBPVR_Connect.py", line 134, in GetGBPVRInfo
                                                self.channels = self.getChannelList(userid, password)
                                              File "C:\Users\nukular\AppData\Roaming\XBMC\scripts\myGBPVR\resources\src\GBPVR_Connect.py", line 156, in getChannelList
                                                ret_soap = client.service.getChannelListObject(soapheaders=authObj)
                                            WebFault: Server raised fault: 'Server was unable to process request. ---> Padding is invalid and cannot be removed.'

I've seen there is someone else who had that error but i havent seen any suggestions to fix that problem, so what can i do now?
//Ton
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#70
2010-04-16, 07:26 PM
Hi,

Yes, you need to create PostProcessing.bat yourself, if it isn't there yet...

With regards to 2XBMC, it reads the recording meta-data from the file's alternate stream. This is only available on a NTFS file-system, unsure if that's what you're using. I think I saw a posting of an update of the tool that reads the information from the database. If you don't have NTFS, you could give that one a try.....

So, please give the other tool a try and see if that fixes the issues....
SomeOne Wrote:Hi,
It now works.. It was me that did not place it under the myGBPVR directory but in the root of the scripts directory... My bad sorry!

Now I was in the process of setting up the 2XBMC part and there is no PostProcessing.bat file in my GBPVR directory.. Is it something that I need to create myself ?

I also tried to run the 2XBMC file on it's own and did not work. Says invalid stream

I run 2XBMC mpeg.file GBPVR folder that contains the recordings ?

Thanks again!
//Ton
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (17): « Previous 1 … 5 6 7 8 9 … 17 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  External tool: Transfer Season Record schedules from GBPVR to NPVR kendrak24 37 21,431 2013-04-11, 05:58 AM
Last Post: kendrak24
  Translations for nPVR and GBPVR MixMan 19 8,296 2011-08-25, 07:32 PM
Last Post: sub
  N3XT Rev 001.6 with GBPVR support psicotron3 0 2,008 2009-08-30, 08:57 PM
Last Post: psicotron3
  Showname - Rename utility for GBPVR recordings Anthony 0 1,503 2009-03-05, 05:40 PM
Last Post: Anthony
  GBPVR install on WINE/Ubuntu Gutsy fhmanas 28 16,073 2009-02-03, 12:53 PM
Last Post: fhmanas
  GBPVR Wellington Xmas drinks psycik 44 11,259 2008-12-08, 05:44 AM
Last Post: skippy_nz
  Possible infection found on GBPVR site? suddste 40 13,269 2008-10-21, 01:06 AM
Last Post: sub
  GBPVR LCD Plugin for LCDSmartie fooman1 146 69,170 2008-07-03, 08:04 PM
Last Post: prada115
  GameZone, Now much more than an Emulator frontend idkpmiller 0 1,472 2008-06-08, 05:56 AM
Last Post: idkpmiller
  PSP Streaming from GBPVR psycik 11 4,867 2008-06-03, 11:58 AM
Last Post: fuzzweed

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode