Author Topic: An error occurred in the Python script, the exit code is 1  (Read 2902 times)

jia

  • Newbie
  • *
  • Posts: 11
    • View Profile
An error occurred in the Python script, the exit code is 1
« on: February 10, 2023, 02:58:40 PM »
Hello!
In R2D, example 2 works fine locally. But an error occurred when I used my own earthquake and building files, so I took two buildings and two records from Example 2 and tested them, and the same error occurred:
22:49:53 Appending additional settings to the BIM files...
Building files successfully created.
-----------------------------------------------------------------------
22:49:53 Creating regional mapping...

22:49:53 - An error occurred in the Python script, the exit code is 1
22:49:53 - Analysis complete with errors
22:49:53 - Failed to run the workflow!!!

Attached is my test file, can you tell me how to solve it? thank you
Best wishes to you!

fmk

  • Administrator
  • Full Member
  • *****
  • Posts: 232
    • View Profile
Re: An error occurred in the Python script, the exit code is 1
« Reply #1 on: February 10, 2023, 08:06:18 PM »
you were missing some stuff (e.g. units with motion, ..) and your nearest neighbour search was asking for 4 neighbours and you only had 2 motions .. attached is the updated input file for what you sent.

jia

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: An error occurred in the Python script, the exit code is 1
« Reply #2 on: February 11, 2023, 02:28:57 AM »
Yes, it ran successfully after the change, thank you very much!