Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing dependencies #348

Open
wazowski78 opened this issue Oct 9, 2021 · 7 comments
Open

Error installing dependencies #348

wazowski78 opened this issue Oct 9, 2021 · 7 comments

Comments

@wazowski78
Copy link

wazowski78 commented Oct 9, 2021

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.

@quad
Copy link
Collaborator

quad commented Oct 10, 2021

Do you have python-dev (or its equivalent) installed? What distro are you using?

@wazowski78
Copy link
Author

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!

@quad
Copy link
Collaborator

quad commented Oct 11, 2021 via email

@wazowski78
Copy link
Author

Yes, but same issue installing requirements.txt, it fails trying installing curve25519-donna.

@wazowski78
Copy link
Author

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!

@wazowski78
Copy link
Author

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

whatsapp-web-reveng@1.0.0 start /root/wawss/whatsapp-web-reveng
npm run dev

whatsapp-web-reveng@1.0.0 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
[1] from whatsapp import WhatsAppWebClient;
[1] File "/root/wawss/whatsapp-web-reveng/backend/whatsapp.py", line 25, in
[1] from whatsapp_defines import WATags, WASingleByteTokens, WADoubleByteTokens, WAWebMessageInfo;
[1] File "/root/wawss/whatsapp-web-reveng/backend/whatsapp_defines.py", line 1, in
[1] from google.protobuf import json_format;
[1] File "/usr/local/lib/python2.7/dist-packages/google/protobuf/json_format.py", line 54, in
[1] from google.protobuf.internal import type_checkers
[1] File "/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/type_checkers.py", line 52, in
[1] from google.protobuf.internal import decoder
[1] File "/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/decoder.py", line 87, in
[1] from google.protobuf.internal import encoder
[1] File "/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/encoder.py", line 71, in
[1] from google.protobuf.internal import wire_format
[1] File "/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/wire_format.py", line 36, in
[1] from google.protobuf import descriptor
[1] File "/usr/local/lib/python2.7/dist-packages/google/protobuf/descriptor.py", line 113
[1] class DescriptorBase(metaclass=DescriptorMetaclass):
[1] ^
[1] SyntaxError: invalid syntax
[1] [nodemon] app crashed - waiting for file changes before starting...
[2] Sass is watching for changes. Press Ctrl-C to stop.
[2]
[0] whatsapp-web-reveng API server listening on port 2019
[0] whatsapp-web-reveng HTTP server listening on port 2018

@wazowski78 wazowski78 reopened this Oct 11, 2021
@wazowski78
Copy link
Author

I am getting mad with this error, any help will be very appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants