Libretranslate lässt sich nicht hier installieren auf PI3b+ mit Rasbian 64bit

Heute ist Stammtischzeit:
Jeden Donnerstag 20:30 Uhr hier im Chat.
Wer Lust hat, kann sich gerne beteiligen. ;)
  • Hallo Zusammen,


    ich mach hier ein neues Thema auf zu einem bereits bekannten von mi eingestellten gesamt Thema, in der Hoffung zusammen ein Schritt für Schritt Fehlerfindung zusammen durchzuführen.

    Es geht um die Installation von Libretranslate in Python auf meinen PI3+

    Da ingesamt mehrere Fehler da dind möchte ich es schritt für schritt durchgehen:

    Erster Fehler :

    Dieser kommt nach dem Download von PyICU (PyICU-2-7-tar.gz)

    ERROR: Command errored out with exit status 1:

    command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wgwe4l5e/pyicu_0a07afa112694c32bdb849b6e04dc418/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wgwe4l5e/pyicu_0a07afa112694c32bdb849b6e04dc418/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-cocu1dsr

    cwd: /tmp/pip-install-wgwe4l5e/pyicu_0a07afa112694c32bdb849b6e04dc418/

    Complete output (53 lines):

    Package icu-i18n was not found in the pkg-config search path.

    Perhaps you should add the directory containing `icu-i18n.pc'

    to the PKG_CONFIG_PATH environment variable

    No package 'icu-i18n' found

    Traceback (most recent call last):

    File "/tmp/pip-install-wgwe4l5e/pyicu_0a07afa112694c32bdb849b6e04dc418/setup.py", line 63, in <module>

    ICU_VERSION = os.environ['ICU_VERSION']

    File "/usr/lib/python3.9/os.py", line 679, in __getitem__

    raise KeyError(key) from None

    KeyError: 'ICU_VERSION'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

    File "/tmp/pip-install-wgwe4l5e/pyicu_0a07afa112694c32bdb849b6e04dc418/setup.py", line 66, in <module>

    ICU_VERSION = check_output(('icu-config', '--version')).strip()

    File "/tmp/pip-install-wgwe4l5e/pyicu_0a07afa112694c32bdb849b6e04dc418/setup.py", line 19, in check_output

    return subprocess_check_output(popenargs)

    File "/usr/lib/python3.9/subprocess.py", line 424, in check_output

    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,

    File "/usr/lib/python3.9/subprocess.py", line 505, in run

    with Popen(*popenargs, **kwargs) as process:

    File "/usr/lib/python3.9/subprocess.py", line 951, in __init__

    self._execute_child(args, executable, preexec_fn, close_fds,

    File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child

    raise child_exception_type(errno_num, err_msg, err_filename)

    FileNotFoundError: [Errno 2] No such file or directory: 'icu-config'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

    File "/tmp/pip-install-wgwe4l5e/pyicu_0a07afa112694c32bdb849b6e04dc418/setup.py", line 69, in <module>

    ICU_VERSION = check_output(('pkg-config', '--modversion', 'icu-i18n')).strip()

    File "/tmp/pip-install-wgwe4l5e/pyicu_0a07afa112694c32bdb849b6e04dc418/setup.py", line 19, in check_output

    return subprocess_check_output(popenargs)

    File "/usr/lib/python3.9/subprocess.py", line 424, in check_output

    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,

    File "/usr/lib/python3.9/subprocess.py", line 528, in run

    raise CalledProcessError(retcode, process.args,

    subprocess.CalledProcessError: Command '('pkg-config', '--modversion', 'icu-i18n')' returned non-zero exit status 1.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

    File "<string>", line 1, in <module>

    File "/tmp/pip-install-wgwe4l5e/pyicu_0a07afa112694c32bdb849b6e04dc418/setup.py", line 71, in <module>

    raise RuntimeError('''

    RuntimeError:

    Please install pkg-config on your system or set the ICU_VERSION environment

    variable to the version of ICU you have installed.

    (running 'icu-config --version')

    (running 'pkg-config --modversion icu-i18n')

    ----------------------------------------

    WARNING: Discarding https://files.pythonhosted.org/packages/3c/67/c5414fbeeb65d627ea15928b821a39ad42e9ff355cb3b63898b8020f503c/PyICU-2.7.tar.gz#sha256=56a0aae5f69e1191b0f466bde29f72374caadc8fa966a44ec07429afe5f68cd1 (from https://pypi.org/simple/pyicu/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

    apt-get Install pkg-config hab ich ausgeführt, aber da kam die meldung da es bereits installiert ist

    Dann hab ich noch angepasst: export PATH=/usr/lib/python3.9/:$PATH

    beides brachte kein Erfolg


    und

    > export PATH=/usr/lib/python3.9/:$PATH

    und ein manuelles suchen nach dem Folder brachte auch kein erfolg

    Hat vieleicht jemand eine Idee ?

  • Libretranslate lässt sich nicht hier installieren auf PI3b+ mit Rasbian 64bit? Schau mal ob du hier fündig wirst!

  • Moin MCSITK,

    du hast was wo heruntergeladen? Link! Und welche Kommandos hast du abgesetzt?

    73 de Bernd

    Achja, die Lite-Version oder Desktop vom 64er OS

    Ich habe KEINE Ahnung und davon GANZ VIEL!!
    Bei einer Lösung freue ich mich über ein ":thumbup:"
    Vielleicht trifft man sich in der RPi-Plauderecke.
    Linux ist zum Lernen da, je mehr man lernt um so besser versteht man es.

  • Moin MCSITK,

    Und welche Kommandos hast du abgesetzt?

    Du hast dir das Image installiert, aber was hast du dann gemacht?

    Hast du dir schonmal diese Seite: https://pypi.org/project/PyICU/ angesehen?

    73 de Bernd

    Ich habe KEINE Ahnung und davon GANZ VIEL!!
    Bei einer Lösung freue ich mich über ein ":thumbup:"
    Vielleicht trifft man sich in der RPi-Plauderecke.
    Linux ist zum Lernen da, je mehr man lernt um so besser versteht man es.

  • Moin MCSITK,

    Hat vieleicht jemand eine Idee ?

    Nun ist da einer der eine Idee hat und was ist?

    Der Hilfesuchende will nicht antworten, obwohl er im Forum aktiv ist.

    Dann sage ich mal: Denn nicht!

    Servus!!

    Ich habe KEINE Ahnung und davon GANZ VIEL!!
    Bei einer Lösung freue ich mich über ein ":thumbup:"
    Vielleicht trifft man sich in der RPi-Plauderecke.
    Linux ist zum Lernen da, je mehr man lernt um so besser versteht man es.

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!