pycparser error prevents start of plugin
See original GitHub issueBug report
Your Environment
- Netflix add-on version: 0.15.2
- Platform: Linux x86 64-bit
- Kodi 18.4 Git:20190910 compiled 2019-09-10 by GCC 9.2.0
- Gentoo-Linux ~amd64
- Kernel: Linux x86 64-bit version 5.3.0-gentoo
- FFmpeg version/source: 4.2.1
Used Operating system:
- [X ] Linux
Describe the bug
Plugin does not start (and cannot be configured: account-data cannot be typed in anywhere) There is an error-msg on the KODI-gui: “Netflix-Plugin Error” More details in kodi.log
Expected behavior
plugin should start
Actual behavior
Error - cannot be started
Steps to reproduce the behavior
run KODI with activated plugin
Debug log
there are 100+ errors like this one:
ERROR: WARNING: /usr/lib64/python2.7/site-packages/pycparser/c_parser.py:1688: No documentation string specified in function 'p_postfix_expression_4' (ignored)
and after the last one:
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'pycparser.ply.yacc.YaccError'>
Error Contents: Unable to build parser
Traceback (most recent call last):
File "/home/ice/.kodi/addons/plugin.video.netflix/service.py", line 23, in <module>
full log: http://dpaste.com/1Y8WG69 (expired)
full debug log: (expired)
Additional context or screenshots (if appropriate)
KODI runs with python2.7 in gentoo. I had to copy the crytodomex-files in the kodi-running user’s homedir from python3.6 to python2.7 or there would be an import error of module Crypto.Random.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9
Top GitHub Comments
It runs now. The problem i faced was an old bug in (gentoo’s versions of) pycparser-2.17 to -2.19. I installed pycparser-2.14 and the plugin runs now. (I had already wondered what kind of optimizations GCC and LD might apply to python-programs which are basically textfiles.) I like this plugin! Very nice work. Thank Youi
Thanks @pete-dawgg Downgrading to pycparser-2.14, solved this issue for me also.