error with "povray" line 14 in tutorial bingle vis.py

Asked by Celso Neto

Please, someone can help me? I found this error in tutorial "bingle_vis.py":

esys@esys ~ $ mpirun -np 2 /usr/local/bin/mpipython /home/esys/Desktop/bingle_vis.py
CSubLatticeControler::initMPI()
  File "/home/esys/Desktop/bingle_vis.py", line 14
    pkg = povray
      ^
IndentationError: expected an indented block
^Cmpirun: killing job...

--------------------------------------------------------------------------
mpirun noticed that process rank 0 with PID 6498 on node esys exited on signal 0 (Unknown signal 0).
--------------------------------------------------------------------------
2 total processes killed (some possibly by mpirun during cleanup)
mpirun: clean termination accomplished

esys@esys ~ $

thank you very much!

Question information

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

Hi, Celso Neto:

You can try change your indent character from tab to space, see if that is going to help, python is strict on indentation.

Feng

Revision history for this message
Celso Neto (celsocneto) said :
#2

thank you, Feng,

Now I'm finding the message below:

esys@esys ~ $ mpirun -np 2 /usr/local/bin/mpipython /home/esys/Desktop/bingle_vis.py
CSubLatticeControler::initMPI()
/usr/local/bin/mpipython: can't find '__main__.py' in '/home/esys/Desktop/bingle_vis.py'
--------------------------------------------------------------------------
mpirun has exited due to process rank 0 with PID 4258 on
node esys exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------
esys@esys ~ $

I appreciate any kind of help.

Thank you for your help again...

Revision history for this message
Feng Chen (fchen3-gmail) said :
#3

Hi, Celso Neto:

I uploaded a copy of bingle_vis.py here:

https://sites.google.com/site/fengchenmaple/test

It runs well on my laptop, I guess your problem might still relate to something like indentation, you can compare your file to the file above (using "Kompare" is an option) and see the differences. Let me know if you have further questions.

Feng

Revision history for this message
Dion Weatherley (d-weatherley) said :
#4

Hi Celso,

Please post a copy of your bingle_vis.py script. The error message is probably due to a typing error in the script.

Cheers,

Dion.

Revision history for this message
Celso Neto (celsocneto) said :
#5

Thank you Feng and Dion,

Problem solved !!!

Celso