Print Statement gives me the error | Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

New to python and mac. using IntelliJ and getting this error when i am trying to run a program.

dyld[24325]: Library not loaded: ‘@executable_path/…/.Python’
Referenced from: ‘/Users/A/IdeaProjects/TAPI/venv/bin/python’
Reason: tried: ‘/Users/A/IdeaProjects/TAPI/venv/bin/…/.Python’ (no such file), ‘/usr/local/lib/.Python’ (no such file), ‘/usr/lib/.Python’ (no such file)

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

I was able to solve the problem. Issue was:

  1. I had moved my project from one location to another.
  2. Hence, related project files within the project were missing.

I created a new project and moved the .py files to the new project. ran the py file and boom, it worked.