How can we help you today? How can we help you today?

python script, import package

Could not locate any package
DanielK
0

Comments

2 comments

  • Tianjiao_Li
    Hi @DanielK

    Which version are you using? Do you receive any error when you try to import the script? Could you share a screenshot?
    Tianjiao_Li
    0
  • DanielK
    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)]
    DanielK
    0

Add comment

Please sign in to leave a comment.