Unable to Run or Debug the script
Answered
I was working on the Community edition version of 2017. Everything was working fine, but now it failed to run my script for no reason with the below error:
"Process finished with exit code -1073741819 (0xC0000005)"
I tried deleting the .idea folder for the project and it still it didn't work.
I eventually installed the latest edition:
PyCharm 2018.1.1 (Community Edition)
Build #PC-181.4445.76, built on April 9, 2018
JRE: 1.8.0_152-release-1136-b27 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Python Interpreter is set to the Anaconda Python 3.6:
"C:\Users\name\AppData\Local\Continuum\anaconda3\python.exe"
but still, the error persists.
Any help will be appreciated. Thanks.
Please sign in to leave a comment.
Hi! Is it a Django project? Does run fail for any script? Which Python version do you use?
@Pavel, No it's not a Django Project. Just a basic python script.
Python Version: 3.6
I see, thank you! Could you please execute the script from the terminal? I wonder will it fail.
@Pavel, Good point. I tried running the multiple scripts of the project as well as from other projects from the terminal and I am shocked to see that all failed. Got a Windows error that "Python has stopped working".
Is it might be because of some issue with Python itself?
But then, I am working on Jupyter notebook as well and there Python and other packages work fine.
Not sure but it looks like it. Would you mind reinstalling anaconda? Make sure it's 64-Bit distribution.
Yes, I can reinstall Anaconda but the installation of many other packages I use is restraining me. I did update Anaconda recently and thinking of trying to roll back to the previous revision if it may work.
I went to 2 revisions back on Anaconda, and it started working (both Run and Debug). Not sure where was the issue, but below is the package list that changed by rolling backwards:
bzip2 {1.0.6 (conda-forge) -> 1.0.6}
conda {4.5.1 -> 4.5.0}
curl {7.59.0 (conda-forge) -> 7.59.0}
freetype {2.8.1 (conda-forge) -> 2.8}
hdf5 {1.10.1 (conda-forge) -> 1.10.1}
icu {58.2 (conda-forge) -> 58.2}
jpeg {9b (conda-forge) -> 9b}
krb5 {1.14.6 (conda-forge) -> 1.16}
libiconv {1.14 (conda-forge) -> 1.15}
libpng {1.6.34 (conda-forge) -> 1.6.34}
libpq {9.6.3 (conda-forge) -> 10.3}
libssh2 {1.8.0 (conda-forge) -> 1.8.0}
libtiff {4.0.9 (conda-forge) -> 4.0.9}
libxml2 {2.9.5 (conda-forge) -> 2.9.8}
libxslt {1.1.32 (conda-forge) -> 1.1.32}
lxml {4.2.1 (conda-forge) -> 4.2.1}
lzo {2.10 (conda-forge) -> 2.10}
matplotlib {2.2.2 (conda-forge) -> 2.2.2}
psycopg2 {2.7.4 (conda-forge) -> 2.7.4}
pyqt {5.6.0 -> 5.9.2}
qt {5.6.2 (conda-forge) -> 5.9.4}
sqlite {3.22.0 (conda-forge) -> 3.22.0}
tk {8.6.7 (conda-forge) -> 8.6.7}
winpty {0.4.3 (conda-forge) -> 0.4.3}
yaml {0.1.7 (conda-forge) -> 0.1.7}
zlib {1.2.11 (conda-forge) -> 1.2.11}
-jupyter_contrib_core-0.3.3 (conda-forge)
-jupyter_contrib_nbextensions-0.5.0 (conda-forge)
-jupyter_highlight_selected_word-0.2.0 (conda-forge)
-jupyter_latex_envs-1.4.4 (conda-forge)
-jupyter_nbextensions_configurator-0.4.0 (conda-forge)