xbianonpi / xbian

XBMC on Raspberry Pi, Bleeding Edge
https://xbian.org
GNU General Public License v3.0
294 stars 46 forks source link

Raspberry PI 3B with the latest XBian - Kodi Logfile Uploader plugin error. #905

Closed zalinek closed 2 years ago

zalinek commented 2 years ago

Raspberry PI 3B with the latest XBian from Kodi 19.2 - shows Kodi Logfile Uploader plugin error when trying to upload (when trying to generate "pastebin" link). The logfile preview works fine, but the upload returns an error with the Kodi Logfile Uploader plugin (plugin from the Kodi system repository). I read in the "kodi.log" file - Phyton script error? I attach my current "kodi.log" file to the message. Thank you in advance for your help and best regards.

zalinek commented 2 years ago

Sorry - I forgot to attach my "kodi.log" file to the message kodi.log

mkreisl commented 2 years ago

Sorry, but this is a coding error within the addon. has nothing to do with XBian as I think

zalinek commented 2 years ago

So I have to wait for a possible fix of the defective add-on? Thank you for the information.

mkreisl commented 2 years ago

I think the developers will have to be told that. I tried this on my notebook with an old linux. it works (python 3.6, we have now 3.9).

If I disarm the corresponding program line, it works but no QR-code is displayed. Always these useless gimmicks!

 - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: 'array.array' object has no attribute 'tostring'
Traceback (most recent call last):
  File "/home/xbian/.kodi/addons/script.kodi.loguploader/default.py", line 5, in <module>
    loguploader.Main()
  File "/home/xbian/.kodi/addons/script.kodi.loguploader/lib/loguploader.py", line 95, in __init__
    self.showResult(LANGUAGE(32006) % (name, data), data)
  File "/home/xbian/.kodi/addons/script.kodi.loguploader/lib/loguploader.py", line 193, in showResult
    qrIMG.png(imagefile, scale=10)
  File "/home/xbian/.kodi/addons/script.module.pyqrcode/lib/pyqrcode/__init__.py", line 468, in png
    builder._png(self.code, self.version, file, scale,
  File "/home/xbian/.kodi/addons/script.module.pyqrcode/lib/pyqrcode/builder.py", line 1391, in _png
    w.write(f, code_rows)
  File "/home/xbian/.kodi/addons/script.module.pyqrcode/lib/pyqrcode/png.py", line 620, in write
    nrows = self.write_passes(outfile, rows)
  File "/home/xbian/.kodi/addons/script.module.pyqrcode/lib/pyqrcode/png.py", line 789, in write_passes
    compressed = compressor.compress(tostring(data))
  File "/home/xbian/.kodi/addons/script.module.pyqrcode/lib/pyqrcode/png.py", line 197, in tostring
    return row.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
-->End of Python script error report<--
mkreisl commented 2 years ago

I have still found an XBian Buster installation with me

There the addon works, so it's definitely the Bullseye / Python

zalinek commented 2 years ago

I also think Bullseye is the cause of the problems. At the beginning of my fun with XBian and Kodi, when I installed an older version of XBian, this add-on worked and the wi-fi also worked. However, widevine was not working properly and I had to upgrade to Bullseye. After I installed Bullseye, the widevine works fine, You helped me solve the wi-fi problem (by uninstalling the damaged firmware package-brcm80211), but now the Kodi Logfile Uploader addon is not working properly ...

mkreisl commented 2 years ago

Yes, something is wrong with the pythpn 3.9. I had to make a small adjustment to the XBian-Config GUI so that it worked.

Anyway I opened an issue on the Gitlab project page yesterday (https://gitlab.com/ronie/script.kodi.loguploader/-/issues/1). Let's see what will come out of it.

zalinek commented 2 years ago

Thank you, I have already read about the problem on the Gitlab project website and I have a question: where to download the correct png.py file and how to replace it ?

mkreisl commented 2 years ago

Better wait until the PR is committed. This is easier for you

zalinek commented 2 years ago

OK. that is, I am waiting for an official fix - an update in XBian thats right ?

mkreisl commented 2 years ago

No. It will be an Kodi Addon update. Like I said, this has nothing to do with XBian

zalinek commented 2 years ago

Got it, so I'm waiting for the Kodi addon to be updated. Probably it will be on the occasion of the next new version of Kodi 19.3.

mkreisl commented 2 years ago

@zalinek: FYI: The pyQRCode addon is now available for update. After updating Kodi Logfile Uploader should work again