yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Issue with installing

Open Rex90 opened this issue 11 years ago • 18 comments

Hi I get the following error when trying to install yowsup on windows... any help is appreciated

python setup.py install

Processing dependencies for yowsup2==2.2.78 Searching for python-axolotl-curve25519 Reading https://pypi.python.org/simple/python-axolotl-curve25519/ Best match: python-axolotl-curve25519 0.1 Downloading https://pypi.python.org/packages/source/p/python-axolotl-curve25519/ python-axolotl-curve25519-0.1.tar.gz#md5=f28d902df9044f0bf86a35a4bd2ec092 Processing python-axolotl-curve25519-0.1.tar.gz Writing c:\users\appdata\local\temp\easy_install-raecqz\python-axolotl-c urve25519-0.1\setup.cfg Running python-axolotl-curve25519-0.1\setup.py -q bdist_egg --dist-dir c:\users\appdata\local\temp\easy_install-raecqz\python-axolotl-curve25519-0.1\egg -dist-tmp-bkci3l curve25519module.c curve25519module.c(76) : error C2143: syntax error : missing ';' before 'type' curve25519module.c(78) : error C2065: 'result' : undeclared identifier curve25519module.c(82) : error C2143: syntax error : missing '{' before '*' curve25519module.c(100) : warning C4133: 'return' : incompatible types - from 'P yObject *' to 'int *' curve25519module.c(146) : warning C4133: 'initializing' : incompatible types - f rom 'int *(__cdecl *)(PyObject *,PyObject *)' to 'PyCFunction' error: Setup script exited with error: command 'C:\Users\AppData\Loc al\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe' fa iled with exit status 2

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Rex90 avatar May 14 '15 18:05 Rex90

same problem

LMS0815 avatar May 17 '15 18:05 LMS0815

try

sudo python setup.py install

Dl0tt avatar May 19 '15 21:05 Dl0tt

i am facing the same issue ... was anybody able to get rid of this issue?

AnshulLearning avatar Jun 21 '15 08:06 AnshulLearning

Was this with the windows installation instructions?

tgalal avatar Jun 21 '15 23:06 tgalal

yes , tgalal. Even i am facing the same issue. Anybody know how to sort it out ?

AnshulPytho avatar Jul 19 '15 05:07 AnshulPytho

Same problem... Windows instalation with Python 2.7!

eduardobento avatar Jul 28 '15 14:07 eduardobento

I have the same problem. Win 10, Python 2.7.10 and have VCForPython27 installed.

srinarasi avatar Aug 17 '15 18:08 srinarasi

@armensg @LMS0815 @AnshulLearning @eduardobento @srinarasi That is a problem caused by MS C compiler not supporting C99. Source code of one of yowsup's dependences (python-axolotl-curve25519), uses variable definitions mixed with code, a feature introduced in C99 (in C89, variables should be defined at the begginning of the scope). To get rid of this problem without modifying that module's code, I will tell you what worked for me:

1.- Install Python 2.7.9 for Windows x32. I do not know if it works with Python 3 or the x64 versions, just know that it works well with 2.7.9 and that it does NOT work with 2.7.10.

2.- Download and install MinGW from http://sourceforge.net/projects/mingw/files/ (Select Installer, download the mingw-get setup package and follow instructions to install MinGW with MSYS and C compiler). We need it as the gcc included with MinGW supports C99.

3.- Navigate to C:\Python27\Lib\distutils (providing you installed Python in C:\Python27) and create a plain text file called distutils.cfg with the following content (two lines):

[build]
compiler=mingw32

4.- Download zlib for MinGW32 from http://sourceforge.net/projects/mingw/files/MinGW/Extension/zlib/zlib-1.2.7-1/ (pick the dev version) and copy the files to include and lib directories in your MinGW installation.

5.- Now go to your yowsup folder and attempt python setup.py install again, it should complete without problems.

antonio9213 avatar Oct 21 '15 06:10 antonio9213

@armensg @LMS0815 @AnshulLearning @eduardobento @srinarasi and thanks to @antonio9213 for letting us know

  • tried with 2.7.10-x64 doesn't work both on vc and minGW
  • tried with 2.7.10-x86 doesn't work both on vc and minGW
  • tried with 2.7.9-x64 doesn't work both on vc and minGW

all the above had the same issue with python-axolotl-curve25519 compilation

tried with 2.7.9-x86 it worked with minGW had chmod issue did what was said in readme library is working fine

Deepankar01 avatar Jan 15 '16 21:01 Deepankar01

getting the same problem..tried the solution posted by @antonio9213 not working. using windows 8.1 64 bit , python 2.7.11. Any other lead?

deepgnly avatar Mar 18 '16 06:03 deepgnly

@gully do with python 2.7.9 x86 version it is working for me it worked for me in 10 i think it should work in 8.1

Deepankar01 avatar Mar 19 '16 03:03 Deepankar01

@Deepankar01 Thanks it worked

deepgnly avatar Mar 23 '16 07:03 deepgnly

This worked great! Thank you for great post, Antonio!

aabelix avatar Jun 01 '16 06:06 aabelix

It should work well with 2.7.11 But for me it only worked with it when I put the configuration in c:\users\pydistutils.cfg

erezak avatar Jun 01 '16 14:06 erezak

     Mensajeoriginal

De: Erez A. Korn Enviado: miércoles, 1 de junio de 2016 16:44 Para: tgalal/yowsup Responder a: tgalal/yowsup Asunto: Re: [tgalal/yowsup] Issue with installing (#800)

It should work well with 2.7.11 But for me it only worked with it when I put the configuration in c:\users\pydistutils.cfg

You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/tgalal/yowsup/issues/800#issuecomment-223014966, or mute the threadhttps://github.com/notifications/unsubscribe/AKNhj2NVGjD930BBRi7GFs5oPBF3kn2Hks5qHZq3gaJpZM4EawJT.

jlguardi avatar Jun 01 '16 15:06 jlguardi

For those who are stuck in the chmod error can use this link.It worked for me. http://stackoverflow.com/questions/11405549/how-do-i-install-pycrypto-on-windows

deepgnly avatar Jul 19 '16 09:07 deepgnly

@antonio9213 where is the yowsup folder supposed to be? I go to the one in site-packages and get the error python is not recognized as an internal or external command. I am installing it on windows. Where did I go wrong?

ghost avatar Jan 31 '17 13:01 ghost

Is there anybody getting this Issue concerning python-axolotl-curve25519 on a Raspberry Pi using Raspbian GNU/Linux 9 (stretch) on Kernel Linux 4.9.35-v7+ armv7l and Python 2.7.13 ?

biboff avatar Sep 16 '17 11:09 biboff