Error running scripts

Post Reply
CarolineB7
Posts: 1
Joined: Mon Feb 28, 2022 6:40 pm

Error running scripts

Post by CarolineB7 » Mon Feb 28, 2022 6:58 pm

Hi, I am new to using the python API. I am trying to run the files from the intro to python API 2 workshop downloaded directly from the asdea website (ex: 04_drift_opensees_sp from https://asdeasoft.net/?webinar). I input the Results.DB file. However, all the python scripts, for example 'post_processor_drift_script', that I am trying to run get the following error; "name 'os' not defined" even though it is imported in the first line of the code. Do you have any insights on this error?
Thanks in advance for your help and best regards,
Caroline
Last edited by CarolineB7 on Mon Mar 07, 2022 11:43 pm, edited 3 times in total.

STKO Team
Posts: 3066
Joined: Tue Oct 29, 2019 8:45 am

Re: Error running scripts

Post by STKO Team » Tue Mar 01, 2022 9:09 am

That's strange.
Could please a screenshot of the whole error window? with all the stack trace?

Make sure you followed all the steps:
script.png
script.png (475.54 KiB) Viewed 2006 times

Post Reply