Skip to main content
Question

Importing h5py into python caller

  • June 11, 2019
  • 3 replies
  • 30 views

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!
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

david_r
Celebrity
  • 8394 replies
  • 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


  • Author
  • 1 reply
  • 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

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
Celebrity
  • 8394 replies
  • June 12, 2019

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