Results 1 to 6 of 6

Thread: KODI - extern "Python": function Cryptography_rand_status() called.... fills log until system crash

  1. #1

    Default KODI - extern "Python": function Cryptography_rand_status() called.... fills log until system crash

    Hi,
    I noticed that after updating my OS to 42.2 KODI seems to not play videos anymore. On playing any video the UI freezes and the terminal shows thousands of error lines that just fill the logs until system crash, unless I kill the process fast.

    The error is somthing related to Python crypto

    Code:
    extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
    extern "Python": function Cryptography_rand_status() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
    extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
    extern "Python": function Cryptography_rand_status() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
    extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
    extern "Python": function Cryptography_rand_status() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
    extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
    extern "Python": function Cryptography_rand_status() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
    extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
    extern "Python": function Cryptography_rand_status() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
    
    
    OpenSUSE Leap 42.2 x64 KDE

  2. #2
    Join Date
    Feb 2016
    Location
    Berlin
    Posts
    357

    Default Re: KODI - extern "Python": function Cryptography_rand_status() called.... fills log until system cr

    at a guess kodi dependencies could have switched to opensuse -> try reinstalling from packman?

  3. #3

    Default Re: KODI - extern "Python": function Cryptography_rand_status() called.... fills log until system cr

    Quote Originally Posted by ndc33 View Post
    at a guess kodi dependencies could have switched to opensuse -> try reinstalling from packman?
    Did that, still, the same issue. I read that this is related to some python-cryptography package.
    OpenSUSE Leap 42.2 x64 KDE

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,927
    Blog Entries
    2

    Default Re: KODI - extern "Python": function Cryptography_rand_status() called.... fills log until system cr

    Try adding the python repo (It'll have more recent versions than what is in the OSS) and update your system. The following adds the regular Python (2.x) repo, there is a different repo for Python3.
    Code:
    zypper ar http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_Leap_42.2/ Python_42.2
    Follow the above command with an update command to update all the Python packages on your system
    Code:
    zypper up
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5

    Default Re: KODI - extern "Python": function Cryptography_rand_status() called.... fills log until system cr

    The bug is in PyOpenSSL, it was introduced and then fixed in the middle of last year, unfortunately the version in 42.2 comes from the brief time it was broken.

    I reported the bug about a month ago:
    https://bugzilla.opensuse.org/show_bug.cgi?id=1021578
    there hasn't been much progress so far, but at least the bug has been assigned someone.

  6. #6

    Default Re: KODI - extern "Python": function Cryptography_rand_status() called.... fills log until system cr

    Quote Originally Posted by tsu2 View Post
    Try adding the python repo (It'll have more recent versions than what is in the OSS) and update your system. The following adds the regular Python (2.x) repo, there is a different repo for Python3.
    Code:
    zypper ar http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_Leap_42.2/ Python_42.2
    Follow the above command with an update command to update all the Python packages on your system
    Code:
    zypper up
    TSU
    That did it!

    I went and added that repo, then changed system packages to it, ran zypper ref and zypper up and now Kodi works without errors.

    Thanks a lot!
    OpenSUSE Leap 42.2 x64 KDE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •