Pomoc pip3 install -r

_Floyd

Master+ Architect
Q's Excellence
6 Luty 2011
1 954
246
133
37
Warszawa/Żyrardów
www.wladcypolabitwy.pl
QNAP
TS-x53A
Ethernet
802.11ac (Wi-Fi 5)
Hej,

Mam problem z instrukcją pip3 install -r

Niestety mimo zainstalowanego Pythona:
upload_2020-1-31_14-48-9.png


Podczas wykonania operacji:
upload_2020-1-31_14-48-38.png
 
@prozak64 dziekuje spróbuję.
@pigers niestety nie wiem o czym do mnie mówisz .

Pytanie czy potrzebuje jakiegoś Entware?

Probuje zainstalować to:
Taxel/PlexTraktSync

Setup

To setup this on your own machine, first clone or download this repo.

pip3 install -r requirements.txt should install the required Python packages.

After that, rename the .env_example file to .env. The data you have to put into this file will be printed out by python3 get_env_data.py, so execute this script and follow the instructions. To connect to Trakt you need to create a new API app: Visit Sign in to Trakt.tv - Trakt.tv, give it a meaningful name and enter urn:ietf:wg:eek:auth:2.0:eek:obas the redirect url. You can leave Javascript origins and the checkboxes blank.

After that you're done. run python3 main.py. You can take a look at the progress in the last_update.logfile which will be created.

Personally, I run this script in a cronjob every two hours. On Mac this worked by adding the line

0 */2 * * * cd ~/path/to/this/repo/ && ./plex_trakt_sync.sh

to the cronjobs after typing crontab -e in the terminal.
 
w optware masz wszytko :

25054.png

Zainstalowałem Optware (dokładnie z tego linku: Qnapclub Store: Entware). Niestety nadal nie działa pip3. przy próbie wykonania polecenia z instrukcji:
pip3 install -r requirements.txt should install the required Python packages.

Tzn.:
[~] # pip3 install /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt -sh: pip3: command not found
[~] #

Podpowiesz mi proszę jak mam to napisać by wykonać pierwsze polecenie?
Sprawdzisz czy u Ciebie pip3 w ogóle się uruchamia, tznnie pokazuje się komunikat "command not found"?
 
@Silas Mariusz
Mam tam swoją bibliotekę filmów:
Floyd's profile

Niestety maiałem awarie Qnapa więc postanowiłem na nowo postawić QTS. Ponieważ nie zrobiłem kopi zapasowej bazy Plexa i obejrzanych filmów, chce odzyskać obejrzane filmy na Plexie.

Jest Plungin który działa świetnie, ale przestała działać jedna rzecz. Nie wysyła informacji o obejrzanych filmach do Plexa.
pigers1986's profile
Dodałem sobie do obserwowanych =].

Swoją drogą mam problem z instalacją:
Kod:
[~] # pip3 install lazy-object-proxy
Collecting lazy-object-proxy
  Downloading https://files.pythonhosted.org/packages/07/3f/a3d687f83c7d44970f70ff0400677746c8860b11f0c08f6b4e07205f0cdc/lazy-object-proxy-1.4.3.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  Complete output from command /opt/bin/python3 /opt/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /opt/tmp/tmp2ehw0yc1:
  /opt/bin/python3: can't open file '/opt/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py': [Errno 2] No such file or directory

Może kojarzycie z czego to może wynikać?
 
