Welcome to ask.woodem.org. You may post when you login through your GitHub account.

Installing Woo on Ubuntu 18.04 running on VirtualBox

0 votes
80 views
asked Mar 4 by coderguruz (200 points)
edited Mar 4 by coderguruz

I am having problems with the installation of Woo on Ubuntu 18.04 runnning on VirtualBox.

It seems that none of the procedures works, even with the most recent installation script, available here:

https://github.com/woodem/woo/blob/master/scripts/woo-install.py

1 Answer

0 votes
answered Mar 4 by eudoxos (49,150 points)
Hi, hard to help without more details. You'd be better off install in WSL, if you have suitable Windows version. Anyway, you need to have some knowledge of the OS to use the software, so it might well be that it is useless for you. If you find errors in the woo-install.py script, I will be happy to fix those. Best, Vaclav
commented Mar 4 by coderguruz (200 points)

I am trying to launch the woo-install.py script on a fresh installation of Ubuntu 18.04.2 in VirtualBox.
Apart the fact that, before launching the script, I need to install some preliminary stuff with this line in the terminal:
sudo apt install python3-pip git scons
I got this error message at the end, when I launch the script again:

ImportError: No module named builtins:
  File "/home/coderguruz/woo/SConstruct", line 25:
    from builtins import bytes, str, range
Traceback (most recent call last):
  File "woo-install.py", line 89, in <module>
    call(['scons','-C',args.src,'flavor=','features='+','.join(features),'jobs=%d'%args.jobs,'buildPrefix='+args.build_prefix,'CPPPATH='+cpppath,'CXX='+('ccache g++' if args.ccache else 'g++'),'brief=1','debug=0','PYTHON='+sys.executable])
  File "woo-install.py", line 41, in call
    if not failOk and ret!=0: raise RuntimeError('Error calling: '+' '.join(cmd))
RuntimeError: Error calling: scons -C /home/coderguruz/woo flavor= features=gts,openmp,vtk,hdf5,qt5,opengl jobs=2 buildPrefix=/home/coderguruz/woo-build CPPPATH=/usr/include/eigen3:/usr/include/hdf5/serial:/usr/include/vtk-6.3 CXX=g++ brief=1 debug=0 PYTHON=/usr/bin/python3
commented Mar 5 by eudoxos (49,150 points)

Try pip3 install future. That should get the builtins module, then proceed as before.

commented Mar 5 by coderguruz (200 points)

It doesn't work, since it says again that there is no module named builtins.

commented Mar 5 by eudoxos (49,150 points)

It might well be that scons still runs on python2. So do "pip2 install future" or "sudo apt install python-future".

commented Apr 14 by Flojo1994 (100 points)

Hey,

i try the same way (VMware Ubuntu 18.04.2):

installation process:
1. sudo apt install python-future
2. sudo apt install python3-pip git scons
3. git clone https://github.com/woodem/woo.git
4. cd woo/scripts
5. python3 woo-install.py

... the lat part of the installation shows some error like this:

======================================================================
ERROR: testSampling (woo.tests.clump.TestSphereClumpGeom)

SphereClumpGeom: properties via grid sampling

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/woo/tests/clump.py", line 116, in setUp
self.c=SphereClumpGeom(centers=[(0,0,0),(0,0,3)],radii=(1,.5),div=-1)
TypeError: No registered converter was able to produce a C++ rvalue of type std::vector<double, std::allocator > from this Python object of type tuple

======================================================================
ERROR: testSteiner (woo.tests.clump.TestSphereClumpGeom)

SphereClumpGeom: properties via Steiner's theorem

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/woo/tests/clump.py", line 116, in setUp
self.c=SphereClumpGeom(centers=[(0,0,0),(0,0,3)],radii=(1,.5),div=-1)
TypeError: No registered converter was able to produce a C++ rvalue of type std::vector<double, std::allocator > from this Python object of type tuple

======================================================================
ERROR: testPreserveResize (woo.tests.core.TestArrayAccu)

OpenMP array accu: preserve old data on resize

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/woo/tests/core.py", line 490, in testPreserveResize
self.t.aaccuRaw=(0,1)
Boost.Python.ArgumentError: Python argument types in
None.None(WooTestClass, tuple)
did not match C++ signature:
None(woo::WooTestClass {lvalue}, std::vector<double, std::allocator >)

...

Ran 162 tests in 2.351s

FAILED (errors=20, skipped=6)
******************** SOME TESTS FAILED ********************

commented May 9 by GeoGroup (120 points)

I have the same problem in Ubuntu 18.04.

...