[1] MLD-5.x / Development / 5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
 

Offline joachim-h

  • Adv. Member
  • ***
  • Posts: 100
    • View Profile
(Ausgelagert aus https://www.minidvblinux.de/forum/index.php/topic,8802)

Um das Inpustream-Adaptive-Addon für Kodi-beta (https://www.minidvblinux.de/forum/index.php/topic,8853.msg68234/topicseen.html#new) zum laufen zu bekommen benötigt man entweder ein funktionierendes Python-PIP-Modul um zwei Pakete (siehe unten) nachinstallieren zu können oder bessern noch direkt zwei Python-Pakete im Repo (Python-Cryptodome und Python-Cryptodomex).

GitHub: https://github.com/Legrandin/pycryptodome

Leider quittiert das Python-PIP-Modul den Start nur mit einer Fehlermeldung:
Code: [Select]
MLD> pip
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 21, in <module>
    from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
ImportError: No module named requests.packages.urllib3.exceptions
« Last Edit: January 05, 2018, 22:50:27 by joachim-h »

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20163
    • View Profile
    • ClausMuus.de
5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
« Reply #1 on: January 06, 2018, 00:02:58 »
Ich glaube den Fehler im python-pip Paket gefunden zu haben. Bitte teste das in 10 Minuten noch mal.
Die Beiden von Dir gewünschten Pakete gibt es leider nicht als Debian Paket.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline joachim-h

  • Adv. Member
  • ***
  • Posts: 100
    • View Profile
5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
« Reply #2 on: January 06, 2018, 13:58:36 »
Klasse, PIP funktioniert......so weit.

Leider bricht es mit einer Fehlermeldung ab, die vorhersehbar gewesen wäre, wenn ich nachgedacht hätte, denn PIP macht ja auch nichts anderes, als das Paket auf dem System zu bauen:
Code: [Select]
root@MLD:~# pip install pycryptodome
Collecting pycryptodome
  Using cached pycryptodome-3.4.7.tar.gz
Building wheels for collected packages: pycryptodome
  Running setup.py bdist_wheel for pycryptodome ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-AmfWNY/pycryptodome/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpKeXM6Npip-wheel- --python-tag cp27:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help
 
  error: invalid command 'bdist_wheel'
 
  ----------------------------------------
  Failed building wheel for pycryptodome
  Running setup.py clean for pycryptodome
Failed to build pycryptodome
Installing collected packages: pycryptodome
  Running setup.py install for pycryptodome ... error

(...)

   unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
   
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-AmfWNY/pycryptodome/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-RpwAwk-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-AmfWNY/pycryptodome/

Offline joachim-h

  • Adv. Member
  • ***
  • Posts: 100
    • View Profile
5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
« Reply #3 on: January 06, 2018, 14:01:50 »
Die Beiden von Dir gewünschten Pakete gibt es leider nicht als Debian Paket.

Schade, denn unter Ubuntu gibt es sie
Code: [Select]
apt search cryptodome
Sortierung... Fertig
Volltextsuche... Fertig
python-cryptodome/xenial 3.4.5-3~xenial amd64
  PyCryptodome is a self-contained Python package of low-level cryptographic primitives

python-cryptodome-doc/xenial,xenial 3.4.5-3~xenial all
  cryptographic algorithms and protocols for Python (documentation)

python-cryptodomex/xenial 3.4.3-1~webupd8~xenial8 amd64
  cryptographic algorithms and protocols for Python 2

python-cryptodomex-dbg/xenial 3.4.3-1~webupd8~xenial8 amd64
  cryptographic algorithms and protocols for Python (debug extension)

python3-cryptodomex/xenial 3.4.3-1~webupd8~xenial8 amd64
  cryptographic algorithms and protocols for Python 3

python3-cryptodomex-dbg/xenial 3.4.3-1~webupd8~xenial8 amd64
  cryptographic algorithms and protocols for Python 3 (debug extension)

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20163
    • View Profile
    • ClausMuus.de
5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
« Reply #4 on: January 06, 2018, 17:28:25 »
ne, pip baut nicht grundsätzlich die Pakete. Das ist eher die Ausnahme. Nur wenn Plattformabhängige Sachen benötigt werden wird kompiliert.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline joachim-h

  • Adv. Member
  • ***
  • Posts: 100
    • View Profile
5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
« Reply #5 on: January 06, 2018, 22:40:05 »
Hi Claus, siehe dazu bitte auch meinen Kommentar im Thread zu Inputstream-Adaptive (https://www.minidvblinux.de/forum/index.php/topic,8853.msg68269.html#msg68269)

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20163
    • View Profile
    • ClausMuus.de
5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
« Reply #6 on: January 07, 2018, 00:19:19 »
Ich habe jetzt zum python-kodi Paket das pycryptodome hinzugefügt. Bitte teste ob das weiterhilft.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline joachim-h

  • Adv. Member
  • ***
  • Posts: 100
    • View Profile
5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
« Reply #7 on: January 07, 2018, 15:44:50 »
Ich sehe bisher noch kein Update für python-kodi und der einzige Test, den ich ohne das Inputstream-Adaptive-Addon machen könnte ist ein Modultest von Python. :-)

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20163
    • View Profile
    • ClausMuus.de
5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
« Reply #8 on: January 07, 2018, 15:54:56 »
Das Paket hat noch keine neue Versionsnummer bekommen, und das Update gibt's nur für unstable.
Du musst also (falls noch nicht geschehen) im Setup auf unstable wechseln, und das dann so updaten:
Code: [Select]
apt update
apt install python-kodi --reinstall

Bei dem Inputstream-Adaptive-Addon war mir noch nicht klar, ob das aus den kodi online Addon Quellen kommt, oder von uns extra erstellt werden muss. In der Beschreibung des Addons steht ja, das das bei allen kodi installationen mit dabei sei...
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline joachim-h

  • Adv. Member
  • ***
  • Posts: 100
    • View Profile
5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
« Reply #9 on: January 08, 2018, 00:13:58 »
Der Python Modultest mit "python -m Cryptodome.SelfTest" sieht OK aus. Auf Ubuntu braucht man auch immer och das Paket Cryptodomex (siehe die Dokumentations auf https://github.com/Legrandin/pycryptodome) aber ob das läuft könnte ich erst mit besagtem Addon testen.

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20163
    • View Profile
    • ClausMuus.de
5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
« Reply #10 on: January 08, 2018, 00:31:17 »
Das zweite Paket gibt es für Debian nicht.
Wann ich oder ein anderer Entwickler das Addon baut kann ich aber noch nicht sagen.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

[1] MLD-5.x / Development / 5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.