Date Posted:
Product: TIBCO Spotfire®
Product: TIBCO Spotfire®
Problem:
ModuleNotFoundError when creating Python data function in TIBCO Spotfire
Solution:
When executing a Python Data Function in TIBCO Spotfire, it may fail with the following error:
Could not execute function call
Error executing Python script:
ModuleNotFoundError: No module named '<packagename>'
There are a couple of situations that could trigger this error:
- If you are trying to import Spotfire modules like Spotfire.Dxp.Application or Spotfire.Dxp.Data or any others modules in Python Data Function then you will see this error. These Spotfire modules are to be used in IronPython scripts which can help to extend Spotfire, but are not available in Python Data Functions.
- If the package(s) used in the data function are not seen in the list of Installed Packaged under the Package Management. To use these package(s) in the Python Data Functions, search for the package in the Package Management, select the required one, and click Install.
Comments
0 comments
Article is closed for comments.