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
from PDFNetPython import *


And the error:

Traceback (most recent call last):
  File "", line 3, in <module>
    from PDFNetPython import *
  File "~/Documents/PDFNetTest/PDFNetC/Lib/", line 28, in <module>
    _PDFNetPython = swig_import_helper()
  File "~/Documents/PDFNetTest/PDFNetC/Lib/", line 24, in swig_import_helper
    _mod = imp.load_module('_PDFNetPython', fp, pathname, description)
ImportError: 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.

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 *