Test pyplasm

118 views
Skip to first unread message

Aayush Poudel

unread,
Jun 6, 2011, 12:57:39 PM6/6/11
to Pavel Solin, femhub
Hi Pavel,

I have created spkg of pyplasm
it builts without error inside femhub my laptop, but gives some error while importing it in python in femhub.
Could you please test it and post the errors you get if it failed to build. I wand to make sure spkg is created correctly

you need to install the following package in femhub

http://femhub.org/others/pyplasm.spkg


Thanks,
Aayush Poudel
http://www.aayushpoudel.info


Pavel Solin

unread,
Jun 6, 2011, 4:42:04 PM6/6/11
to fem...@googlegroups.com
On Mon, Jun 6, 2011 at 12:57 PM, Aayush Poudel <aayush...@gmail.com> wrote:
Hi Pavel,

I have created spkg of pyplasm
it builts without error inside femhub my laptop, but gives some error while importing it in python in femhub.
Could you please test it and post the errors you get if it failed to build. I wand to make sure spkg is created correctly

you need to install the following package in femhub

http://femhub.org/others/pyplasm.spkg

I installed these packages. With the last one, look at the message at the end:

pavel@verca:~/repos/femhub(master)$ femhub -i http://femhub.org/others/pyplasm.spkg
--2011-06-06 16:36:04--  http://femhub.org/others/pyplasm.spkg
Resolving femhub.org... 134.197.117.197
Connecting to femhub.org|134.197.117.197|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 89069381 (85M) [text/plain]
Saving to: `/tmp/tmpRsX6Aj/pyplasm.spkg'

100%[============================================================================================>] 89,069,381   531K/s   in 2m 55s  

2011-06-06 16:39:00 (497 KB/s) - `/tmp/tmpRsX6Aj/pyplasm.spkg' saved [89069381/89069381]

Package '' is already installed

When I try to import pyplasm, I get the following error:

 pavel@verca:~/repos/femhub(master)$ femhub
----------------------------------------------------------------------
| FEMhub Version 0.9.10.beta1, Release Date: November 21, 2010       |
| Type lab() for the GUI.                                            |
----------------------------------------------------------------------
In [1]: from pyplasm import *
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/pavel/repos/femhub/<ipython console> in <module>()

ImportError: No module named pyplasm



Thanks,
Aayush Poudel
http://www.aayushpoudel.info


--
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
Home page: http://hpfem.org/~pavel
FEMTEC 2011: http://hpfem.org/events/femtec-2011/
Hermes: http://hpfem.org/
FEMhub: http://femhub.org/

Alberto Paoluzzi

unread,
Jun 7, 2011, 2:03:36 AM6/7/11
to Pavel Solin, fem...@googlegroups.com, Franco Milicchio, Antonio Di Carlo, Luciano Teresi, Enrico Marino, federico spini, Scorzelli Giorgio
Hi Pavel,

