ImportError: cannot import name povray
Hi there,
I am running Esys_particle from flash driving and have made a considerable progress with the tutorial. However I am getting an error message for the povray part. Please see the response from the terminal and my script
Response from terminal:
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@ubuntu:~$ export PATH=/usr/
ubuntu@ubuntu:~$ export LD_LIBRARY_
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ export LIBRARY_
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ export PYTHONPATH=
ubuntu@ubuntu:~$ cd /home/ubuntu/
ubuntu@
CSubLatticeCont
Traceback (most recent call last):
File "bingle_vis.py", line 3, in <module>
from esys.lsm.vis import povray
ImportError: cannot import name povray
My script:
from esys.lsm import *
from esys.lsm.util import Vec3, BoundingBox
from esys.lsm.vis import povray
def snapshot(
pkg = povray
scene = pkg.Scene()
for pp in particles:
povsphere = pkg.Sphere(
povsphere.
scene.
camera =scene.getCamera()
camera.
camera.
camera.
scene.render(
offScreen=True,
interactive=
fileName=
size=[800,600]
)
return
sim = LsmMpi(
sim.initNeighbo
particleType
gridSpacing=2.5,
verletDist=0.5
)
sim.setNumTimeSteps (10000)
sim.setTimeStep
# specify the spatial domain#
sim.setSpatialD
BoundingBox(
)
#particle creation and initialisation#
particle=
particle.
sim.createParti
#add a second particle to the simulation object
particle=
particle.
sim.createParti
#defining interraction between particles using the linear elastic repulsion
sim.createInter
NRotElasticPrms (
name = "elastic_
normalK = 10000.0
)
)
#outputing data
N_max = sim.getNumTimeS
for n in range (N_max):
sim.runTimeStep()
if (n%100==0):
particles = sim.getParticle
snapshot(
sim.exit()
Please help !
Kind regards
Tope
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by Temitope
Can you help with this problem?
Provide an answer of your own, or ask Temitope for more information if necessary.