Discussion:
Install Python Module
Matthew MacLennan
2007-11-13 05:27:14 UTC
Permalink
Hello All,

I am a undergrad at the University of British Columbia and I am
working on Neural Networks. I am trying to get FANN 2.1.0 working on
my Ubuntu Linux OS. I installed the basic FANN component, but I am
having trouble installing the 'Python part.' I am attempting to
install from terminal but I get an error when trying the various
install methods (I was hoping someone might be able to offer some tips
on how to get around this issue):

***@mattmarq-laptop:~/FANN/python$ sudo make

and the output is:

Running SWIG before: swig -c++ -python pyfann/pyfann.i
sh: swig: not found
running build
running build_py
file pyfann/libfann.py (for module pyfann.libfann) not found
file pyfann/libfann.py (for module pyfann.libfann) not found
running build_ext
building 'pyfann._libfann' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -DSWIG_COMPILE -I../src/include
-I/usr/include/python2.5 -c pyfann/pyfann_wrap.cxx -o
build/temp.linux-i686-2.5/pyfann/pyfann_wrap.o
gcc: pyfann/pyfann_wrap.cxx: No such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1
make: *** [build-stamp] Error 1


Sincerely,
Matthew MacLennan
University of British Columbia
Cognitive Systems Program

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Conor Robinson
2007-11-13 08:00:00 UTC
Permalink
Matthew,

Looks like you do not have swig or its not in your path.
Post by Matthew MacLennan
sh: swig: not found
This should be a simple fix. http://www.swig.org/

You need it to generate the wrappers for fann... pyfann_wrap.cxx

-Conor
Post by Matthew MacLennan
Hello All,
I am a undergrad at the University of British Columbia and I am
working on Neural Networks. I am trying to get FANN 2.1.0 working on
my Ubuntu Linux OS. I installed the basic FANN component, but I am
having trouble installing the 'Python part.' I am attempting to
install from terminal but I get an error when trying the various
install methods (I was hoping someone might be able to offer some tips
Running SWIG before: swig -c++ -python pyfann/pyfann.i
sh: swig: not found
running build
running build_py
file pyfann/libfann.py (for module pyfann.libfann) not found
file pyfann/libfann.py (for module pyfann.libfann) not found
running build_ext
building 'pyfann._libfann' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -DSWIG_COMPILE -I../src/include
-I/usr/include/python2.5 -c pyfann/pyfann_wrap.cxx -o
build/temp.linux-i686-2.5/pyfann/pyfann_wrap.o
gcc: pyfann/pyfann_wrap.cxx: No such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1
make: *** [build-stamp] Error 1
Sincerely,
Matthew MacLennan
University of British Columbia
Cognitive Systems Program
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fann-general mailing list
https://lists.sourceforge.net/lists/listinfo/fann-general
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Vincenzo Di Massa
2007-11-13 08:47:18 UTC
Permalink
On ubuntu just

# sudo apt-get install swig

also make sure you have the latest beta or cvs version of fann.

Regards
Vincenzo
Post by Conor Robinson
Matthew,
Looks like you do not have swig or its not in your path.
Post by Matthew MacLennan
sh: swig: not found
This should be a simple fix. http://www.swig.org/
You need it to generate the wrappers for fann... pyfann_wrap.cxx
-Conor
Post by Matthew MacLennan
Hello All,
I am a undergrad at the University of British Columbia and I am
working on Neural Networks. I am trying to get FANN 2.1.0 working on
my Ubuntu Linux OS. I installed the basic FANN component, but I am
having trouble installing the 'Python part.' I am attempting to
install from terminal but I get an error when trying the various
install methods (I was hoping someone might be able to offer some tips
Running SWIG before: swig -c++ -python pyfann/pyfann.i
sh: swig: not found
running build
running build_py
file pyfann/libfann.py (for module pyfann.libfann) not found
file pyfann/libfann.py (for module pyfann.libfann) not found
running build_ext
building 'pyfann._libfann' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -DSWIG_COMPILE -I../src/include
-I/usr/include/python2.5 -c pyfann/pyfann_wrap.cxx -o
build/temp.linux-i686-2.5/pyfann/pyfann_wrap.o
gcc: pyfann/pyfann_wrap.cxx: No such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1
make: *** [build-stamp] Error 1
Sincerely,
Matthew MacLennan
University of British Columbia
Cognitive Systems Program
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fann-general mailing list
https://lists.sourceforge.net/lists/listinfo/fann-general
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fann-general mailing list
https://lists.sourceforge.net/lists/listinfo/fann-general
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

Continue reading on narkive:
Loading...