we installed (the last days version of) the online lab in a server in our CAD/PLM lab (http://plmserver.dia.uniroma3.it:8000/)
on a IBM P650 server (Debian Linux) with  8 POWER2 processors, 16 GB of memory and TB disk.
Franco had to patch both swig and fenhub to work in this environment. 
When the pyplasm spkg is inserted in the online lab trunk please let us know. Franco may provide the patch.

Thanks,
Alberto

Also, some materials from your lectures may be useful to make some first experiments with the online lab. Where to look for?

Aayush Poudel

unread,
Jun 7, 2011, 2:45:38 AM6/7/11
to fem...@googlegroups.com
On Mon, Jun 6, 2011 at 1:42 PM, Pavel Solin <so...@unr.edu> wrote:


On Mon, Jun 6, 2011 at 12:57 PM, Aayush Poudel <aayush...@gmail.com> wrote:
Hi Pavel,

I have created spkg of pyplasm
it builts without error inside femhub my laptop, but gives some error while importing it in python in femhub.
Could you please test it and post the errors you get if it failed to build. I wand to make sure spkg is created correctly

you need to install the following package in femhub

http://femhub.org/others/pyplasm.spkg

I installed these packages. With the last one, look at the message at the end:

pavel@verca:~/repos/femhub(master)$ femhub -i http://femhub.org/others/pyplasm.spkg
--2011-06-06 16:36:04--  http://femhub.org/others/pyplasm.spkg
Resolving femhub.org... 134.197.117.197
Connecting to femhub.org|134.197.117.197|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 89069381 (85M) [text/plain]
Saving to: `/tmp/tmpRsX6Aj/pyplasm.spkg'

100%[============================================================================================>] 89,069,381   531K/s   in 2m 55s  

2011-06-06 16:39:00 (497 KB/s) - `/tmp/tmpRsX6Aj/pyplasm.spkg' saved [89069381/89069381]

Package '' is already installed

Could you please try it like 

$ femhub -f -i package_name

Pavel Solin

unread,
Jun 7, 2011, 3:36:42 AM6/7/11
to fem...@googlegroups.com
Aayush,
  now pyplasm imports for me, but it is located in python2.6/site-packages
Is this the version for Python 2.7? Why is it in python2.6/site-packages ?

pavel@verca:~/repos/femhub(master)$ femhub
----------------------------------------------------------------------
| FEMhub Version 0.9.10.beta1, Release Date: November 21, 2010       |
| Type lab() for the GUI.                                            |
----------------------------------------------------------------------
In [1]: from pyplasm import *
Evaluating fenvs.py..
/home/pavel/repos/femhub/local/lib/python2.6/site-packages/pyplasm/fenvs.py
Initializing FreeImage library
...fenvs.py imported in 0.79 seconds

Pavel Solin

unread,
Jun 7, 2011, 4:02:42 AM6/7/11
to fem...@googlegroups.com, Franco Milicchio, Antonio Di Carlo, Luciano Teresi, Enrico Marino, federico spini, Scorzelli Giorgio, Alberto Paoluzzi
Hello Alberto, 
  I was able to launch the PyPlasm Viewer in the Online Lab 
locally, using WebGL (see the attached screenshot). How can I get 
to some more complicated geometries? 

We need to fix some minor bugs and the make PyPlasm part of the 
production version of the OL now, I asked my students to work on this. 

On Tue, Jun 7, 2011 at 2:03 AM, Alberto Paoluzzi <apao...@me.com> wrote:
Hi Pavel,

we installed (the last days version of) the online lab in a server in our CAD/PLM lab (http://plmserver.dia.uniroma3.it:8000/)

What exactly have you installed - the SDK?
 
on a IBM P650 server (Debian Linux) with  8 POWER2 processors, 16 GB of memory and TB disk.
Franco had to patch both swig and fenhub to work in this environment. 
When the pyplasm spkg is inserted in the online lab trunk please let us know. Franco may provide the patch.

My student Aayush has created the package, it works with some minor flaws that
he is working on now.  


Thanks,
Alberto

Also, some materials from your lectures may be useful to make some first experiments with the online lab. Where to look for?

If you log into the Online Lab at lab.femhub.org, you can Fork any of the 
Published Worksheets, and run/modify them in your account. Was this the 
question?

I plan (pending your approval) to spend the first lecture with basics of higher-order FEM,
the second with more advanced aspects, and the third with the Online Lab. We do not 
have advanced PDE applications in the Online Lab yet but I would show what can be done 
currently. Would that be OK?

Best,

Pavel
Screenshot-224.png

Aayush Poudel

unread,
Jun 7, 2011, 3:16:41 PM6/7/11
to fem...@googlegroups.com
On Tue, Jun 7, 2011 at 12:36 AM, Pavel Solin <so...@unr.edu> wrote:
Aayush,
  now pyplasm imports for me, but it is located in python2.6/site-packages
Is this the version for Python 2.7? Why is it in python2.6/site-packages ?

Hi Pavel,

Its because in femhub we have been using python2.6, but I don't think it makes any difference as long as it builds without error in femhub. 
 
Thanks

Aayush

Pavel Solin

unread,
Jun 7, 2011, 3:48:23 PM6/7/11
to fem...@googlegroups.com
On Tue, Jun 7, 2011 at 3:16 PM, Aayush Poudel <aayush...@gmail.com> wrote:
On Tue, Jun 7, 2011 at 12:36 AM, Pavel Solin <so...@unr.edu> wrote:
Aayush,
  now pyplasm imports for me, but it is located in python2.6/site-packages
Is this the version for Python 2.7? Why is it in python2.6/site-packages ?

Hi Pavel,

Its because in femhub we have been using python2.6, but I don't think it makes any difference as long as it builds without error in femhub. 

Federico created extra for us a package that is based on Python 2.7: 

> I setup a pyplasm package buildable with Python 2.7. You can find it here: 

Do you still have the import errors?

Pavel

Aayush Poudel

unread,
Jun 7, 2011, 6:36:55 PM6/7/11
to fem...@googlegroups.com
On Tue, Jun 7, 2011 at 12:48 PM, Pavel Solin <so...@unr.edu> wrote:


On Tue, Jun 7, 2011 at 3:16 PM, Aayush Poudel <aayush...@gmail.com> wrote:
On Tue, Jun 7, 2011 at 12:36 AM, Pavel Solin <so...@unr.edu> wrote:
Aayush,
  now pyplasm imports for me, but it is located in python2.6/site-packages
Is this the version for Python 2.7? Why is it in python2.6/site-packages ?

Hi Pavel,

Its because in femhub we have been using python2.6, but I don't think it makes any difference as long as it builds without error in femhub. 

Federico created extra for us a package that is based on Python 2.7: 

> I setup a pyplasm package buildable with Python 2.7. You can find it here: 

Do you still have the import errors?

After doing export LD_LIBRARY_PATH=$SPKG_LOCAL/lib/python2.6/site-packages/pyplasm/xge/
It worked.

Now I'll add this in femhub and send the patch. 
Reply all
Reply to author
Forward
0 new messages