nashve / mythbox

Automatically exported from code.google.com/p/mythbox
GNU General Public License v2.0
0 stars 1 forks source link

ValueError: null byte in argument for int() - MythBox does not connect to Mythtv Backend #201

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start MythBox
2. Set up Myth Backend settings (I have verified that the u/p is correct by 
putting in an incorrect u/p and getting a login failed message)
3. Test Settings

What is the expected output? What do you see instead?

I am not sure what the expected output is, as it has never worked - I am hoping 
for some message telling me that it is working.  

What I see instead is: 
   ValueError: null byte in argument for int()

What version of the product are you using? On what operating system?
I am using the most current version of MythBox, I assume, as my XBMC keeps it 
up to date.  I am running this on a disk-installed XMBC Live.

Please provide any additional information below.

I have attached the pertinent part of the xbmc.log file.  The error seems to be 
that this section of code is returning a null value:

    def _readMsg(self, s):
        retMsg = self.recv_all(s, 8)
        #wirelog.debug("REPLY: %s"%retMsg)
        reply = u''
        if retMsg.upper() == u'OK':
            return u'OK'
        #wirelog.debug('retMsg: [%d] %s' % (len(retMsg), safe_str(retMsg)))

        n = 0
        if len(retMsg) > 0:
            n = int(retMsg)

Original issue reported on code.google.com by themadwi...@gmail.com on 21 Feb 2012 at 4:33

Attachments:

GoogleCodeExporter commented 9 years ago
More Information:
XBMC Version: Dharma
MythBox version: 1.0.4

Original comment by themadwi...@gmail.com on 21 Feb 2012 at 4:43

GoogleCodeExporter commented 9 years ago
MythTV backend version?

Original comment by semir.pa...@gmail.com on 21 Feb 2012 at 5:50

GoogleCodeExporter commented 9 years ago
The newest version, 0.24.2, I think.  It just recently updated via the 
debian-multimedia repository, I believe.

Original comment by themadwi...@gmail.com on 22 Feb 2012 at 5:23

GoogleCodeExporter commented 9 years ago
- Uncomment the two wirelog.debug(..) statements 
- Setting line 92 (or thereabouts) in mythbox_log.ini to DEBUG 
- Run again to generate another log file (verify you see  the additional log 
data) and attach the new log

Original comment by semir.pa...@gmail.com on 24 Feb 2012 at 7:31

GoogleCodeExporter commented 9 years ago
Here is the new log.

Original comment by themadwi...@gmail.com on 28 Feb 2012 at 2:31

Attachments:

GoogleCodeExporter commented 9 years ago
So, it turns out there was an issue with the DB schema in MythTV.  I 
reinstalled from scratch and MythBox connects up just fine.

Sorry to waste your time.

Original comment by themadwi...@gmail.com on 2 Apr 2012 at 1:32