Skip to main content

Hello Everyone!

I have an issue with connection to OneDrive account via OneDriveConnector (Graph). 

During configuration of parameters this transformer I set new connection to OneDrive.  But when I tried to open this account and choose file or folder, which are in my account I get an error: 

0684Q00000ArBXZQA3.png

 

And FME FME cannot see any contents that are in this account:

0684Q00000ArBXeQAN.png

 

And in log I have:

Python Exception <ModuleNotFoundError>: No module named 'webserviceconnector.webserviceconnector'; 'webserviceconnector' is not a package
The python function `fmemodules.lastError' was not found. Check your python path & module imports

I tried:

  • to choose other action (Upload, Download, List) 
  • to connect with other OneDrive Account
  • to use other version of FME

And every time I get the same error. 

Did anyone has a similar problem and could help me? 

Thanks in advance!

Hi @borko_k

I'm sorry you're running into this issue. The Python error leads me to think there may be some Python files missing from your installation of FME.

Are you able to navigate to the folders listed below and look for a file called webserviceconnector.pyc?

  • <FME Install Folder>\\python\\python27\\webserviceconnector
  • <FME Install Folder>\\python\\python35\\webserviceconnector
  • <FME Install Folder>\\python\\python36\\webserviceconnector
  • <FME Install Folder>\\python\\python37\\webserviceconnector

Hi @borko_k

I'm sorry you're running into this issue. The Python error leads me to think there may be some Python files missing from your installation of FME.

Are you able to navigate to the folders listed below and look for a file called webserviceconnector.pyc?

  • <FME Install Folder>\\python\\python27\\webserviceconnector
  • <FME Install Folder>\\python\\python35\\webserviceconnector
  • <FME Install Folder>\\python\\python36\\webserviceconnector
  • <FME Install Folder>\\python\\python37\\webserviceconnector

Hi @debbiatsafe,

Thanks for your answer! Yesterday, I also tried reinstall FME with agreement to install Python library.

Today I checked this folders and in each of them is the webserviceconnector.pyc file.


Hi @debbiatsafe,

Thanks for your answer! Yesterday, I also tried reinstall FME with agreement to install Python library.

Today I checked this folders and in each of them is the webserviceconnector.pyc file.

Good news that the webserviceconnector.pyc file are present in your FME installation.

What version of FME are you using and what is the Default Python Interpreter specified under Tools > FME Options > Translation?


Good news that the webserviceconnector.pyc file are present in your FME installation.

What version of FME are you using and what is the Default Python Interpreter specified under Tools > FME Options > Translation?

I am using FME 2019.2.3.1 (Build 19823) and Default Python Interpreter is FME Python 3.7+


I am using FME 2019.2.3.1 (Build 19823) and Default Python Interpreter is FME Python 3.7+

Since the .pyc files are present, it may be possible that FME is looking for these files in the wrong location.

  • Do you have other installations of FME installed on your machine?
  • What are the paths in PATH system environment variable?
  • Do you have PYTHONPATH environment variable defined?

Since you are using FME 2019, do you know if you have any packages installed? You can check using Tools > FME Options > FME Packages.

If you are unable to share the results of these questions publicly, please file a support case at https://www.safe.com/support/report-a-problem/ and reference this Community post.


Since the .pyc files are present, it may be possible that FME is looking for these files in the wrong location. 

  • Do you have other installations of FME installed on your machine? 
  • What are the paths in PATH system environment variable?
  • Do you have PYTHONPATH environment variable defined?

Since you are using FME 2019, do you know if you have any packages installed? You can check using Tools > FME Options > FME Packages.

If you are unable to share the results of these questions publicly, please file a support case at https://www.safe.com/support/report-a-problem/ and reference this Community post.

Yes, I have other FME versions installed - FME 2018.1, 2019.0 and 2019.1. But all of them is installed in other folder in Program Files folder.

No, I don't have PYTHONPATH defined in environment variable. Now I add this variable (with using URL: C:\Program Files\FME2019_2\python), but it still doesn't work and the same error appears.

And I checked any packages are installed, but in my opinion - I have seome of packages installed (screen below). But when I try to click any of then in Log window I have: 

Python Exception <ModuleNotFoundError>: No module named 'webserviceconnector.webserviceconnector'; 'webserviceconnector' is not a package
The python function `fmemodules.lastError' was not found. Check your python path & module imports

 0684Q00000ArNbXQAV.png


Yes, I have other FME versions installed - FME 2018.1, 2019.0 and 2019.1. But all of them is installed in other folder in Program Files folder.

No, I don't have PYTHONPATH defined in environment variable. Now I add this variable (with using URL: C:\Program Files\FME2019_2\python), but it still doesn't work and the same error appears.

And I checked any packages are installed, but in my opinion - I have seome of packages installed (screen below). But when I try to click any of then in Log window I have: 

Python Exception <ModuleNotFoundError>: No module named 'webserviceconnector.webserviceconnector'; 'webserviceconnector' is not a package
The python function `fmemodules.lastError' was not found. Check your python path & module imports

 0684Q00000ArNbXQAV.png

Thanks for the information. 

Can you please try performing the following actions in order? Please test the OneDriveConnector transformer after each step--would recommend closing and restarting FME Workbench before testing the transformer. If it does not resolve the issue, then go on the next item.

  1. Update the packages--using the Package Manager dialog. If fails or does not resolve the issue, go to the next step.
  2. Delete the packages--if it does not work using the Package Manager dialog, go to %appdata%\Safe Software\FME\Packages, select the appropriate folder for your FME version (eg. 19823-win64) and delete the folder.
  3. Change the order of the FME install folders in the PATH system environment variable to promote latest 19823 build to be the first path in the environment variable.

Reply