Skip to main content

Hi @GerhardAtSafe , 

Thanks for developing the new SharePoint Package, I am very excited about its functionality, but have unfortunately already run into an issue when trying to install it. Please see the log below. It may have to do with my version of python.

I am using FME 2020.1.0.1 Build 20596.

 

Apologies if this is something I would rather need to pick up with my IT department.

 

Log when trying to install the package:

An error occurred while installing package 'C:\Users\Srautenberg\AppData\Roaming\Safe Software\FME\Packages\20596-win64\PackageFiles\safe.microsoft-sharepoint': 
An error occurred while installing Python package with 'pip install --force-reinstall --no-deps --no-index --find-links C:\Users\Srautenberg\AppData\Roaming\Safe Software\FME\Packages\20596-win64\PackageFiles\safe.microsoft-sharepoint\python --target C:\Users\Srautenberg\AppData\Roaming\Safe Software\FME\Packages\20596-win64\python\safe.microsoft-sharepoint --upgrade --no-compile fme-microsoft-sharepoint oauthlib requests-oauthlib O365 stringcase' : 
 
Python version 3.7 loaded successfully
 
Traceback (most recent call last):
 
  File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 193, in _run_module_as_main
 
  File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 85, in _run_code
 
  File "C:\Program Files\FME\python\pip\__main__.py", line 16, in <module>
 
    from pip._internal import main as _main  # noqa
 
  File "C:\Program Files\FME\python\pip\_internal\__init__.py", line 42, in <module>
 
    from pip._internal import cmdoptions
 
  File "C:\Program Files\FME\python\pip\_internal\cmdoptions.py", line 16, in <module>
 
    from pip._internal.index import (
 
ImportError: cannot import name 'FormatControl' from 'pip._internal.index' (C:\Program Files\FME\python\pip\_internal\index\__init__.py)
 
 
 
Message #937504 is not present in the message file: Parameters are >Prefix: `' < and FME_HOME is >C:\Program Files\FME<
 
Program Terminating
 
 
 
Translation FAILED.

​Many Thanks,

Svea

Hi @svear​ 

I wasn't able to reproduce the issue you're encountering when installing the Sharepoint Online package in the FME build you're using.

Are you able to provide more information about your system? Do you have a custom Python interpreter specified in Workbench under Tools > FME Options > Translation > Preferred Python Interpreter?


​Hi @debbiatsafe​ 

Thanks for the quick response. yes it must be due to my Python interpreter settings. which are set to C:\\Windows\\System32\\python27.dll rather than any of the FME Python interpreter options.

I have attempted the download after changing to the other python interpreters, but the download fails.

 


​Hi @debbiatsafe​ 

Thanks for the quick response. yes it must be due to my Python interpreter settings. which are set to C:\\Windows\\System32\\python27.dll rather than any of the FME Python interpreter options.

I have attempted the download after changing to the other python interpreters, but the download fails.

 

Thank you for the information.

 

Are you able to install any other packages? If you cannot install other packages, try uninstalling and re-installing FME following the instructions here.

 

If you are able to install packages, are there already packages installed for FME? To check for packages installed, you can use the package manager in Tools > FME Options > FME Packages. If there are any packages with an update available, please try updating them (or removing them). Restart FME and install the Sharepoint Online package again.

 

In addition, which method are you using to install the packages? Are you installing via Quick Add or drag-and-drop into Workbench?


Hi @svear​  

One thing I can add here is that the SharePoint Online FME Package is not compatible with python 2.7. You need you use a python 3 interpreter in FME to install and run it successfully. Not 100% sure if this is the culprit here, though.

 

I agree with @debbiatsafe​ that a trying a reinstall and added the transformer via Quick Add would be a good next step to resolve this. I hope this helps!


Reply