-
Notifications
You must be signed in to change notification settings - Fork 6
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
Compile Error on Win 7 x32 bit, Python 2.7 #1
Comments
I'm having this issue as well. Tried compiling with MSVC 8, 9, and 10. No dice. Have spent a ton of time trying to get it working. |
@BCollura : how did u do that tell us, i am also facing the same problem |
I honestly have no idea what's up with this. The errors don't make much sense, and as I have no access to MSVC, I'm not sure what to do about this. Do any of you guys know what's up with MSVC? |
Same error on Windows 7 Ultimate, 32-bit, running Python 3.4.2. |
The issue is the code uses C99 style variable declarations, which is only supported in Visual Studio 2013+. We got around this by downloading the code, modifying it, compiling and installing it manually. |
I'm still having this issue and unable to use bigcommerce python library because install requires streql. I was able to instal the bigcommerce python library by editing their install.py file to remove streql from the dependencies. |
At first I was getting the "unable to find vcvarsall.bat" error, and after fixing that, I tried pip installing streql and got this error:
PS C:\Users\Lee> pip install streql
Downloading/unpacking streql
Downloading streql-3.0.2.tar.gz
Running setup.py (path:c:\users\lee\appdata\local\temp\pip_build_Lee\streql\setup.py) egg_info for package streql
Installing collected packages: streql
Running setup.py install for streql
building 'streql' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27
include -IC:\Python27\PC /Tcstreql.c /Fobuild\temp.win32-2.7\Release\streql.obj
streql.c
streql.c(7) : error C2143: syntax error : missing ';' before 'type'
streql.c(8) : error C2065: 'i' : undeclared identifier
streql.c(8) : error C2065: 'i' : undeclared identifier
streql.c(8) : warning C4018: '<' : signed/unsigned mismatch
streql.c(8) : error C2065: 'i' : undeclared identifier
streql.c(8) : error C2065: 'result' : undeclared identifier
streql.c(8) : error C2065: 'i' : undeclared identifier
streql.c(8) : error C2065: 'i' : undeclared identifier
streql.c(9) : error C2065: 'result' : undeclared identifier
streql.c(16) : error C2143: syntax error : missing ';' before 'type'
streql.c(19) : error C2065: 'equal' : undeclared identifier
streql.c(27) : error C2061: syntax error : identifier 'streql_methods'
streql.c(27) : error C2059: syntax error : ';'
streql.c(27) : error C3409: empty attribute block is not allowed
streql.c(27) : error C2513: '/global/ ' : no variable declared before '='
streql.c(51) : error C2065: 'streql_methods' : undeclared identifier
streql.c(51) : warning C4047: 'function' : 'PyMethodDef *' differs in levels of indirection from 'int'
streql.c(51) : warning C4024: 'Py_InitModule4' : different types for formal and actual parameter 2
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2
Complete output from command C:\Python27\python.exe -c "import setuptools, tokenize;file='c:\users\lee\appdat
a\local\temp\pip_build_Lee\streql\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('
\r\n', '\n'), file, 'exec'))" install --record c:\users\lee\appdata\local\temp\pip-h9hneu-record\install-record.txt
--single-version-externally-managed --compile:
running install
running build
running build_ext
building 'streql' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\incl
ude -IC:\Python27\PC /Tcstreql.c /Fobuild\temp.win32-2.7\Release\streql.obj
streql.c
streql.c(7) : error C2143: syntax error : missing ';' before 'type'
streql.c(8) : error C2065: 'i' : undeclared identifier
streql.c(8) : error C2065: 'i' : undeclared identifier
streql.c(8) : warning C4018: '<' : signed/unsigned mismatch
streql.c(8) : error C2065: 'i' : undeclared identifier
streql.c(8) : error C2065: 'result' : undeclared identifier
streql.c(8) : error C2065: 'i' : undeclared identifier
streql.c(8) : error C2065: 'i' : undeclared identifier
streql.c(9) : error C2065: 'result' : undeclared identifier
streql.c(16) : error C2143: syntax error : missing ';' before 'type'
streql.c(19) : error C2065: 'equal' : undeclared identifier
streql.c(27) : error C2061: syntax error : identifier 'streql_methods'
streql.c(27) : error C2059: syntax error : ';'
streql.c(27) : error C3409: empty attribute block is not allowed
streql.c(27) : error C2513: '/global/ ' : no variable declared before '='
streql.c(51) : error C2065: 'streql_methods' : undeclared identifier
streql.c(51) : warning C4047: 'function' : 'PyMethodDef *' differs in levels of indirection from 'int'
streql.c(51) : warning C4024: 'Py_InitModule4' : different types for formal and actual parameter 2
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2
The text was updated successfully, but these errors were encountered: