open-wa / wa-automate-python

💬 🤖 The most advanced Python whatsapp library for chatbots with advanced features. Be sure to ⭐ this repository for updates!
Other
330 stars 71 forks source link

pip install -r requirements.txt python-axolotl error #3

Closed mhndm closed 4 years ago

mhndm commented 4 years ago

ubuntu 16.04 pyhton 3.7

the error :

Collecting python-axolotl-curve25519>=0.4.1 Using cached python-axolotl-curve25519-0.4.1.post2.tar.gz (79 kB) ERROR: Command errored out with exit status 1: command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hnesldo7/python-axolotl-curve25519/setup.py'"'"'; file='"'"'/tmp/pip-install-hnesldo7/python-axolotl-curve25519/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-install-hnesldo7/python-axolotl-curve25519/pip-egg-info cwd: /tmp/pip-install-hnesldo7/python-axolotl-curve25519/ Complete output (11 lines): Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.7/site-packages/setuptools/init.py", line 19, in from setuptools.dist import Distribution File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 34, in from setuptools import windows_support File "/usr/local/lib/python3.7/site-packages/setuptools/windows_support.py", line 2, in import ctypes File "/usr/local/lib/python3.7/ctypes/init.py", line 7, in from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes'

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

mrodal commented 4 years ago

can you provide a little more info? how exactly are you installing open-wa and when are you getting the error?

Also, check this issue, https://bugs.python.org/issue31652 seems to be related to your environment

mhndm commented 4 years ago

i clone the code and then: pip install -r requirements.txt

mrodal commented 4 years ago

Ok, did you check the issue I linked above? looks like some library missing on your system (libffi-dev)

mhndm commented 4 years ago

its installed

mhndm commented 4 years ago

the problem soved by :

sudo apt-get install build-essential checkinstall

sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \ libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev

thanks @mrodal for ure interest :+1:

mrodal commented 4 years ago

Great! Thanks for posting the solution!

diegofrias commented 3 years ago

Great! Thanks for posting the solution!

Hi, anybody could help me by saying how can I solve this problem in windows 10 without sudo apt-get ...?