Open gitttt opened 6 years ago
I adapted the setup.py to make it run under python3.
Yet, when trying to build it, I get the error below. Any ideas what is wrong? I am using VisualStudio 2015 tooling.
c:\tmp\pyclips>"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 && cd c:\tmp\pyclips && SET DISTUTILS_USE_SDK=1 && SET MSSdk=1 && python setup.py build && python setup.py install Module 'clips': Python to CLIPS interface Setup revision: $Id: setup.py 342 2008-02-22 01:17:23Z Franz $ finding low-level module symbols... Done! building environment-aware submodule... Done! Found CLIPS version: 6.30 Creating version number: Standard setup in progress: 'patch' is not recognized as an internal or external command, operable program or batch file. running build running build_py copying clips\_eclips_wrap.py -> build\lib.win-amd64-3.7\clips copying clips\_version.py -> build\lib.win-amd64-3.7\clips running build_ext building 'clips._clips' extension C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -I.\clipssrc -IC:\Python37\include -IC:\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\winrt" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\winrt" /Tcclipsmodule.c /Fobuild\temp.win-amd64-3.7\Release\clipsmodule.obj -DPYCLIPS -DCLIPS_MAJOR=6 -DCLIPS_MINOR=30 -DPYCLIPS_MAJOR=1 -DPYCLIPS_MINOR=0 -DPYCLIPS_PATCHLEVEL=7 -DPYCLIPS_INCREMENTAL=343 -DWIN_MVC clipsmodule.c c:\tmp\pyclips\loptr.c(77): warning C4311: 'type cast': pointer truncation from 'void *' to 'unsigned long' c:\tmp\pyclips\loptr.c(90): warning C4311: 'type cast': pointer truncation from 'void *' to 'unsigned long' c:\tmp\pyclips\loptr.c(114): warning C4311: 'type cast': pointer truncation from 'void *' to 'unsigned long' c:\tmp\pyclips\loptr.c(121): warning C4311: 'type cast': pointer truncation from 'void *' to 'unsigned long' clipsmodule.c(610): error C2054: expected '(' to follow 'staticforward' clipsmodule.c(610): error C2085: 'clips_EnvType': not in formal parameter list clipsmodule.c(619): warning C4311: 'type cast': pointer truncation from 'char [5]' to 'unsigned long' clipsmodule.c(619): error C2057: expected constant expression clipsmodule.c(621): error C2085: 'clips_EnvObject': not in formal parameter list clipsmodule.c(653): error C2085: 'clips_EnvObject_dealloc': not in formal parameter list clipsmodule.c(653): error C2143: syntax error: missing ';' before '{' clipsmodule.c(663): error C2065: 'clips_EnvObject': undeclared identifier clipsmodule.c(665): error C2065: 'clips_EnvObject_dealloc': undeclared identifier clipsmodule.c(659): warning C4047: 'initializing': 'Py_ssize_t' differs in levels of indirection from 'char [12]' clipsmodule.c(659): error C2099: initializer is not a constant clipsmodule.c(679): error C2054: expected '(' to follow 'staticforward' clipsmodule.c(679): error C2085: 'clips_DeftemplType': not in formal parameter list clipsmodule.c(684): error C2085: 'clips_DeftemplObject': not in formal parameter list clipsmodule.c(692): error C2085: 'clips_DeftemplObject_dealloc': not in formal parameter list clipsmodule.c(692): error C2143: syntax error: missing ';' before '{' clipsmodule.c(700): error C2065: 'clips_DeftemplObject': undeclared identifier clipsmodule.c(702): error C2065: 'clips_DeftemplObject_dealloc': undeclared identifier clipsmodule.c(696): warning C4047: 'initializing': 'Py_ssize_t' differs in levels of indirection from 'char [12]' clipsmodule.c(696): error C2099: initializer is not a constant clipsmodule.c(716): error C2054: expected '(' to follow 'staticforward' clipsmodule.c(716): error C2085: 'clips_FactType': not in formal parameter list clipsmodule.c(727): error C2085: 'clips_FactObject': not in formal parameter list clipsmodule.c(770): error C2085: 'lose_fact': not in formal parameter list clipsmodule.c(770): error C2143: syntax error: missing ';' before '{' clipsmodule.c(792): error C2143: syntax error: missing ')' before '*' clipsmodule.c(792): error C2143: syntax error: missing '{' before '*' clipsmodule.c(792): error C2059: syntax error: ')' clipsmodule.c(792): error C2054: expected '(' to follow 'pyenv' clipsmodule.c(805): error C2143: syntax error: missing ')' before '*' clipsmodule.c(805): error C2143: syntax error: missing '{' before '*' clipsmodule.c(805): error C2059: syntax error: ')' clipsmodule.c(805): error C2054: expected '(' to follow 'pyenv' clipsmodule.c(818): error C2143: syntax error: missing ')' before '*' clipsmodule.c(818): error C2143: syntax error: missing '{' before '*' clipsmodule.c(818): error C2059: syntax error: ')' clipsmodule.c(818): error C2054: expected '(' to follow 'pyenv' clipsmodule.c(825): error C2143: syntax error: missing ')' before '*' clipsmodule.c(825): error C2143: syntax error: missing '{' before '*' clipsmodule.c(825): error C2059: syntax error: ')' clipsmodule.c(825): error C2054: expected '(' to follow 'pyenv' clipsmodule.c(839): error C2143: syntax error: missing ')' before '*' clipsmodule.c(839): error C2143: syntax error: missing '{' before '*' clipsmodule.c(839): error C2059: syntax error: ')' clipsmodule.c(839): error C2054: expected '(' to follow 'pyenv' clipsmodule.c(968): error C2065: 'clips_FactObject': undeclared identifier clipsmodule.c(968): error C2059: syntax error: ')' clipsmodule.c(972): error C2065: 'clips_FactObject': undeclared identifier clipsmodule.c(972): error C2059: syntax error: ')' clipsmodule.c(976): error C2065: 'clips_FactObject': undeclared identifier clipsmodule.c(976): error C2059: syntax error: ')' clipsmodule.c(977): error C2065: 'clips_FactObject': undeclared identifier clipsmodule.c(977): error C2059: syntax error: ')' clipsmodule.c(985): error C2065: 'clips_FactObject': undeclared identifier clipsmodule.c(981): warning C4047: 'initializing': 'Py_ssize_t' differs in levels of indirection from 'char [5]' clipsmodule.c(981): warning C4113: 'void (__cdecl *)(PyObject *)' differs in parameter lists from 'printfunc' clipsmodule.c(981): warning C4133: 'initializing': incompatible types - from 'void (__cdecl *)(PyObject *)' to 'printfunc' clipsmodule.c(1001): error C2054: expected '(' to follow 'staticforward' clipsmodule.c(1001): error C2085: 'clips_AddressType': not in formal parameter list clipsmodule.c(1007): error C2085: 'clips_AddressObject': not in formal parameter list clipsmodule.c(1018): error C2085: 'clips_AddressObject_dealloc': not in formal parameter list clipsmodule.c(1018): error C2143: syntax error: missing ';' before '{' clipsmodule.c(1026): error C2065: 'clips_AddressObject': undeclared identifier clipsmodule.c(1028): error C2065: 'clips_AddressObject_dealloc': undeclared identifier clipsmodule.c(1022): warning C4047: 'initializing': 'Py_ssize_t' differs in levels of indirection from 'char [8]' clipsmodule.c(1022): error C2099: initializer is not a constant clipsmodule.c(1042): error C2054: expected '(' to follow 'staticforward' clipsmodule.c(1042): error C2085: 'clips_DeffactsType': not in formal parameter list clipsmodule.c(1047): error C2085: 'clips_DeffactsObject': not in formal parameter list clipsmodule.c(1055): error C2085: 'clips_DeffactsObject_dealloc': not in formal parameter list clipsmodule.c(1055): error C2143: syntax error: missing ';' before '{' clipsmodule.c(1063): error C2065: 'clips_DeffactsObject': undeclared identifier clipsmodule.c(1065): error C2065: 'clips_DeffactsObject_dealloc': undeclared identifier clipsmodule.c(1059): warning C4047: 'initializing': 'Py_ssize_t' differs in levels of indirection from 'char [9]' clipsmodule.c(1059): error C2099: initializer is not a constant clipsmodule.c(1079): error C2054: expected '(' to follow 'staticforward' clipsmodule.c(1079): error C2085: 'clips_DefruleType': not in formal parameter list clipsmodule.c(1084): error C2085: 'clips_DefruleObject': not in formal parameter list clipsmodule.c(1092): error C2085: 'clips_DefruleObject_dealloc': not in formal parameter list clipsmodule.c(1092): error C2143: syntax error: missing ';' before '{' clipsmodule.c(1100): error C2065: 'clips_DefruleObject': undeclared identifier clipsmodule.c(1102): error C2065: 'clips_DefruleObject_dealloc': undeclared identifier clipsmodule.c(1096): warning C4047: 'initializing': 'Py_ssize_t' differs in levels of indirection from 'char [8]' clipsmodule.c(1096): error C2099: initializer is not a constant clipsmodule.c(1116): error C2054: expected '(' to follow 'staticforward' clipsmodule.c(1116): error C2085: 'clips_ActivationType': not in formal parameter list clipsmodule.c(1121): error C2085: 'clips_ActivationObject': not in formal parameter list clipsmodule.c(1129): error C2085: 'clips_ActivationObject_dealloc': not in formal parameter list clipsmodule.c(1129): error C2143: syntax error: missing ';' before '{' clipsmodule.c(1137): error C2065: 'clips_ActivationObject': undeclared identifier clipsmodule.c(1139): error C2065: 'clips_ActivationObject_dealloc': undeclared identifier clipsmodule.c(1133): warning C4047: 'initializing': 'Py_ssize_t' differs in levels of indirection from 'char [11]' clipsmodule.c(1133): error C2099: initializer is not a constant clipsmodule.c(1153): error C2054: expected '(' to follow 'staticforward' clipsmodule.c(1153): error C2085: 'clips_DefglobalType': not in formal parameter list clipsmodule.c(1158): error C2085: 'clips_DefglobalObject': not in formal parameter list clipsmodule.c(1166): error C2085: 'clips_DefglobalObject_dealloc': not in formal parameter list clipsmodule.c(1166): error C2143: syntax error: missing ';' before '{' clipsmodule.c(1174): error C2065: 'clips_DefglobalObject': undeclared identifier clipsmodule.c(1176): error C2065: 'clips_DefglobalObject_dealloc': undeclared identifier clipsmodule.c(1170): warning C4047: 'initializing': 'Py_ssize_t' differs in levels of indirection from 'char [10]' clipsmodule.c(1170): error C2099: initializer is not a constant clipsmodule.c(1190): error C2054: expected '(' to follow 'staticforward' clipsmodule.c(1190): error C2085: 'clips_DeffunctionType': not in formal parameter list clipsmodule.c(1195): error C2085: 'clips_DeffunctionObject': not in formal parameter list clipsmodule.c(1203): error C2085: 'clips_DeffunctionObject_dealloc': not in formal parameter list clipsmodule.c(1203): error C2143: syntax error: missing ';' before '{' clipsmodule.c(1211): error C2065: 'clips_DeffunctionObject': undeclared identifier clipsmodule.c(1213): error C2065: 'clips_DeffunctionObject_dealloc': undeclared identifier clipsmodule.c(1207): warning C4047: 'initializing': 'Py_ssize_t' differs in levels of indirection from 'char [12]' clipsmodule.c(1207): error C2099: initializer is not a constant clipsmodule.c(1227): error C2054: expected '(' to follow 'staticforward' clipsmodule.c(1227): error C2085: 'clips_DefgenericType': not in formal parameter list clipsmodule.c(1227): fatal error C1003: error count exceeds 100; stopping compilation error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\cl.exe' failed with exit status 2
What changes have you done in setup file? Thx
I adapted the setup.py to make it run under python3.
Yet, when trying to build it, I get the error below. Any ideas what is wrong? I am using VisualStudio 2015 tooling.