Hi,
I tried to build from source the package femhub-0.9.10.beta1 on a
openSUSE 11.4 x86_64 distro.
In order to proceed to the end of the compilation and fix the
following error message
----------
/bin/sh: symbol lookup error: /bin/sh: undefined symbol:
rl_filename_rewrite_hook
real 0m0.001s
user 0m0.000s
sys 0m0.000s
FEMhub: An error occurred while installing bzip2-1.0.5
----------
I had to delete the 'readline' libraries:
$ rm -Rf femhub-0.9.10.beta1/local/lib/libreadline*
After a new 'make', I think it worked:
----------
Finished building FEMhub
----------
However I am not sure the installation has completely succeeded
(perhaps due to the lack of the 'readline' libraries?).
Indeed, if I work in the console and follow, as an attempt, the
example 'Neumann BC', when typing
sln.plot(filename="a.png")
I get the following error
---------------------------------------------------------------------------
ImportError Traceback (most recent call
last)
/home/dan/Documenti/source/femhub-0.9.10.beta1/<ipython console> in
<module>()
/home/dan/Documenti/source/femhub-0.9.10.beta1/local/lib/python/
hermes2d/_hermes2d.so in hermes2d._hermes2d.Solution.plot (/home/dan/
Documenti/source/femhub-0.9.10.beta1/spkg/build/hermes2d-ee3e3ab/
python/hermes2d/_hermes2d.cpp:8683)()
/home/dan/Documenti/source/femhub-0.9.10.beta1/local/lib/python/
hermes2d/plot.pyc in show(self, sln, show, lib, notebook, filename,
**options)
300 pylab.ioff()
301 elif lib == "mayavi":
--> 302 plot_sln_mayavi(sln, notebook=notebook)
303 from enthought.mayavi import mlab
304 if show:
/home/dan/Documenti/source/femhub-0.9.10.beta1/local/lib/python/
hermes2d/plot.pyc in plot_sln_mayavi(sln, notebook)
88 triangles = lin.get_triangles()
89 from numpy import zeros
---> 90 from enthought.mayavi import mlab
91 x = vert[:, 0]
92 y = vert[:, 1]
ImportError: No module named enthought.mayavi
---------------------------------------------------------------------------
and when typing the next line
mesh.plot(space=space, filename="b.png")
I get
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
/home/dan/Documenti/source/femhub-0.9.10.beta1/<ipython console> in
<module>()
/home/dan/Documenti/source/femhub-0.9.10.beta1/local/lib/python/
hermes2d/_hermes2d.so in hermes2d._hermes2d.Mesh.plot (/home/dan/
Documenti/source/femhub-0.9.10.beta1/spkg/build/hermes2d-ee3e3ab/
python/hermes2d/_hermes2d.cpp:6998)()
/home/dan/Documenti/source/femhub-0.9.10.beta1/local/lib/python/
hermes2d/plot.pyc in show(self, mesh, show, lib, notebook, space,
filename, **options)
346 p.savefig(filename)
347 else:
--> 348 p.show()
349 import pylab
350 pylab.show()
AttributeError: 'Figure' object has no attribute 'show'
---------------------------------------------------------------------------
About the graphic front end: when I start it with the command lab(), I
get from the console (besides many other messages):
---------------------------------------------------------------------------
[E 111025 19:15:31 jsonrpc:238] JSON-RPC: error: got 599 HTTP response
code
[W 111025 19:15:31 runtime:221] Removed '
http://localhost:9000'
service from services cache
---------------------------------------------------------------------------
and the input lines in the browser cannot be evaluated. I can edit
them, but the 'evaluate' command just below the lines (or shift+enter)
does not work. At the same time, the console writes
---------------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named onlinelab.service.engine.python
---------------------------------------------------------------------------
Do you have any advices to fix the problems?
Thank you,
Daniele