Skip to main content
Solved

Can an existing python library be updated on FME Flow hosted?

  • July 10, 2023
  • 3 replies
  • 74 views

stalknecht
Contributor
Forum|alt.badge.img+21

I'v been succesfull in loading additional python site-packages on FME flow hosted.

Now I have a site-package that needs a newer verion of numpy then the one that's allready in the standard installation.

Can I upgrade numpy on the FME Flow hosted environment?

 

Best answer by virtualcitymatt

I would say unfortunately probably not. Which version of numpy do you need? If it's just a patch version bump then you might be able to try with minimal risk. If it's a minor version upgrade (1.24 > 1.25) then I wouldn't risk it myself. Numpy is used in FME in other formats so upgrading might lead to unstable behaviour. If you do decide to try definitely take a snapshot of the image before you do.

 

I think FME will prefer the installed Numpy version rather than one you put in the plugins folder so I think you would need to update the fme installation folder...

 

If you want to try (I think you wont have the permission but you can try - you most likely will need root access) is to publish a workspace with a SystemCaller witch call the appropriate Pip call.

 

You might want to contact Safe directly through on this and ask if they can help you out or advise on the best approach

 

 

 

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

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • Best Answer
  • July 10, 2023

I would say unfortunately probably not. Which version of numpy do you need? If it's just a patch version bump then you might be able to try with minimal risk. If it's a minor version upgrade (1.24 > 1.25) then I wouldn't risk it myself. Numpy is used in FME in other formats so upgrading might lead to unstable behaviour. If you do decide to try definitely take a snapshot of the image before you do.

 

I think FME will prefer the installed Numpy version rather than one you put in the plugins folder so I think you would need to update the fme installation folder...

 

If you want to try (I think you wont have the permission but you can try - you most likely will need root access) is to publish a workspace with a SystemCaller witch call the appropriate Pip call.

 

You might want to contact Safe directly through on this and ask if they can help you out or advise on the best approach

 

 

 


stalknecht
Contributor
Forum|alt.badge.img+21
  • Author
  • Contributor
  • 305 replies
  • July 13, 2023

I would say unfortunately probably not. Which version of numpy do you need? If it's just a patch version bump then you might be able to try with minimal risk. If it's a minor version upgrade (1.24 > 1.25) then I wouldn't risk it myself. Numpy is used in FME in other formats so upgrading might lead to unstable behaviour. If you do decide to try definitely take a snapshot of the image before you do.

 

I think FME will prefer the installed Numpy version rather than one you put in the plugins folder so I think you would need to update the fme installation folder...

 

If you want to try (I think you wont have the permission but you can try - you most likely will need root access) is to publish a workspace with a SystemCaller witch call the appropriate Pip call.

 

You might want to contact Safe directly through on this and ask if they can help you out or advise on the best approach

 

 

 

Thanks, I like the idea to use a systemcaller to update. I didn't test it because of the risks. (My guess is that it will fail.) My workaround now is a different approach where I don't need to upgrade.


virtualcitymatt
Celebrity
Forum|alt.badge.img+47

Thanks, I like the idea to use a systemcaller to update. I didn't test it because of the risks. (My guess is that it will fail.) My workaround now is a different approach where I don't need to upgrade.

Nice one - win one for the workaround!