Page 1 of 1

Error running scripts

Posted: Mon Feb 28, 2022 6:58 pm
by CarolineB7
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

Re: Error running scripts

Posted: Tue Mar 01, 2022 9:09 am
by STKO Team
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 2010 times