whatsapp-web-reveng
whatsapp-web-reveng copied to clipboard
Error installing dependencies
Hi, I am having problems installing dependencies, concretely with 25529Curve-donna. This is the log:
Collecting curve25519-donna Using cached curve25519-donna-1.3.tar.gz (20 kB) Requirement already satisfied: pycryptodome in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 4)) (3.11.0) Requirement already satisfied: pyqrcode in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 5)) (1.2.1) Requirement already satisfied: protobuf in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 6)) (3.18.1) Building wheels for collected packages: curve25519-donna Building wheel for curve25519-donna (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ng9iohme/curve25519-donna_ffa67861883141ac90cce032a47f7a59/setup.py'"'"'; file='"'"'/tmp/pip-install-ng9iohme/curve25519-donna_ffa67861883141ac90cce032a47f7a59/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-99285rbf cwd: /tmp/pip-install-ng9iohme/curve25519-donna_ffa67861883141ac90cce032a47f7a59/ Complete output (23 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/curve25519 copying python-src/curve25519/init.py -> build/lib.linux-x86_64-3.8/curve25519 copying python-src/curve25519/keys.py -> build/lib.linux-x86_64-3.8/curve25519 creating build/lib.linux-x86_64-3.8/curve25519/test copying python-src/curve25519/test/test_curve25519.py -> build/lib.linux-x86_64-3.8/curve25519/test copying python-src/curve25519/test/init.py -> build/lib.linux-x86_64-3.8/curve25519/test copying python-src/curve25519/test/test_speed.py -> build/lib.linux-x86_64-3.8/curve25519/test running build_ext building 'curve25519._curve25519' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/python-src creating build/temp.linux-x86_64-3.8/python-src/curve25519 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c python-src/curve25519/curve25519module.c -o build/temp.linux-x86_64-3.8/python-src/curve25519/curve25519module.o python-src/curve25519/curve25519module.c:3:10: fatal error: Python.h: No such file or directory 3 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
ERROR: Failed building wheel for curve25519-donna
I have installed several times the repo but this time is the first time I am getting this issue.
Thanks.
Do you have python-dev
(or its equivalent) installed? What distro are you using?
I have tried in both MAC and Linux Ubuntu 20.04. I have installed python2.7, but not python-dev, but the problem is with 25519Curve-donna, does python-dev solves this issue? Thank you for your help dude!
On 10 Oct 2021, at 21:25, wazowski78 @.***> wrote: does python-dev solves this issue?
Did you try?
Yes, but same issue installing requirements.txt, it fails trying installing curve25519-donna.
Well... I think I have fixed it. Clean installation of Ubuntu 18, first install python-dev, then node 13.14.0, clean git, clean pip, and the repos updated and upgraded. Weird behavior of the server, but know it installs every component properly. Thank you for your help!
Well, now it is another error, once every component is installed, now the app is returning this errors, I am attaching full log from requirements installation up to app crash:
root@localhost:~/wawss/whatsapp-web-reveng# pip install -r requirements.txt Collecting git+https://github.com/dpallot/simple-websocket-server.git (from -r requirements.txt (line 2)) Cloning https://github.com/dpallot/simple-websocket-server.git to /tmp/pip-fw49w9-build Requirement already satisfied (use --upgrade to upgrade): SimpleWebSocketServer==0.1.1 from git+https://github.com/dpallot/simple-websocket-server.git in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 2)) Requirement already satisfied: websocket-client in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 1)) Requirement already satisfied: curve25519-donna in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 3)) Requirement already satisfied: pycryptodome in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 4)) Requirement already satisfied: pyqrcode in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 5)) Requirement already satisfied: protobuf in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 6)) Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from websocket-client->-r requirements.txt (line 1)) root@localhost:~/wawss/whatsapp-web-reveng# npm start
[email protected] start /root/wawss/whatsapp-web-reveng npm run dev
[email protected] dev /root/wawss/whatsapp-web-reveng concurrently --kill-others "./node_modules/.bin/nodemon index.js -i client -e js" "./node_modules/.bin/nodemon --exec python ./backend/whatsapp_web_backend.py -i client -e py" "sass --watch client/css/main.scss:client/css/main.css"
[0] [nodemon] 1.19.4
[0] [nodemon] to restart at any time, enter rs
[0] [nodemon] watching dir(s): .
[0] [nodemon] watching extensions: js
[0] [nodemon] starting node index.js
[1] [nodemon] 1.19.4
[1] [nodemon] to restart at any time, enter rs
[1] [nodemon] watching dir(s): .
[1] [nodemon] watching extensions: py
[1] [nodemon] starting python ./backend/whatsapp_web_backend.py
[1] Traceback (most recent call last):
[1] File "./backend/whatsapp_web_backend.py", line 16, in
I am getting mad with this error, any help will be very appreciated!