Question

Importing a python module into FME SERVER


Hello everyone,

It’s my first time on the forum, my excuses if im not following the requiered procedures.

 

So to the explanation and question :

I know that the readers for Shapefile and DBF interprets « null » numbers as 0, so i’ve writen a script using python3.8 that uses an external library to change number types to strings.

It works very well on the FME Desktop 2018.0 instance but when i try to upload it to the FME Server ( resources/engine/plugins/python/) wich is on a Linux ( Ubuntu 20) and using the docker images provided by Safe i have the following error when i launch a job that uses a pythoncaller that uses the « dbf » library :

-         Python Exception <ImportError>: dynamic module does not define module export function (PyInit_dbf)

After some research the cause it’s that the engine doesnt find the directory where the module is installed.

 

Any ideas ? Tips ?

 

Thank you.


0 replies

Be the first to reply!

Reply