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?
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:
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
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:
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.
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:
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.