woo

Ellipsoid

Asked by Jie Qin

My system is Ubuntu 12.04, I install the python-woo package using apt-get install and found the version of woo is 0.99+3342+14~Ubuntu12.04.1.

The problem is both ell0.py and ell1.py in the sample files cannot run and an error occur: 'module' object has no attribute 'ellipsoid'. However, the remain sample files can successfully run without any problems.

The strange thing is I successfully run both files yesterday, and then my computer is collapsed. when I reinstall Ubuntu 12.04 and python-woo, the above error occur. I do not know why. would you please give me some ideas.

Question information

Language:
English Edit question
Status:
Answered
For:
woo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Václav Šmilauer (eudoxos) said :
#1

Hi, the problem is that the woo.utils.ellipsoid function was not added until rev. 3348, so you seem to be running a newer example script (ell0.py and ell1.py) with an older version (rev. 3342).

If you can, build the package locally (we have a problem with launchpad buildbots running out of RAM for compilation, so not all versions have their packages; and we can do nothing about that); ideally, follow the procedure from https://launchpad.net/woo/:

     sudo apt-get build-dep woo # needed just once
     apt-get source --build woo # compile binary package from source pkg
     sudo dpkg -i python-woo. ... .deb # install the package; replace the ... by the actual version number

Revision history for this message
Jie Qin (jqin-k) said :
#2

Hi, Vaclav, Thank you for your kind reply. Unfortunately, I cannot compile the binary package.

when I input $ apt-get source --build woo, it compiles several files and then following errors occur. would you please give me some suggestions.

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWOO_REVISION=debian -DWOO_VERSION=0.99+3376+14~ubuntu13.10.1 -DWOO_SOURCE_ROOT= -DWOO_BUILD_ROOT=/home/qinjie/woo-0.99+3376+14~ubuntu13.10.1/build-src-tree -DWOO_FLAVOR= -DWOO_CXX_FLAVOR= -DWOO_QT4 -DWOO_VTK -DWOO_OPENGL -DWOO_GTS -DWOO_OPENMP -DWOO_NOXML -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_OPENGL_LIB -DQT_SHARED -Ibuild-src-tree -I/usr/include/eigen3 -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/vtk-5.8 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/include/python2.7 -c build-src-tree/src/chunk-02.cpp -o build/temp.linux-x86_64-2.7/build-src-tree/src/chunk-02.o -Wall -fvisibility=hidden -std=c++11 -pipe -g0 -O3 -march=core2 -fopenmp
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
dh_auto_build: python setup.py build --force returned exit code 1
make: *** [build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Build command 'cd woo-0.99+3376+14~ubuntu13.10.1 && dpkg-buildpackage -b -uc' failed.
E: Child process failed

Revision history for this message
Václav Šmilauer (eudoxos) said :
#3

Hi Jie Quin, it looks like you don't have enough RAM - do you have at least 4GB of it?

   x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1plus)

indicates that the process was killed, which happens when it exhausts RAM - the then kernel kills it to keep the rest of the OS functioning.

HTH, Vaclav

Revision history for this message
Václav Šmilauer (eudoxos) said :
#4

If you don't have enough RAM, you can use clang to build Woo, though not sure how that works on 12.04 - I will update the docs about that if you need it. I will also try to re-build the package over and over so that there is eventually one built for 12.04 on amd64. Sorry for inconveniences.

Revision history for this message
Jie Qin (jqin-k) said :
#5

Hi, Vaclav, thank you for your continuos help. Yes, you are right, it is attributed to the limited size of RAM. Now, all the files are successfully buit, but a new error occurs at this moment. By the way, I upgrade my Ubuntu to 13.10 yesterday (anyway, if I cannot built it in 13.10, I will change back to 12.04).

qinjie@ubuntu:~$ apt-get source --build woo

Reading package lists... Done
Building dependency tree
Reading state information... Done
Skipping already downloaded file 'woo_0.99+3388+14~ubuntu13.10.1.tar.gz'
Skipping already downloaded file 'woo_0.99+3388+14~ubuntu13.10.1.dsc'
Need to get 0 B of source archives.
Skipping unpack of already unpacked source in woo-0.99+3388+14~ubuntu13.10.1
dpkg-buildpackage: source package woo
dpkg-buildpackage: source version 0.99+3388+14~ubuntu13.10.1
dpkg-buildpackage: source changed by Václav Šmilauer <email address hidden>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build woo-0.99+3388+14~ubuntu13.10.1
dpkg-checkbuilddeps: Unmet build dependencies: libqglviewer-qt4-dev | libqglviewer-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
Build command 'cd woo-0.99+3388+14~ubuntu13.10.1 && dpkg-buildpackage -b -uc' failed.
E: Child process failed

And then I listed the files and folders in current path:
qinjie@ubuntu:~$ ls

Desktop Pictures woo_0.99+3376+14~ubuntu13.10.1.dsc
Documents Public woo_0.99+3376+14~ubuntu13.10.1.tar.gz
Downloads Templates woo-0.99+3388+14~ubuntu13.10.1
examples.desktop Videos woo_0.99+3388+14~ubuntu13.10.1.dsc
Music woo-0.99+3376+14~ubuntu13.10.1 woo_0.99+3388+14~ubuntu13.10.1.tar.gz

Revision history for this message
Václav Šmilauer (eudoxos) said :
#6

Run the 'sudo apt-get build-dep woo' command again, that should fix the

    dpkg-checkbuilddeps: Unmet build dependencies: libqglviewer-qt4-dev | libqglviewer-dev

line. Then build again, it should work.

Can you help with this problem?

Provide an answer of your own, or ask Jie Qin for more information if necessary.

To post a message you must log in.