snap-python icon indicating copy to clipboard operation
snap-python copied to clipboard

make: *** [swig] Error 2

Open mokaily opened this issue 1 year ago • 4 comments

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!

mokaily avatar Mar 13 '24 21:03 mokaily

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

HerrMotz avatar May 28 '24 13:05 HerrMotz

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 avatar Jun 06 '24 14:06 xiaoming-g

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.

xiaoming-g avatar Jun 06 '24 14:06 xiaoming-g