Question

Python Exception ImportError fme-form-2023.2.1

  • 11 March 2024
  • 1 reply
  • 34 views

Badge +9

Some users in my organisation are getting the below error when using  using fme-form-2023.2.1-b23774-win-x64.

 

They have already looked at editing the path in environment variables and that didn't work. Any suggestions on a solution?

 

Python Exception <ImportError>: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
Failed to import `fmesite'
Python Exception <ImportError>: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
Failed to import `fme'
(PythonFactory): The Python Framework could not be started. PythonFactory could not initialize
The Python Framework could not be started. PythonFactory could not initialize


1 reply

Userlevel 1
Badge +9

Hi, @ciarab.

It seems, as you suggested, it is due to the Environment Path variables potentially not being set correctly. I would suggest to double-check to make certain that PATH, PYTHONPATH, PYTHONHOME, etc. are set properly; checking the output of the PATH variable too.

Additionally, do you know where the error is being produced (e.g., running the Python script in FME Form via the PythonCaller/Python startup script)?

Best,

Reply