Skip to main content
Question

Getting this error while imporing stub?


from streamsets.testframework.decorators import stub

from streamsets.testframework.utils import get_random_string

Both commands are not working.

Everytime I run the code Seeing same error even after installing the module.

ModuleNotFoundError: No module named 'streamsets.testframework.decorators

Please help out with this?

4 replies

AkshayJadhav
StreamSets Employee
Forum|alt.badge.img
  • StreamSets Employee
  • 101 replies
  • April 7, 2023

Hi @shiva - Thank you for reaching out to the StreamsSets Community. Would you please check if streamsets framework is successfully installed with the command “pip list”?


  • Author
  • Roadie
  • 5 replies
  • April 10, 2023

HI @AkshayJadhav I checked it and that library is mentioned  but still unable to import

 


AkshayJadhav
StreamSets Employee
Forum|alt.badge.img
  • StreamSets Employee
  • 101 replies
  • April 10, 2023

what is the python version you are using?


  • Author
  • Roadie
  • 5 replies
  • April 27, 2023

Hello @AkshayJadhav 

As recommended in documentation version 3.6. 

Is License or Activation key is required to use STF?


Reply