What does 'killed' mean when a processing of a huge CSV with Python, which suddenly stops?

前端 未结 5 1690
再見小時候
再見小時候 2020-12-01 02:30

I have a Python script that imports a large CSV file and then counts the number of occurrences of each word in the file, then exports the counts to another CSV file.

5条回答
  •  不知归路
    2020-12-01 02:54

    I just had the same happen on me when I tried to run a python script from a shared folder in VirtualBox within the new Ubuntu 20.04 LTS. Python bailed with Killed while loading my own personal library. When I moved the folder to a local directory, the issue went away. It appears that the Killed stop happened during the initial imports of my library as I got messages of missing libraries once I moved the folder over.

    The issue went away after I restarted my computer.

    Therefore, people may want to try moving the program to a local directory if its over a share of some kind or it could be a transient problem that just requires a reboot of the OS.

提交回复
热议问题