Re: [Hedge] LBM-DG
by Saumil Patel
Hi Andreas,
Until now, I have been using the following instructions:
http://documen.tician.de/hedge-manual/installing.html, to install hedge. I
downloaded a tarball. I wasn't using GIT. I think this will make a
difference when I try to use the repotool command below.
I re-installed hedge using the instructions from the following website:
http://wiki.tiker.net/Hedge/HowTo/InstallingFromGit. I could then use the
./repotool command. However, I had similar issues with running the test
files (i.e. ImportError: libboost_python.so.1.47.0: cannot open shared
object file: No such file or directory).
Best,
Saumil
On Fri, Sep 9, 2011 at 8:28 AM, Andreas Kloeckner <kloeckner(a)cims.nyu.edu>wrote:
> On Fri, 9 Sep 2011 00:19:05 -0400, Saumil Patel <saumil.patel134(a)gmail.com>
> wrote:
> Non-text part: multipart/mixed
> Non-text part: multipart/alternative
> > I deleted the manual boost version (1.47.0). And installed,
> > libboost1.42-all-dev, using my Ubuntu Software Package Manager.
> >
> > Now I get the following error when I run test_hedge.py:
> >
> > Traceback (most recent call last):
> > File "test_hedge.py", line 25, in <module>
> > from hedge.discr_precompiled import Discretization
> > File
> >
> "/usr/local/lib/python2.6/dist-packages/hedge-0.91-py2.6-linux-x86_64.egg/hedge/discr_precompiled.py",
> > line 28, in <module>
> > import hedge.discretization
> > File
> >
> "/usr/local/lib/python2.6/dist-packages/hedge-0.91-py2.6-linux-x86_64.egg/hedge/discretization.py",
> > line 28, in <module>
> > import hedge.tools
> > File
> >
> "/usr/local/lib/python2.6/dist-packages/hedge-0.91-py2.6-linux-x86_64.egg/hedge/tools.py",
> > line 29, in <module>
> > import hedge._internal
> > ImportError: libboost_python.so.1.47.0: cannot open shared object file:
> No
> > such file or directory
>
> ./repotool start-over
>
> should fix that.
>
> Andreas
>
> --
> Andreas Kloeckner
> Room 1105A (Warren Weaver Hall), Courant Institute, NYU
> http://www.cims.nyu.edu/~kloeckner/
> +1-401-648-0599
>
>
8 years, 3 months
Re: [Hedge] LBM-DG
by Saumil Patel
I deleted the manual boost version (1.47.0). And installed,
libboost1.42-all-dev, using my Ubuntu Software Package Manager.
Now I get the following error when I run test_hedge.py:
Traceback (most recent call last):
File "test_hedge.py", line 25, in <module>
from hedge.discr_precompiled import Discretization
File
"/usr/local/lib/python2.6/dist-packages/hedge-0.91-py2.6-linux-x86_64.egg/hedge/discr_precompiled.py",
line 28, in <module>
import hedge.discretization
File
"/usr/local/lib/python2.6/dist-packages/hedge-0.91-py2.6-linux-x86_64.egg/hedge/discretization.py",
line 28, in <module>
import hedge.tools
File
"/usr/local/lib/python2.6/dist-packages/hedge-0.91-py2.6-linux-x86_64.egg/hedge/tools.py",
line 29, in <module>
import hedge._internal
ImportError: libboost_python.so.1.47.0: cannot open shared object file: No
such file or directory
I must have some reference to the manual version somewhere in my
installation.
Saumil
On Thu, Sep 8, 2011 at 12:13 AM, Andreas Kloeckner
<kloeckner(a)cims.nyu.edu>wrote:
> On Wed, 7 Sep 2011 23:49:41 -0400, Saumil Patel <saumil.patel134(a)gmail.com>
> wrote:
> Non-text part: multipart/alternative
> > Hi Andreas,
> >
> > I followed all the steps and it seems like the build and installing of
> hedge
> > went fine.(i.e. "sudo python setup.py install" had no issues). When I
> try
> > to run the test_hedge.py file I get the following error:
> >
> > Traceback (most recent call last):
> > File "test_hedge.py", line 25, in <module>
> > from hedge.discr_precompiled import Discretization
> > File
> >
> "/usr/local/lib/python2.6/dist-packages/hedge-0.91-py2.6-linux-x86_64.egg/hedge/__init__.py",
> > line 21, in <module>
> > import pyublas
> > File
> >
> "/usr/local/lib/python2.6/dist-packages/PyUblas-2011.1-py2.6-linux-x86_64.egg/pyublas/__init__.py",
> > line 2, in <module>
> > import pyublas._internal
> > ImportError: libboost_python-py26.so.1.42.0: cannot open shared object
> file:
> > No such file or directory
> >
> > I think the issues here is in the Boost installation. I guess there
> could
> > be a number of places where I may have took a wrong turn but I think I
> > followed "STEP 2: Tell the Dynamic Linker about Boost" correctly. I
> wrote
> > the export command into my startup script perhaps I am missing something
> > about how I write the PATH of the shared libraries.
>
>
> If you're on Ubuntu, there's no need to manually install boost at all,
> as it's already available as a package. Just install
>
> libboost1.40-all-dev
>
> (or some such--version number might vary)
>
> Also make sure to completely get rid of your manual boost
> installation.
>
> HTH,
> Andreas
>
>
> --
> Andreas Kloeckner
> Room 1105A (Warren Weaver Hall), Courant Institute, NYU
> http://www.cims.nyu.edu/~kloeckner/
> +1-401-648-0599
>
>
8 years, 3 months
Re: [Hedge] LBM-DG
by Saumil Patel
Hi Andreas,
I followed all the steps and it seems like the build and installing of hedge
went fine.(i.e. "sudo python setup.py install" had no issues). When I try
to run the test_hedge.py file I get the following error:
Traceback (most recent call last):
File "test_hedge.py", line 25, in <module>
from hedge.discr_precompiled import Discretization
File
"/usr/local/lib/python2.6/dist-packages/hedge-0.91-py2.6-linux-x86_64.egg/hedge/__init__.py",
line 21, in <module>
import pyublas
File
"/usr/local/lib/python2.6/dist-packages/PyUblas-2011.1-py2.6-linux-x86_64.egg/pyublas/__init__.py",
line 2, in <module>
import pyublas._internal
ImportError: libboost_python-py26.so.1.42.0: cannot open shared object file:
No such file or directory
I think the issues here is in the Boost installation. I guess there could
be a number of places where I may have took a wrong turn but I think I
followed "STEP 2: Tell the Dynamic Linker about Boost" correctly. I wrote
the export command into my startup script perhaps I am missing something
about how I write the PATH of the shared libraries.
Any help you can provide would be much appreciated.
Saumil
You're help is much appreciated.
On Wed, Sep 7, 2011 at 11:27 AM, Andreas Kloeckner
<kloeckner(a)cims.nyu.edu>wrote:
> On Sun, 4 Sep 2011 14:17:19 -0400, Saumil Patel <saumil.patel134(a)gmail.com>
> wrote:
> Non-text part: multipart/alternative
> > Hi Andreas,
> >
> > Sorry for the late reply. ORNL was great. I was working on some finite
> > element code that is being developed to simulate flow and mechanical
> > phenomena inside a Nuclear Reactor Fuel Assembly. I was exposed to a
> lot
> > of C++.
> >
> > I am still working on the installation. I will let you know if I run into
> > trouble.
>
> Btw--the installation is supposed to be a 20-minute-or-so thing. If
> you're spending more time, get in touch.
>
> Andreas
>
> --
> Andreas Kloeckner
> Room 1105A (Warren Weaver Hall), Courant Institute, NYU
> http://www.cims.nyu.edu/~kloeckner/
> +1-401-648-0599
>
>
8 years, 3 months