python show "Could not import runpy module"

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • python show "Could not import runpy module"

      Hi, when i want to compile with command:

      Shell-Script

      1. python -O -m compileall ./
      I get an answer:

      Quellcode

      1. Could not import runpy module
      How to fix it?
      It used to work fine on OpenPLi.
    • From where do you want to compile what exactly?

      runpy is in the standard python2.7 module place:

      ls -l /usr/lib/python2.7/runpy.py*
      -rw-r--r-- 1 root root 10698 17. Nov 2016 /usr/lib/python2.7/runpy.py
      -rw-r--r-- 1 root root 8365 17. Nov 2016 /usr/lib/python2.7/runpy.pyo
      Diskutiere nie mit einem Idioten. Er zieht dich auf sein Niveau runter und schlägt dich mit seiner Erfahrung.
    • Shell-Script

      1. root@vuduo4kse:~# ls -l /usr/lib/python2.7/runpy.py*
      2. -rw-r--r-- 1 root root 10698 Oct 18 20:28 /usr/lib/python2.7/runpy.py
      3. -rw-r--r-- 1 root root 8365 Oct 18 20:28 /usr/lib/python2.7/runpy.pyo
      Trying to compile EPGimport.
      Normally I download via Vu+ and install.
      It works.

      I am changing the xmltvconverter.py file
      Changes are irrelevant, e.g. just adds "print"

      Next ssh

      Shell-Script

      1. cd /usr/lib/enigma2/python/Plugins/Extensions/EPGImport/
      2. python -O -m compileall ./
      VTI 15.x
    • Should work and does here without complaint when compiling OpenWebif. I can only imagine an installation or configuration problem on your side - I'm out therefore.
      Diskutiere nie mit einem Idioten. Er zieht dich auf sein Niveau runter und schlägt dich mit seiner Erfahrung.
    • As we can't look at your installation, and our Magic Balls dont't work as usual, I have no idea.

      I have one question left: why do you want to compile the module at all by hand and don't let Enigma2 do it for you after installation?
      Diskutiere nie mit einem Idioten. Er zieht dich auf sein Niveau runter und schlägt dich mit seiner Erfahrung.

      Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von rdamas ()

    • I need to add something to xmltvconverter.py
      From December 2022, EPG for Polish channels does not work. Source EPGs don't update and adding new sources was simple. Only new sources have more data not showing up. It is enough to add them for them to be displayed.

      I used to modify the list of movies in OpenPli and I had no problems like this time :(. After all, it's only a few minutes of writing code.