lammps python wrapper

Dear lammps mailing list
I am trying to perform the python wrap for lammps for the 5/3/12 version of the distribution , but keep running into problems.
i follow all the steps in the manual and everything works great when i build using python build
and then install using sudo python install everything works great and i do get the and files , but when i try to check it even for the serial version typing form the python interactive mode

>>>from lammps import lammps
>>> lmp = lammps() 

i get the error:
OSError: Could not load LAMMPS dynamic library
and when i leave the python interactive mode

Exception AttributeError: “lammps instance has no attribute ‘lmp’” in <bound method lammps.del of <lammps.lammps instance at 0x2526e18>> ignored

now i have seen in the mailing list this post :
regarding a similar problem with the serial version and was wondering if there is maybe a problem with the paralleled version ?
if not then maybe can you help me out building and installing the paralleled version , what further information do i need to provide you ?
Thank you so much in advance !

You should verify that the install actually
put the file in the right place in
the python you are running (which might not be the
python that root is running). On my box it is here:


and the file should be executable. There should also
be a and lammps*egg-info in that dir.

If it's all there, then the CDLL command in
is failing. This part of the Python doc page is relevant:

Before using LAMMPS in a Python program, one more step is needed. The
interface to LAMMPS is via the Python ctypes package, which loads the
shared LAMMPS library via a CDLL() call, which in turn is a wrapper on
the C-library dlopen(). This command is different than a normal Python
"import" and needs to be able to find the LAMMPS shared library, which
is either in the Python site-packages directory or in a local
directory you specified in the "python install" command, as
described above.

The simplest way to do this is add a line like this to your .cshrc or
other shell start-up file.


and then execute the shell file to insure the path has been updated.
This will extend the path that dlopen() uses to look for shared