Installation and execution on opensuse 11.4 x86_64

13 views
Skip to first unread message

Daniele

unread,
Oct 25, 2011, 2:03:44 PM10/25/11
to femhub
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

Pavel Solin

unread,
Oct 25, 2011, 2:17:03 PM10/25/11
to fem...@googlegroups.com
Hi Daniele,
  thank you for letting us know about the problems. As you may 
have noticed from the mailing list, femhub-distro was on hold for 
quite some time, so not everything is up to date. A few days ago
we actually started to fix it again, but this will take a few weeks.
First we need to finish the conversion of all packages to debian
format, then we'll update the build system and fix remaining 
bugs. In the meantime, you can use NCLab (nclab.com) where the 
femhub-distro will be available. In particular, we just released 
Hermes version 1.0 and its Python wrappers will be finished 
in few weeks. Then it will be automatically available in femhub-distro. 
The old Sage-based online lab will not be supported in the future.  

Pavel



--
You received this message because you are subscribed to the Google Groups "femhub" group.
To post to this group, send email to fem...@googlegroups.com.
To unsubscribe from this group, send email to femhub+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/femhub?hl=en.




--
Pavel Solin
University of Nevada, Reno
http://hpfem.org/~pavel

Luke Satin

unread,
Oct 30, 2011, 4:39:47 PM10/30/11
to femhub
Hello,

What lead you to remove libreadline? rm -Rf femhub-0.9.10.beta1/local/
lib/libreadline*

I've found someone with the same problem here:
http://groups.google.com/group/sage-support/browse_thread/thread/67ef9e88220a18d0

They used same fix as you, so I think you did right.

I'm now trying to build femhub too. I looked to the source and saw
that mayavi package is commented, probably because of some conflict.
That's why you can't import it and use it right now. We need to update
all the packages.

I've started already. For example I'm trying to build it on Ubuntu
11.10 32bit and I had to build new packages for libgcrypt and
libgpg_error for femhub. Now I have to update some more packages (for
example update python and add pycrypto). I will try also mayavi for
you and try to update the repository as soon as possible.

BTW: Nice choice for openSUSE ;-) But I had a lot of problems on my
laptop (buggy drivers), so I switched to Ubuntu.

Luke
> University of Nevada, Renohttp://hpfem. <http://hpfem.math.unr.edu/people/pavel/>org/~pavel
Reply all
Reply to author
Forward
0 new messages