-
Notifications
You must be signed in to change notification settings - Fork 35
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
pip install (of 0.4.1) fails in Windows under Python 3.5.1 using VS2015 compiler #46
Comments
I am getting an the same error when trying to install. from my research, it looks like 'snprintf' is declared incorrectly and should be called as a standard function instead of declaring it because it has apparently been added to the standard lib? not sure honestly, just what I have managed to gather from trying to fix it myself. pip install swigibpy Collecting swigibpy Failed building wheel for swigibpy
Command "C:\ProgramData\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\me\AppData\Local\Temp\pip-build-b5wc6ast\swigibpy\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\me\AppData\Local\Temp\pip-n2axuo5h-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\me\AppData\Local\Temp\pip-build-b5wc6ast\swigibpy\ |
Commenting out line swigibpy/IB/Shared/StdAfx.h (8) let me install the package. |
When attempting to install swigibpy using pip and Python 3.5.1 in Windows, I received the following error when attempting to compile swigibpy/IB/Shared/EClientSocketBase.cpp:
A quick search on Google yielded a very helpful result. It appears that until now, many libraries (including IB API) used
snprintf
by defining it as_snprintf
, since_snprintf
was supported.As of VS2015 (e.g. VC14),
snprintf
is officially supported, and it should therefore never be#define
'd.The offending line is in swigibpy/IB/Shared/StdAfx.h (8):
It would appear that IB fixed this in a release following the version included with swigibpy 0.4.1. I believe that this is also specific to the Python 3.x releases because Python 2.x builds point to earlier version of the VC++ compiler.
Not sure if this is super urgent given the pending push of version 0.5, but wanted to raise it in case it is a forcing function to move things along.
The text was updated successfully, but these errors were encountered: