[MOAB-dev] PyMOAB

Vijay S. Mahadevan vijay.m at gmail.com
Thu Sep 23 13:25:27 CDT 2021


Hi Kevin,

When you configure MOAB, it should generate a setup.py file (note
there is no *.in at the end). This should have the right data
populated into it as needed during configuration. You can just do a
regular make && make install after which all PyMOAB libs should be
available from your prefix path under $prefix/lib/$PYTHON_VERSION..

Let us know if that workflow is helpful.

Best,
Vijay

On Thu, Sep 23, 2021 at 2:22 PM Kevin McLaughlin
<mclaughlink at fusion.gat.com> wrote:
>
> Hi Paul,
>
> Sure, I did
>
> $ ../src/configure --enable-optimize \
>                    --enable-shared \
>                    --disable-debug \
>                    --with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/serial \
>                    --prefix=$HOME/dagmc_bld/MOAB \
>                    --download-netcdf
>
> Thanks!
>
> Kevin McLaughlin
> office: 858-455-3641
> mclaughlink at fusion.gat.com
>
> ----- Original Message -----
> From: "Paul Wilson" <paul.wilson at wisc.edu>
> To: "Kevin McLaughlin" <mclaughlink at fusion.gat.com>, "moab-dev" <moab-dev at mcs.anl.gov>
> Sent: Thursday, September 23, 2021 11:15:41 AM
> Subject: Re: [MOAB-dev] PyMOAB
>
> Hi there,
>
> Can you share how you built MOAB? either the 'configure' line or the
> 'cmake' line?
>
> Paul
>
> On 9/23/21 13:13, Kevin McLaughlin wrote:
> > Hello,
> >
> > I'm trying to use MOAB for some neutronics work, but I am running into a problem relating to PyMOAB. I built MOAB, and everything seems to be functioning, but I am unable to setup PyMOAB. PyMOAB isn't importable in python, and there is only a setup.py.in file, not a setup.py file. When I try to run setup.py.in, I get the error "No such file or directory: '@abs_builddir@/pymoab'". I'm sure this is some mistake on my part, but I can't figure this out. Could you advise on how I can get PyMOAB set up?
> >
> > Thank you!
> >
> > Kevin McLaughlin
> > office: 858-455-3641
> > mclaughlink at fusion.gat.com
> --
> -- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
> Paul P.H. Wilson (he/him/his)
> Grainger Professor of Nuclear Engineering
> Chair, Department of Engineering Physics <http://engr.wisc.edu/ep>
> o: 608-263-0807, c: 608-469-9615
> paul.wilson at wisc.edu
> 153 Engineering Research Bldg
> 1500 Engineering Dr, Madison, WI 53706
> Zoom Meeting Room: https://uwmadison.zoom.us/j/6082630807
> Zoom Phone Access: +1-929-205-6099, Access code: 6082630807
>
> Computational Nuclear Engineering Research Group
> <http://cnerg.engr.wisc.edu>


More information about the moab-dev mailing list