Problem w instalacji modułu watcher na CentOS 7

0

Witam mam problem w instalacji modułu watcher na CentOS 7:

[mos@centos ~]$ pip install watcher
Collecting watcher
Using cached https://files.pythonhosted.org/packages/34/7b/a52100ac55799f1e09a4b1f2629355ebbf6ec246dc462ad42ad9ea943287/watcher-0.2.1.zip
Installing collected packages: watcher
Running setup.py install for watcher ... error
ERROR: Complete output from command /home/mos/.pyenv/versions/3.7.3/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-dvozurmm/watcher/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-record-l2j6tk5t/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
copying FileSystemWatcher.py -> build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/watcher
copying watcher/init.py -> build/lib.linux-x86_64-3.7/watcher
creating build/lib.linux-x86_64-3.7/watcher/tests
copying watcher/tests/test_FileSystemWatcher.py -> build/lib.linux-x86_64-3.7/watcher/tests
copying watcher/tests/test_watcher.py -> build/lib.linux-x86_64-3.7/watcher/tests
copying watcher/tests/init.py -> build/lib.linux-x86_64-3.7/watcher/tests
copying watcher/tests/main.py -> build/lib.linux-x86_64-3.7/watcher/tests
running build_ext
building 'watcher._watcher' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/mos/.pyenv/versions/3.7.3/include/python3.7m -c src/_watcher.c -o build/temp.linux-x86_64-3.7/src/_watcher.o /W4 /DUNICODE
gcc: error: /W4: No such file or directory
gcc: error: /DUNICODE: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/home/mos/.pyenv/versions/3.7.3/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-dvozurmm/watcher/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-record-l2j6tk5t/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-dvozurmm/watcher/

może ktoś pomóc?

2

Ta paczka używa windowsowego API, bez modyfikacji nie zainstalujesz jej na linuksie.
https://bitbucket.org/briancurtin/watcher/src/1e746e3b2fb2be6721f2e75a84bdd9174c12e8db/src/_watcher.c#lines-4
Błędy które dostajesz wynikają z tego, że na windowsie parametry można (trzeba?) w konsoli przekazuje się po slashu /, a twój system interpretuje to jako ścieżki :)

0

Dzięki za szybką i trafną odpowiedź. Ciekawostką jest to to że na Ubuntu 18.04 moduł instaluje się bezproblemowo

0

Z ciekawości sprawdziłem na ubuntu:18.04 z dockerhuba i dostałem taki sam błąd, jesteś pewny, że nie sprawdzałeś tego na jakiejś magicznej wersji ubuntu? :)

1 użytkowników online, w tym zalogowanych: 0, gości: 1