I am trying to run an open source tutorial (project home here ). This is a large C ++ code base with a (very) thin python shell that uses CDLLC ++ to load and calls some C functions that are available for primitive code writing in python code.
However, the import source code fails because it cannot find the .so files sitting next to it in the site packages:
in the installed file:
from ctypes import *
try:
self.lib = CDLL("_lammps.so")
except:
try:
self.lib = CDLL("_lammps_serial.so")
except:
raise OSError,"Could not load LAMMPS dynamic library"
and in a script or interpreter:
from lammps import lammps
l = lammps()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "lammps.py", line 42, in __init__
raise OSError,"Could not load LAMMPS dynamic library"
OSError: Could not load LAMMPS dynamic library
, , , CDLL() script ( , ), , " " , python-library.
C/++, ? , /usr/lib, pythonic, .
(EDIT: , ! !)