Dziękuję za pomoc. Faktycznie aktualizacja pomogła. Niestety koniec instalacji wywala błedem
Kod:
    ERROR: Command errored out with exit status 1:
     command: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-_06peozf/typed-ast/setup.py'"'"'; __file__='"'"'/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-_06peozf/typed-ast/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-record-9hoau0he/install-record.txt --single-version-externally-managed --compile --install-headers /opt/include/python3.7/typed-ast
         cwd: /share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-_06peozf/typed-ast/
    Complete output (25 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/typed_ast
    copying typed_ast/__init__.py -> build/lib.linux-x86_64-3.7/typed_ast
    copying typed_ast/ast27.py -> build/lib.linux-x86_64-3.7/typed_ast
    copying typed_ast/ast3.py -> build/lib.linux-x86_64-3.7/typed_ast
    copying typed_ast/conversions.py -> build/lib.linux-x86_64-3.7/typed_ast
    package init file 'ast3/tests/__init__.py' not found (or not a regular file)
    creating build/lib.linux-x86_64-3.7/typed_ast/tests
    copying ast3/tests/test_basics.py -> build/lib.linux-x86_64-3.7/typed_ast/tests
    warning: build_py: byte-compiling is disabled, skipping.
    running build_ext
    building '_ast27' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/ast27
    creating build/temp.linux-x86_64-3.7/ast27/Parser
    creating build/temp.linux-x86_64-3.7/ast27/Python
    creating build/temp.linux-x86_64-3.7/ast27/Custom
    x86_64-openwrt-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -DNDEBUG -fno-inline -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -DNDEBUG -fno-inline -I/media/ware/Entware.2019.10/staging_dir/target-x86_64_glibc-2.27/opt/include -I/media/ware/Entware.2019.10/staging_dir/toolchain-x86_64_gcc-7.4.0_glibc-2.27/include -fPIC -Iast27/Include -I/opt/include/python3.7 -c ast27/Parser/acceler.c -o build/temp.linux-x86_64-3.7/ast27/Parser/acceler.o
    unable to execute 'x86_64-openwrt-linux-gnu-gcc': No such file or directory
    error: command 'x86_64-openwrt-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-_06peozf/typed-ast/setup.py'"'"'; __file__='"'"'/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-_06peozf/typed-ast/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-record-9hoau0he/install-record.txt --single-version-externally-managed --compile --install-headers /opt/include/python3.7/typed-ast Check the logs for full command output.
[~] #
 
Takie:
Kod:
[~] # pip3 install -r /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt

W wyniku czego otrzymuje:
Kod:
[~] # pip3 install -r /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt
Collecting astroid==2.3.2
  Using cached astroid-2.3.2-py3-none-any.whl (205 kB)
Collecting certifi==2019.9.11
  Using cached certifi-2019.9.11-py2.py3-none-any.whl (154 kB)
Requirement already satisfied: chardet==3.0.4 in /share/CACHEDEV1_DATA/.qpkg/Entware/lib/python3.7/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt (line 3)) (3.0.4)
Requirement already satisfied: idna==2.8 in /share/CACHEDEV1_DATA/.qpkg/Entware/lib/python3.7/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt (line 4)) (2.8)
Collecting isort==4.3.21
  Using cached isort-4.3.21-py2.py3-none-any.whl (42 kB)
Requirement already satisfied: lazy-object-proxy==1.4.2 in /share/CACHEDEV1_DATA/.qpkg/Entware/lib/python3.7/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt (line 6)) (1.4.2)
Collecting mccabe==0.6.1
  Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Requirement already satisfied: oauthlib==3.1.0 in /share/CACHEDEV1_DATA/.qpkg/Entware/lib/python3.7/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt (line 8)) (3.1.0)
Collecting PlexAPI==3.2.0
  Using cached PlexAPI-3.2.0.tar.gz (73 kB)
Collecting pylint==2.4.3
  Using cached pylint-2.4.3-py3-none-any.whl (302 kB)
Collecting python-dotenv==0.10.3
  Using cached python_dotenv-0.10.3-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: requests==2.22.0 in /share/CACHEDEV1_DATA/.qpkg/Entware/lib/python3.7/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt (line 12)) (2.22.0)
Requirement already satisfied: requests-cache==0.5.2 in /share/CACHEDEV1_DATA/.qpkg/Entware/lib/python3.7/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt (line 13)) (0.5.2)
Collecting requests-oauthlib==1.2.0
  Using cached requests_oauthlib-1.2.0-py2.py3-none-any.whl (22 kB)
Requirement already satisfied: six==1.12.0 in /share/CACHEDEV1_DATA/.qpkg/Entware/lib/python3.7/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt (line 15)) (1.12.0)
Collecting tqdm==4.36.1
  Using cached tqdm-4.36.1-py2.py3-none-any.whl (52 kB)
