5 Replies Latest reply on Jun 16, 2017 12:17 AM by David Ciam

    OSError: libpcre16.so.0: cannot open shared object file: No such file or directory

    David Ciam

      hi i just installed the newest tableau sdk to ubuntu 1604 with python 2.7.12 when i import using:

      from tableausdk import *

      i got this error

      >>> from tableausdk import *

      Traceback (most recent call last):

        File "<stdin>", line 1, in <module>

        File "/usr/local/lib/python2.7/dist-packages/tableausdk/__init__.py", line 14, in <module>

          from .Types import *

        File "/usr/local/lib/python2.7/dist-packages/tableausdk/Types.py", line 17, in <module>

          common_lib = libs.load_lib('Common')

        File "/usr/local/lib/python2.7/dist-packages/tableausdk/Libs.py", line 36, in load_lib

          self.libs[lib_name] = ctypes.cdll.LoadLibrary(self.lib_paths[lib_name])

        File "/usr/lib/python2.7/ctypes/__init__.py", line 440, in LoadLibrary

          return self._dlltype(name)

        File "/usr/lib/python2.7/ctypes/__init__.py", line 362, in __init__

          self._handle = _dlopen(self._name, mode)

      OSError: libpcre16.so.0: cannot open shared object file: No such file or directory

       

      i checked and my libpcre16-3 already the latest one

       

      I also tested the Java sample code and it generate similar error below:

       

      iniciam@ubuntu:~/Downloads/tableausdk-linux64-10300.17.0524.0223/share/tableausdk-10300.17.0524.0223/samples$ ant run -Dargs="--build --filename testtde1.tde"

      Buildfile: /home/iniciam/Downloads/tableausdk-linux64-10300.17.0524.0223/share/tableausdk-10300.17.0524.0223/samples/build.xml

      compile:

      setRunProps:

      run:

           [java] An unknown error occured while opening or closing the Extract API:

           [java] Printing stack trace now:

           [java] java.lang.UnsatisfiedLinkError: Unable to load library 'TableauExtract': libpcre16.so.0: cannot open shared object file: No such file or directory

           [java]     at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:194)

           [java]     at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:283)

           [java]     at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:244)

           [java]     at com.sun.jna.Native.register(Native.java:1065)

           [java]     at com.tableausoftware.extract.ExtractAPI.<clinit>(Unknown Source)

           [java]     at com.tableausoftware.demos.TableauSDKSample.main(Unknown Source)

           [java] Exiting now.

           [java] Java Result: 255

      BUILD SUCCESSFUL

      Total time: 1 second

       

      And in Windows using Python 2.7.13 generate this error: (below error is from using Python 3.x but when use Python 2.7.13 it also generate similar error message)

      Traceback (most recent call last):

        File "tableauCreateExtract.py", line 2, in <module>

      from tableausdk import *

        File "C:\Users\spmarley\WorkDocs\CostOptimization\awsCostOptimization\TableauSDK-10200.17.0505.1445\build\lib\tableausdk\__init__.py", line 14, in <module>

      from .Types import *

        File "C:\Users\spmarley\WorkDocs\CostOptimization\awsCostOptimization\TableauSDK-10200.17.0505.1445\build\lib\tableausdk\Types.py", line 17, in <module>

      common_lib = libs.load_lib('Common')

        File "C:\Users\spmarley\WorkDocs\CostOptimization\awsCostOptimization\TableauSDK-10200.17.0505.1445\build\lib\tableausdk\Libs.py", line 36, in load_lib

      self.libs[lib_name] = ctypes.cdll.LoadLibrary(self.lib_paths[lib_name])

        File "C:\Users\spmarley\AppData\Local\Programs\Python\Python36-32\lib\ctypes\__init__.py", line 422, in LoadLibrary

      return self._dlltype(name)

        File "C:\Users\spmarley\AppData\Local\Programs\Python\Python36-32\lib\ctypes\__init__.py", line 344, in __init__

      self._handle = _dlopen(self._name, mode)

      OSError: [WinError 193] %1 is not a valid Win32 application

       

      Detail information on my latest Tableau SDK:

      iniciam@ubuntu:~/Downloads/TableauSDK-10300.17.0524.0223$ pip show TableauSDK

      ---

      Metadata-Version: 1.0

      Name: TableauSDK

      Version: 10300.17.524.223

      Summary: Tableau SDK package

      Home-page: http://www.tableausoftware.com/

      Author: Tableau Software

      Author-email: support@tableau.com

      License: LICENSE.txt

      Location: /usr/local/lib/python2.7/dist-packages

       

      Looks like the error happened because it cannot find libpcre16.so in the lib folder. I checked bin folder and it doesn't have libpcre16.so.

       

      Anyone know what happen ?

       

      Thank you in advanced.