Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I have a small piece of code, which I cannot run in pycharm virtual environment

INPUT_FILE_PATH = './data/'
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    print_hi('PyCharm')
    print('loading data ... ')
    hemo_filename = INPUT_FILE_PATH + 'hemo_ALl_seq.txt'
    hemo_data = np.loadtxt(hemo_filename, delimiter='\t', skiprows=1, dtype=str)

It shows the following error and ends the running: Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

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

what could be the reason?

I suppose np.loadtxt is loading the file into memory and it's too large for the memory PyCharm makes available. See one of these questions but I'm pretty sure this is more of a NumPy issue than a problem caused by the IDE. – bad_coder Sep 25, 2022 at 5:57 Can you run it outside of pycharm (say from a terminal or cmd window) without error? If yes, it's a pycharm problem. If no, the problem is in your code. – Roland Smith Sep 25, 2022 at 6:49

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.