Skip to main content

Path issues while attempting load Python module. FME Pip installed Pypdf. It got installed to:

 

C:\Users\james.hawks\Documents\FME\Plugins\Python\python39\pypdf

 

But workbench cant see that for unknown reasons. 

 

Python Exception <ModuleNotFoundError>: No module named 'PyPDF'

Does not really address the problem/cause,  but a general workaround I’ve use is to copy/paste the PIP package files into the FMW folder.

FME seems to always search the FMW folder first for the called Python module, and so this works for me when mucking around with OS Environment Variables has failed otherwise.


That’s only if the workbench is published correct? If not where is the FMW folder on Client? 


That’s only if the workbench is published correct? If not where is the FMW folder on Client? 


Are you getting an error from a Workbench translation?  The FME Workspace file (FMW) folder location is output on the Translation Log

 

and in Workbench is part of the Application Window Header
 

 


Workbench for now, will publish eventually. Placed pypdf in the workspace folder. Still no good. 

 

 


Wait cases matters! Matched it, onto the next error!

 

Python Exception <NameError>: name 'os' is not defined
Error executing string `
import PyPDF


Reply