Question

Importing h5py into python caller


Does anyone know if there is a way to import h5py into python caller for fme 2018.1?

 

 

numpy imports fine but importing h5py produces the following error:

Python Exception <ImportError>: cannot import name '_errors'

Error executing string `import<space>h5py'

Factory proxy not initialized

PythonCaller_2(PythonFactory): PythonFactory failed to process feature

A fatal error has occurred. Check the logfile above for details

Error encountered while calling method `input'

PythonCaller(PythonFactory): PythonFactory failed to process feature

A fatal error has occurred. Check the logfile above for details

Error encountered while calling method `input'

PythonCreator(PythonFactory): PythonFactory failed to process feature

A fatal error has occurred. Check the logfile above for details

 

 

Any and all help is greatly appreciated!

3 replies

Userlevel 4

The easiest solution is probably to install a regular distribution of Python (e.g. from python.org) and manually install the h5py module(s) there. Then set FME to use that Python distribution:

https://knowledge.safe.com/articles/814/choosing-a-different-python-interpreter-installati.html

The easiest solution is probably to install a regular distribution of Python (e.g. from python.org) and manually install the h5py module(s) there. Then set FME to use that Python distribution:

https://knowledge.safe.com/articles/814/choosing-a-different-python-interpreter-installati.html

Hi David,

That was one of the first things I tried and it did not work sadly. Do you have any other suggestions?

Userlevel 4

Can you please be a bit more specific as to why it didn't work? Error messages, logs, screenshots, etc?

Reply