Attempting to use Python libraries on Ubuntu, having problems

Hi, so I'm trying to use the python library on Ubuntu and having a hard time. I have the PDFNetC in the same directory as I'm running the test program. Here's the program and the error I'm experiencing

import site
site.addsitedir("PDFNetC/Lib")
from PDFNetPython import *

print(dir(PDFNetPython))

And the error:

Traceback (most recent call last):
  File "pdfTest.py", line 3, in <module>
    from PDFNetPython import *
  File "~/Documents/PDFNetTest/PDFNetC/Lib/PDFNetPython.py", line 28, in <module>
    _PDFNetPython = swig_import_helper()
  File "~/Documents/PDFNetTest/PDFNetC/Lib/PDFNetPython.py", line 24, in swig_import_helper
    _mod = imp.load_module('_PDFNetPython', fp, pathname, description)
ImportError: libPDFNetC.so: cannot open shared object file: No such file or directory

Thanks for any advice

If your OS is 64bit, you should be running PDFNet 64 bit version.

http://www.pdftron.com/downloads/PDFNetWrappers/PDFNetWrappersLinux64.tar.gz

Then verify that the included Python sample project(s) can run.

Once you confirm, take a look at the first few lines of code in any of the sample python files. They show how to load the native library.

import site site.addsitedir("../../../PDFNetC/Lib") import sys from PDFNetPython import *