MLD-5.x > Development
5.4 Testing: Python-Cryptodome/x oder funktionierendes Python-PIP
joachim-h:
(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: ---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
--- End code ---
clausmuus:
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.
joachim-h:
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: ---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/
--- End code ---
joachim-h:
--- Quote from: clausmuus on January 06, 2018, 00:02:58 ---Die Beiden von Dir gewünschten Pakete gibt es leider nicht als Debian Paket.
--- End quote ---
Schade, denn unter Ubuntu gibt es sie
--- Code: ---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)
--- End code ---
clausmuus:
ne, pip baut nicht grundsätzlich die Pakete. Das ist eher die Ausnahme. Nur wenn Plattformabhängige Sachen benötigt werden wird kompiliert.
Navigation
[0] Message Index
[#] Next page
Go to full version