povray problem with tutorial

Asked by Vincent

Hello everyone,

I've installed Esys-particle on Kubuntu 9.04 (Dell laptop with centrino duo), using the packages from https://launchpad.net/~eudoxos/+archive/ppa.
I've started to go through the tutorial, but when I try to run bingle_vis.py (the example introducing visualization with povray) I encounter this problem:

CSubLatticeControler::initMPI()
/usr/lib/python2.6/dist-packages/esys/lsm/util/Process.py:18: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
  import popen2
Traceback (most recent call last):
  File "bingle_vis.py", line 19, in <module>
    from esys.lsm.vis import povray
ImportError: cannot import name povray

It seems that it's unable to reach the module. Have you any suggestions about the origin of the problem?

Actually I've also tried to install Esys-particle from sources (to see if it was solving the problem) using the instructions from FAQ #261 (ubuntu installation) but when when running "./configure CC=mpicc CXX=mpic++" it stops with the following error:

....
checking for C++ compiler default output file name...
configure: error: in `/home/vincent/instal/ESyS-Particle-2.0':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.

Best regards,
Vincent

Question information

Language:
English Edit question
Status:
Answered
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Feng Chen (fchen3-gmail) said :
#1

Hi, Vincent:

Did you have a chance to "look at the `config.log' for more details" ?? :-)

First, it seems you did not have probably configured openmpi, in kubuntu it is easy to do so by:

sudo apt-get install libopenmpi-dev openmpi-bin

Second, you need to have povray installed, and I think you probably need re-configure, if you are using kubuntu, just try
sudo apt-get install povray

if you install from povray source(see a previous post or povray homepage about this), it is more convenient to add a line to your .bashrc file:
export PATH=/yourPovrayBinaryDir/:PATH
and then
. .bashrc
in your $HOME folder

and then go to the source folder and type
make distclean
./configure CC=mpicc CXX=mpic++

Feng Chen
make sure it finds the povray

Revision history for this message
Diego Peinado Martín (diego-peinado) said :
#2

Hi Vicent, I'm not sure, but it seems that you do not have installed serveral packages needed. Probably the povray package, and the openmpi also.
Instead of using these packages, try to follow the FAQ regarding on installing ESYS in ubuntu, it works pretty well.

Can you help with this problem?

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

To post a message you must log in.