Orange Forum • View topic - Orange Python installation in Ubuntu 12.04

Orange Python installation in Ubuntu 12.04

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

Orange Python installation in Ubuntu 12.04

Postby Manoj » Thu Aug 30, 2012 19:12

I am using Ubuntu 12.04 and have done the following steps to install Orange

1. Downloading nightly buids from this link orange.biolab.si/download/orange-source-snapshot-hg-2012-08-30.zip

2 . Extract it to my home directory

3 . cd Orange-2.6a2

4. python setup.py build

But now it hangs at this point and never progresses

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]


Can someone tell me how to proceed or some alternate method of installing. Thanks

Re: Orange Python installation in Ubuntu 12.04

Postby Ales » Fri Aug 31, 2012 9:45

It complies fine for me.
Can you post a bit more of the build output at the point when it hangs. In particular, all of the text from the last line up to the start of the last 'gcc' command.

Re: Orange Python installation in Ubuntu 12.04

Postby Manoj » Fri Aug 31, 2012 9:56

This is my build output

running build
running build_py
copying Orange/version.py -> build/lib.linux-x86_64-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 files found matching 'COPYRIGHT' under directory 'source'
warning: no files found matching 'Makefile' under directory 'source'
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'
warning: no files found matching 'Makefile' under directory 'docs'
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 -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-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-x86_64-2.7/source/orange/tdidt.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]

Then this part keeps repeating

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/liblinear_interface.cpp -o build/temp.linux-x86_64-2.7/source/orange/liblinear_interface.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]

Re: Orange Python installation in Ubuntu 12.04

Postby Ales » Fri Aug 31, 2012 10:36

How long does it stay at that last gcc command before you kill it?
Can you check with System Monitor how much resources (memory and cpu) does the cc1plus process at that point use?

Re: Orange Python installation in Ubuntu 12.04

Postby Manoj » Fri Aug 31, 2012 10:47

It repeats itself after every 30 seconds.

96 % CPU and around 110 - 150 MB

Re: Orange Python installation in Ubuntu 12.04

Postby Ales » Fri Aug 31, 2012 11:00

Manoj wrote:It repeats itself after every 30 seconds.

Do you mean the exact same command is repeating itself, always compiling the same 'source/orange/liblinear_interface.cpp' file over and over?

Re: Orange Python installation in Ubuntu 12.04

Postby Manoj » Fri Aug 31, 2012 11:15

Yes the same file gets compiled over and over. I tried removing and re-installing but Im still facing the same problem.

Re: Orange Python installation in Ubuntu 12.04

Postby Ales » Fri Aug 31, 2012 11:41

What happens if you just enter the command at the terminal (at the same directory just copy/paste this whole command)
Code: Select all
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/liblinear_interface.cpp -o build/temp.linux-x86_64-2.7/source/orange/liblinear_interface.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS

Re: Orange Python installation in Ubuntu 12.04

Postby Manoj » Fri Aug 31, 2012 12:31

It displays this:

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]

then it waits for some time and then terminates.

Re: Orange Python installation in Ubuntu 12.04

Postby Ales » Fri Aug 31, 2012 13:39

This is very strange.
If you run
Code: Select all
python setup.py build_ext --dry-run
does it also get stuck at that same file?

Re: Orange Python installation in Ubuntu 12.04

Postby Manoj » Fri Aug 31, 2012 14:33

No it doesn't it . It terminates showing an error

error: can't copy 'orange.so': doesn't exist or not a regular file

Re: Orange Python installation in Ubuntu 12.04

Postby Ales » Fri Aug 31, 2012 16:11

Manoj wrote:error: can't copy 'orange.so': doesn't exist or not a regular file
That is expected.

Well I can't think of any thing that could do this. One last shot however:
can you run
Code: Select all
python setup.py clean

and then
Code: Select all
export DISTUTILS_DEBUG=1
python setup.py build_ext
let it run until it gets to that file and post the entire output of the run to pastebin.com for instance.

Re: Orange Python installation in Ubuntu 12.04

Postby Manoj » Fri Aug 31, 2012 18:26

I did it. Here is the output.

http://pastebin.com/YLwFNWbz

Re: Orange Python installation in Ubuntu 12.04

Postby Manoj » Sat Sep 01, 2012 13:15

Any ideas or alternate methods?

Re: Orange Python installation in Ubuntu 12.04

Postby Ales » Mon Sep 03, 2012 9:58

Manoj wrote:Any ideas or alternate methods?
I see nothing that could be wrong from the output.

Can you try building orange using 'make' from the source directory
Code: Select all
cd source
make EXCLUDE_ORANGEQT=1


Then if this succeeds you might be able to install orange in development mode. Back at the root source directory run
Code: Select all
python setup.py build_ext --inplace --dry-run develop
(use sudo of you want to register the package with global site packages).

Next

Return to Questions & Support