Orange Forum • View topic - error trying to build on opensuse 12.1

error trying to build on opensuse 12.1

A place to ask questions about methods in Orange and how they are used and other general support.

error trying to build on opensuse 12.1

Postby dculver1986 » Thu Nov 08, 2012 14:23

Hello,
I was trying to build from source on my machine using opensuse 12.1, and this is the error that I got :
Code: Select all
copying Orange/OrangeWidgets/plot/primitives/xcross_edges.obj -> build/lib.linux-i686-2.7/Orange/OrangeWidgets/plot/primitives
running build_ext
building 'orange_include' extension
creating build/temp.linux-i686-2.7/source
creating build/temp.linux-i686-2.7/source/include
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -I/usr/include/python2.7 -c source/include/crc32.cpp -o build/temp.linux-i686-2.7/source/include/crc32.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -I/usr/include/python2.7 -c source/include/c2py.cpp -o build/temp.linux-i686-2.7/source/include/c2py.o
In file included from source/include/c2py.cpp:22:0:
source/include/c2py.hpp:25:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1


any help is appreciated :)

Re: error trying to build on opensuse 12.1

Postby Ales » Thu Nov 08, 2012 14:35

You are probably missing python development package (python-devel). You will also need python-numpy-devel.

Re: error trying to build on opensuse 12.1

Postby dculver1986 » Thu Nov 08, 2012 16:19

Hi, thanks for the suggestion-
I installed those and it still hangs up..?
Code: Select all
Parsing orange.cpp
Warning: class 'PearsonCorrelation' will not be picklable
Warning: class 'ItemsetNodeProxy' will not be picklable
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/random.cpp -o build/temp.linux-i686-2.7/source/orange/random.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/discretize.cpp -o build/temp.linux-i686-2.7/source/orange/discretize.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/numeric_interface.cpp -o build/temp.linux-i686-2.7/source/orange/numeric_interface.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/estimateprob.cpp -o build/temp.linux-i686-2.7/source/orange/estimateprob.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/libsvm_interface.cpp -o build/temp.linux-i686-2.7/source/orange/libsvm_interface.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/classifier.cpp -o build/temp.linux-i686-2.7/source/orange/classifier.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/basket.cpp -o build/temp.linux-i686-2.7/source/orange/basket.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS                                                   
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/spec_gen.cpp -o build/temp.linux-i686-2.7/source/orange/spec_gen.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/rulelearner.cpp -o build/temp.linux-i686-2.7/source/orange/rulelearner.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/graph.cpp -o build/temp.linux-i686-2.7/source/orange/graph.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/logreg.cpp -o build/temp.linux-i686-2.7/source/orange/logreg.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/vars.cpp -o build/temp.linux-i686-2.7/source/orange/vars.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/tdidt.cpp -o build/temp.linux-i686-2.7/source/orange/tdidt.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/rule_conditions.cpp -o build/temp.linux-i686-2.7/source/orange/rule_conditions.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/tdidt_simple.cpp -o build/temp.linux-i686-2.7/source/orange/tdidt_simple.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/hclust.cpp -o build/temp.linux-i686-2.7/source/orange/hclust.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/stringvars.cpp -o build/temp.linux-i686-2.7/source/orange/stringvars.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/majority.cpp -o build/temp.linux-i686-2.7/source/orange/majority.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/valuelisttemplate.cpp -o build/temp.linux-i686-2.7/source/orange/valuelisttemplate.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/filegen.cpp -o build/temp.linux-i686-2.7/source/orange/filegen.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS

Re: error trying to build on opensuse 12.1

Postby Ales » Thu Nov 08, 2012 19:57

I was able to build orange in a fresh opensuse 12.1 virtual machine.
Can you provide more detailed description of what happens (also the full log)?

Re: error trying to build on opensuse 12.1

Postby dculver1986 » Thu Nov 08, 2012 21:45

Code: Select all
python setup.py build
running build
running build_py
copying Orange/version.py -> build/lib.linux-i686-2.7/Orange
running egg_info
writing requirements to Orange.egg-info/requires.txt
writing Orange.egg-info/PKG-INFO
writing top-level names to Orange.egg-info/top_level.txt
writing dependency_links to Orange.egg-info/dependency_links.txt
reading manifest file 'Orange.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'source/orangeqt/build'
no previously-included directories found matching 'source/orange/ppp'
no previously-included directories found matching 'source/orangeom/px'
no previously-included directories found matching 'source/orangene/ppp'
no previously-included directories found matching 'source/orangene/px'
no previously-included directories found matching 'source/orangene/ppp'
warning: no previously-included files found matching 'source/orangeom/lib_vectors.cpp'
warning: no previously-included files found matching 'source/orangene/lib_vectors.cpp'
writing manifest file 'Orange.egg-info/SOURCES.txt'
running build_ext
building 'Orange.orange' extension
running pyxtract for Orange.orange
/usr/bin/python ../pyxtract/defvectors.py
/usr/bin/python ../pyxtract/pyprops.py -n orange
/usr/bin/python ../pyxtract/pyxtract.py -m -n orange lib_kernel.cpp lib_components.cpp lib_preprocess.cpp lib_learner.cpp lib_io.cpp lib_vectors.cpp cls_example.cpp cls_value.cpp cls_orange.cpp cls_misc.cpp functions.cpp orange.cpp
Parsing lib_kernel.cpp
Parsing lib_components.cpp
Parsing lib_preprocess.cpp
Parsing lib_learner.cpp
Parsing lib_io.cpp
Parsing lib_vectors.cpp
Parsing cls_example.cpp
Parsing cls_value.cpp
Parsing cls_orange.cpp
Parsing cls_misc.cpp
Parsing functions.cpp
Parsing orange.cpp
Warning: class 'PearsonCorrelation' will not be picklable
Warning: class 'ItemsetNodeProxy' will not be picklable
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/random.cpp -o build/temp.linux-i686-2.7/source/orange/random.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/discretize.cpp -o build/temp.linux-i686-2.7/source/orange/discretize.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/numeric_interface.cpp -o build/temp.linux-i686-2.7/source/orange/numeric_interface.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/estimateprob.cpp -o build/temp.linux-i686-2.7/source/orange/estimateprob.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS

I have orange successfully installed on my windows 7 partition, I just don't like windows and would rather try to run this on linux. I suppose I could learn data mining without orange, but the program looks really good and I wanted to try it out. Is there anything else you want me to submit?


Return to Questions & Support