Skip to main content

Hello everybody,

 

 

I want to install an external python package named xtopdf in FME.

 

The problem is that this package cannot be installed with easy_install or pip as usual. It has to be installed manually (https://bitbucket.org/vasudevram/xtopdf). That means the hints given on https://knowledge.safe.com/articles/841/install-python-modules-into-fme.html don't work here.

 

In my normal Python envorionment outside from FME I could download the zip file, unzip it in a directory 'xtopdf' in my Python directory, create an __init__.py in that directory, install a few other needed packages and it worked.

 

But in my FME Python environment it does not work like that. If I copy my xtopdf folder in the directory .../FME2017/fmepython27/Lib, install other needed packages and create a startup script where I just try to import the package 'os' as a test and this module. While 'os' could be imported 'xtopdf' could not be found!

 

 

Hope that anyone has some experience with installing python modules like that one.

 

 

Best regards,

 

Felix

The Python installed with FME is a light-weight version that might not have all the needed dependencies in place for some third-party modules.

When dealing with scenarios like these best practice is to download and install a full Python installation (e.g. from python.org) and point FME to it. Just be careful about using a 32-bit version of Python with a 32-bit version of FME etc.

You can then easily install whichever module you need.


The Python installed with FME is a light-weight version that might not have all the needed dependencies in place for some third-party modules.

When dealing with scenarios like these best practice is to download and install a full Python installation (e.g. from python.org) and point FME to it. Just be careful about using a 32-bit version of Python with a 32-bit version of FME etc.

You can then easily install whichever module you need.

@david_r Perfect explanation!!!!

 


Reply