What are the challenges you face when working across database platforms? Take the survey

python script, import package

Could not locate any package


  • Options
    Hi @DanielK

    Which version are you using? Do you receive any error when you try to import the script? Could you share a screenshot?
    Kind regards

    Tianjiao Li | Redgate Software
    Have you visited our Help Center?
  • Options
    DanielKDanielK Posts: 2 New member
    Tools -->Application module points to Python 3.7. Simplified code below, should just generate random integer number. 
    Error message: "import random" generates error: Unexpected token "from"

    def main(config):
        import random
        numb =  random.randint(1111111111111, 9999999999999)
        return [str(numb)]
Sign In or Register to comment.