snap-stanford / snap-python

SNAP Python code, SWIG related files
Other
295 stars 107 forks source link

make: *** [swig] Error 2 #164

Open mokaily opened 6 months ago

mokaily commented 6 months ago

I am trying to install it in windows and i receive this error:

 swig  -python -c++ -w302,312,317,325,362,383,384,389,401,503,508,509 -O -I../../snap/snap-core -I../../snap/glib-core snap.i
..\..\snap\glib-core\dt.h(1413) : Error: Syntax error - possibly a missing semicolon (';').
Makefile:106: recipe for target 'snap_wrap3.cxx' failed
make[1]: *** [snap_wrap3.cxx] Error 1
make[1]: Leaving directory 'C:/Users/midos/Downloads/snap/snap-python/swig'
Makefile:14: recipe for target 'swig' failed
make: *** [swig] Error 2

I checked dt.h file around line 1413 and seems to have no syntax error

any help please!

HerrMotz commented 4 months ago

I have the same error on arch using swig 4.2.1-3.

xiaoming-g commented 3 months ago

I have the same error on arch using swig 4.2.1-3.

Perhaps the issue is with your Python version; you could try using the Python 3.7 version. I have installed the library using the command pip install snap-stanford based on the Python 3.7 version.

xiaoming-g commented 3 months ago

I am trying to install it in windows and i receive this error:

 swig  -python -c++ -w302,312,317,325,362,383,384,389,401,503,508,509 -O -I../../snap/snap-core -I../../snap/glib-core snap.i
..\..\snap\glib-core\dt.h(1413) : Error: Syntax error - possibly a missing semicolon (';').
Makefile:106: recipe for target 'snap_wrap3.cxx' failed
make[1]: *** [snap_wrap3.cxx] Error 1
make[1]: Leaving directory 'C:/Users/midos/Downloads/snap/snap-python/swig'
Makefile:14: recipe for target 'swig' failed
make: *** [swig] Error 2

I checked dt.h file around line 1413 and seems to have no syntax error

any help please!

Perhaps the issue is with your Python version; you could try using the Python 3.7 version. I have installed the library using the command pip install snap-stanford based on the Python 3.7 version.