Collecting trakt==2.11.0
  Using cached trakt-2.11.0.tar.gz (31 kB)
Collecting typed-ast==1.4.0
  Using cached typed_ast-1.4.0.tar.gz (206 kB)
Collecting urllib3==1.25.6
  Using cached urllib3-1.25.6-py2.py3-none-any.whl (125 kB)
Collecting websocket-client==0.56.0
  Using cached websocket_client-0.56.0-py2.py3-none-any.whl (200 kB)
Requirement already satisfied: wrapt==1.11.2 in /share/CACHEDEV1_DATA/.qpkg/Entware/lib/python3.7/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt (line 21)) (1.11.2)
Installing collected packages: typed-ast, astroid, certifi, isort, mccabe, tqdm, websocket-client, PlexAPI, pylint, python-dotenv, requests-oauthlib, trakt, urllib3
    Running setup.py install for typed-ast ... error
    ERROR: Command errored out with exit status 1:
    command: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-2win70y0/typed-ast/setup.py'"'"'; __file__='"'"'/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-2win70y0/typed-ast/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-record-2zvjow55/install-record.txt --single-version-externally-managed --compile --install-headers /opt/include/python3.7/typed-ast
        cwd: /share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-2win70y0/typed-ast/
    Complete output (25 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/typed_ast
    copying typed_ast/__init__.py -> build/lib.linux-x86_64-3.7/typed_ast
    copying typed_ast/ast27.py -> build/lib.linux-x86_64-3.7/typed_ast
    copying typed_ast/ast3.py -> build/lib.linux-x86_64-3.7/typed_ast
    copying typed_ast/conversions.py -> build/lib.linux-x86_64-3.7/typed_ast
    package init file 'ast3/tests/__init__.py' not found (or not a regular file)
    creating build/lib.linux-x86_64-3.7/typed_ast/tests
    copying ast3/tests/test_basics.py -> build/lib.linux-x86_64-3.7/typed_ast/tests
    warning: build_py: byte-compiling is disabled, skipping.

    running build_ext
    building '_ast27' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/ast27
    creating build/temp.linux-x86_64-3.7/ast27/Parser
    creating build/temp.linux-x86_64-3.7/ast27/Python
    creating build/temp.linux-x86_64-3.7/ast27/Custom
    x86_64-openwrt-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -DNDEBUG -fno-inline -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -DNDEBUG -fno-inline -I/media/ware/Entware.2019.10/staging_dir/target-x86_64_glibc-2.27/opt/include -I/media/ware/Entware.2019.10/staging_dir/toolchain-x86_64_gcc-7.4.0_glibc-2.27/include -fPIC -Iast27/Include -I/opt/include/python3.7 -c ast27/Parser/acceler.c -o build/temp.linux-x86_64-3.7/ast27/Parser/acceler.o
    unable to execute 'x86_64-openwrt-linux-gnu-gcc': No such file or directory
    error: command 'x86_64-openwrt-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-2win70y0/typed-ast/setup.py'"'"'; __file__='"'"'/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-2win70y0/typed-ast/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-record-2zvjow55/install-record.txt --single-version-externally-managed --compile --install-headers /opt/include/python3.7/typed-ast Check the logs for full command output.
 
brakuje ci binarki unable to execute 'x86_64-openwrt-linux-gnu-gcc': No such file or directory

i teraz zaczyna się zabawa .. bo ja go mam

upload_2020-2-2_20-21-36.png


ale pewnie skrypt oczekuje go gdzieś indzie, miłej analizy czemu poszło tak a nie inaczej ...
 
To było prostsze niż myślałem.
wystarczy zainstalować QPython i wykonać poniższa instrukcję:
Kod:
[~] # /share/CACHEDEV1_DATA/.qpkg/QPython3/bin/pip install -r /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/PlexTraktSync-master/requirements.txt
 

Użytkownicy znaleźli tą stronę używając tych słów:

  1. plextraktsync
  2. trakt