Skip to main content
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

david_r
Evangelist
  • June 12, 2019

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


david_r wrote:

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?


david_r
Evangelist
  • June 12, 2019

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings