Skip to main content
Solved

Are there any drawbacks to updating Python Packages in FME?

  • August 5, 2020
  • 4 replies
  • 61 views

Forum|alt.badge.img+1

Hello Everyone,

 

I am currently trying to upload files to an scp environment using the pythoncaller in FME with the paramiko and scp package.

It all works well when I run it in a seperate Python environment. In FME however I get the error 'AttributeError: Raw' which, according to Google and stackoverflow, is related to the fact that I need to upgrade the cryptography package.

 

Based on the FME documentation I should be able to do this using the following cmd: fme.exe python -m pip install <package_name> --upgrade

--target <package_destination_folder>

 

I am however wondering if I 'should' do this. Are there any FME dependencies/related tasks that might be impacted? Does anyone have previous experience with upgrading python packages in FME?

 

All help is greatly appreciated,

 

Kris

 

Best answer by debbiatsafe

Hi @kd​ 

As @virtualcitymatt​ mentioned, it is not recommend to upgrade packages shipped with FME as it may break existing functionality. In general, we do not recommend making changes to the install directory.

What version of FME are you using? The cryptography package was upgraded to version 2.8 in FME 2020.0. Are you able to try 2020.0+ and see if that resolves the error you are seeing if you are using an older version of FME?

If you are unable to upgrade, I would recommend downloading paramiko using the instructions here and make sure that the directory containing paramiko and its dependencies are at the front of the PATH environment variable. For example, if you downloaded a newer version of cryptography to C:\Users\<user>\Documents\FME\Plugins\Python\python37, try:

import sys
sys.path.insert(0,r"C:\Users\<user>\Documents\FME\Plugins\Python\python37")
import paramiko

I hope this helps.

 

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.

4 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47

I would advise not to update any packages that come with FME. If you do, definitely expect that things might not work so be prepared to roll back the update.

Perhaps for some better knowledge in the area and maybe some tips on alternative options I think @Takashi Iijima​ or @david_r​ might be able to help


debbiatsafe
Safer
Forum|alt.badge.img+21
  • Safer
  • Best Answer
  • August 5, 2020

Hi @kd​ 

As @virtualcitymatt​ mentioned, it is not recommend to upgrade packages shipped with FME as it may break existing functionality. In general, we do not recommend making changes to the install directory.

What version of FME are you using? The cryptography package was upgraded to version 2.8 in FME 2020.0. Are you able to try 2020.0+ and see if that resolves the error you are seeing if you are using an older version of FME?

If you are unable to upgrade, I would recommend downloading paramiko using the instructions here and make sure that the directory containing paramiko and its dependencies are at the front of the PATH environment variable. For example, if you downloaded a newer version of cryptography to C:\Users\<user>\Documents\FME\Plugins\Python\python37, try:

import sys
sys.path.insert(0,r"C:\Users\<user>\Documents\FME\Plugins\Python\python37")
import paramiko

I hope this helps.

 


Forum|alt.badge.img+1
  • Author
  • August 7, 2020

I would advise not to update any packages that come with FME. If you do, definitely expect that things might not work so be prepared to roll back the update.

Perhaps for some better knowledge in the area and maybe some tips on alternative options I think @Takashi Iijima​ or @david_r​ might be able to help

Thank you for the feedback @virtualcitymatt​ . I feared that this was indeed the case.


Forum|alt.badge.img+1
  • Author
  • August 7, 2020

Hi @kd​ 

As @virtualcitymatt​ mentioned, it is not recommend to upgrade packages shipped with FME as it may break existing functionality. In general, we do not recommend making changes to the install directory.

What version of FME are you using? The cryptography package was upgraded to version 2.8 in FME 2020.0. Are you able to try 2020.0+ and see if that resolves the error you are seeing if you are using an older version of FME?

If you are unable to upgrade, I would recommend downloading paramiko using the instructions here and make sure that the directory containing paramiko and its dependencies are at the front of the PATH environment variable. For example, if you downloaded a newer version of cryptography to C:\Users\<user>\Documents\FME\Plugins\Python\python37, try:

import sys
sys.path.insert(0,r"C:\Users\<user>\Documents\FME\Plugins\Python\python37")
import paramiko

I hope this helps.

 

Thank you @debbiatsafe (Safer)​ 

 

Upgrading to FME 2020 resolved the issue!