ContinuumIO / anaconda-issues

Anaconda issue tracking
646 stars 220 forks source link

Python crashes on import PyQt5.QtWidgets: Anaconda 5.1.0, python 2.7.15 on 64-bit Windows 7 #9364

Open newville opened 6 years ago

newville commented 6 years ago

Actual Behavior

With a fresh install of Anaconda2 5.1.0 for 64-bit Windows followed by `conda update --all`, I get a hard python crash with a popup window of "python.exe has stopped working" with ``` C:\Users\me>python Python 2.7.15 |Anaconda, Inc.| (default, May 1 2018, 18:37:09) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import PyQt5.QtWidgets ``` Anaconda applications such as Spyder also crash. ### Expected Behavior Python should not crash on import PyQt5.QtWidgets. ### Steps to Reproduce
  1. Fresh install Anaconda2-5.1.0-Windows-x86_64.exe on 64-bit Windows 7
  2. conda update -n base conda
  3. conda update --all
  4. Open Anaconda prompt, type python -c "import PyQt5.QtWidgets"
Anaconda or Miniconda version:

Anaconda2-5.1.0-Windows-x86_64

Operating System:

Windows 7 64-bit

conda info

     active environment : C:\Users\xas_user\AppData\Local\Continuum\Anaconda2
    active env location : C:\Users\xas_user\AppData\Local\Continuum\Anaconda2
            shell level : 1
       user config file : C:\Users\xas_user\.condarc
 populated config files : C:\Users\xas_user\.condarc
          conda version : 4.5.2
    conda-build version : 3.10.2
         python version : 2.7.15.final.0
       base environment : C:\Users\xas_user\AppData\Local\Continuum\anaconda2  (writable)
           channel URLs : https://conda.anaconda.org/GSECARS/win-64
                          https://conda.anaconda.org/GSECARS/noarch
                          https://conda.anaconda.org/anaconda/win-64
                          https://conda.anaconda.org/anaconda/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\xas_user\AppData\Local\Continuum\anaconda2\pkgs
                          C:\Users\xas_user\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\xas_user\AppData\Local\Continuum\anaconda2\envs
                          C:\Users\xas_user\AppData\Local\conda\conda\envs
                          C:\Users\xas_user\.conda\envs
               platform : win-64
             user-agent : conda/4.5.2 requests/2.18.4 CPython/2.7.15 Windows/7 Windows/6.1.7601
          administrator : False
             netrc file : None
           offline mode : False
conda list --show-channel-urls
# packages in environment at C:\Users\xas_user\AppData\Local\Continuum\Anaconda2:
#
# Name                    Version                   Build  Channel
_ipyw_jlab_nb_ext_conf    0.1.0            py27h9111531_0    anaconda
alabaster                 0.7.10           py27h2cab13d_0    anaconda
anaconda                  5.1.0                    py27_2    defaults
anaconda-client           1.6.14                   py27_0    anaconda
anaconda-navigator        1.8.4                    py27_0    anaconda
anaconda-project          0.8.2            py27he89e3ca_0    anaconda
asn1crypto                0.24.0                   py27_0    anaconda
astroid                   1.6.3                    py27_0    anaconda
astropy                   2.0.6            py27hc997a72_1    anaconda
attrs                     18.1.0                   py27_0    anaconda
babel                     2.5.3                    py27_0    anaconda
backports                 1.0              py27h6492d98_1    anaconda
backports.functools_lru_cache 1.5                      py27_1    anaconda
backports.shutil_get_terminal_size 1.0.0            py27h1657125_2    anaconda
backports.shutil_which    3.5.1                    py27_2    anaconda
backports_abc             0.5              py27h0ec6b72_0    anaconda
beautifulsoup4            4.6.0            py27hc287451_1    anaconda
bitarray                  0.8.1            py27h0c8e037_1    anaconda
bkcharts                  0.2              py27h92b6de3_0    anaconda
blaze                     0.11.3           py27h97e5449_0    anaconda
bleach                    2.1.3                    py27_0    anaconda
blosc                     1.14.3               h95ae18b_0    anaconda
bokeh                     0.12.15                  py27_0    anaconda
boto                      2.48.0           py27h1ccb131_1    anaconda
bottleneck                1.2.1            py27hde90680_0    anaconda
bzip2                     1.0.6                     vc9_3  [vc9]  anaconda
ca-certificates           2018.03.07                    0    anaconda
cdecimal                  2.3              py27h0c8e037_3    anaconda
certifi                   2018.4.16                py27_0    anaconda
cffi                      1.11.5           py27hdb016f4_0    anaconda
chardet                   3.0.4            py27h56c3b73_1    anaconda
click                     6.7              py27hb6defca_0    anaconda
cloudpickle               0.5.2                    py27_1    anaconda
clyent                    1.2.2            py27h4424948_1    anaconda
colorama                  0.3.9            py27hdfe4ae1_0    anaconda
comtypes                  1.1.4                    py27_0    anaconda
conda                     4.5.2                    py27_0    anaconda
conda-build               3.10.2                   py27_0    anaconda
conda-env                 2.6.0                h36134e3_1    anaconda
conda-verify              2.0.0            py27h5217224_0    anaconda
configparser              3.5.0            py27h2fa79a8_0    anaconda
console_shortcut          0.1.1                h6bb2dd7_3    anaconda
contextlib2               0.5.5            py27h42efda5_0    anaconda
cryptography              2.2.2            py27h0c8e037_0    anaconda
curl                      7.59.0               h7a46e7a_0    anaconda
cycler                    0.10.0           py27h59acbbf_0    anaconda
cython                    0.28.2           py27h0c8e037_0    anaconda
cytoolz                   0.9.0.1          py27h0c8e037_0    anaconda
dask                      0.17.4                   py27_0    anaconda
dask-core                 0.17.4                   py27_0    anaconda
datashape                 0.5.4            py27h3d6e61b_0    anaconda
decorator                 4.3.0                    py27_0    anaconda
distributed               1.21.8                   py27_0    anaconda
docutils                  0.14             py27h8652d09_0    anaconda
entrypoints               0.2.3            py27h0271f2b_2    anaconda
enum34                    1.1.6            py27h2aa175b_1    anaconda
et_xmlfile                1.0.1            py27h1de5d23_0    anaconda
fastcache                 1.0.2            py27h0c8e037_2    anaconda
filelock                  3.0.4                    py27_0    anaconda
flask                     1.0.2                    py27_1    anaconda
flask-cors                3.0.4                    py27_0    anaconda
freetype                  2.8               vc9hf582001_0  [vc9]  anaconda
funcsigs                  1.0.2            py27h8885ae1_0    anaconda
functools32               3.2.3.2          py27h0cdbcdb_1    anaconda
futures                   3.2.0            py27h8b2aecd_0    anaconda
get_terminal_size         1.0.0                h38e98db_0    anaconda
gevent                    1.2.2            py27h1842022_0    anaconda
glob2                     0.6              py27hd4eee8c_0    anaconda
greenlet                  0.4.13           py27h0c8e037_0    anaconda
grin                      1.2.1                    py27_4    anaconda
h5py                      2.7.1            py27h2dd4c20_0    anaconda
hdf5                      1.10.1            vc9h9d13b45_0  [vc9]  anaconda
heapdict                  1.0.0                    py27_2    anaconda
html5lib                  1.0.1            py27h5a33001_0    anaconda
icc_rt                    2017.0.4             h97af966_0    anaconda
icu                       58.2              vc9h3e79e4e_0  [vc9]  anaconda
idna                      2.6              py27h1ea29d3_1    anaconda
imageio                   2.3.0                    py27_0    anaconda
imagesize                 1.0.0                    py27_0    anaconda
intel-openmp              2018.0.0                      8    anaconda
ipaddress                 1.0.22                   py27_0    anaconda
ipykernel                 4.8.2                    py27_0    anaconda
ipython                   5.6.0                    py27_0    anaconda
ipython_genutils          0.2.0            py27hbe997df_0    anaconda
ipywidgets                7.2.1                    py27_0    anaconda
isort                     4.3.4                    py27_0    anaconda
itsdangerous              0.24             py27hcf63135_1    anaconda
jdcal                     1.4                      py27_0    anaconda
jedi                      0.12.0                   py27_1    anaconda
jinja2                    2.10             py27hba1794b_0    anaconda
jpeg                      9b                vc9hb90d6ad_1  [vc9]  anaconda
jsonschema                2.6.0            py27haaf3834_0    anaconda
jupyter                   1.0.0                    py27_4    anaconda
jupyter_client            5.2.3                    py27_0    anaconda
jupyter_console           5.2.0            py27h6ed736b_1    anaconda
jupyter_core              4.4.0            py27h1619e65_0    anaconda
jupyterlab                0.32.1                   py27_0    anaconda
jupyterlab_launcher       0.10.5                   py27_0    anaconda
kiwisolver                1.0.1            py27h9815e84_0    anaconda
lazy-object-proxy         1.3.1            py27ha5c8080_0    anaconda
libcurl                   7.59.0               h0990ea7_0    anaconda
libiconv                  1.15              vc9h6e1f958_5  [vc9]  anaconda
libpng                    1.6.34               h325896a_0    anaconda
libsodium                 1.0.16               h8b3e59e_0    anaconda
libssh2                   1.8.0             vc9h457d253_2  [vc9]  anaconda
libtiff                   4.0.9                h1c3b264_1    anaconda
libxml2                   2.9.8                h726ebc2_0    anaconda
libxslt                   1.1.32               h89dfad8_0    anaconda
llvmlite                  0.22.0           py27ha7086b9_0    anaconda
locket                    0.2.0            py27h1ca288a_1    anaconda
lxml                      4.2.1            py27h803002f_0    anaconda
lzo                       2.10              vc9h0e427f0_1  [vc9]  anaconda
m2w64-gcc-libgfortran     5.3.0                         6    defaults
m2w64-gcc-libs            5.3.0                         7    defaults
m2w64-gcc-libs-core       5.3.0                         7    defaults
m2w64-gmp                 6.1.0                         2    defaults
m2w64-libwinpthread-git   5.0.0.4634.697f757               2    defaults
markupsafe                1.0              py27h9d4480d_1    anaconda
matplotlib                2.2.2            py27h8803d4e_1    anaconda
mccabe                    0.6.1            py27hde0bf6e_1    anaconda
menuinst                  1.4.12           py27h0c8e037_0    anaconda
mistune                   0.8.3            py27h0c8e037_1    anaconda
mkl                       2018.0.2                      1    anaconda
mkl-service               1.1.2            py27h3c6b6b0_4    anaconda
mkl_fft                   1.0.1            py27hc997a72_0    anaconda
more-itertools            4.1.0                    py27_0    anaconda
mpmath                    1.0.0            py27h0d59bc2_2    anaconda
msgpack-python            0.5.6            py27hdc96acc_0    anaconda
msys2-conda-epoch         20160418                      1    defaults
multipledispatch          0.5.0                    py27_0    anaconda
navigator-updater         0.2.0                    py27_0    anaconda
nbconvert                 5.3.1            py27h7a573cf_0    anaconda
nbformat                  4.4.0            py27hf49b375_0    anaconda
networkx                  2.1                      py27_0    anaconda
nltk                      3.3.0                    py27_0    anaconda
nose                      1.3.7            py27h84c72c6_2    anaconda
notebook                  5.4.1                    py27_0    anaconda
numba                     0.37.0          np114py27h720bfd4_0    anaconda
numexpr                   2.6.5            py27h3b259a0_0    anaconda
numpy                     1.14.3           py27h297e335_0    anaconda
numpy-base                1.14.3           py27h0bb1d87_0    anaconda
numpydoc                  0.8.0                    py27_0    anaconda
odo                       0.5.1            py27h64810b2_0    anaconda
olefile                   0.45.1                   py27_0    anaconda
openpyxl                  2.5.3                    py27_0    anaconda
openssl                   1.0.2o               h2c51139_0    anaconda
packaging                 17.1                     py27_0    anaconda
pandas                    0.22.0           py27hc56fc5f_0    anaconda
pandoc                    1.19.2.1             hb2460c7_1    anaconda
pandocfilters             1.4.2            py27h76461d3_1    anaconda
parso                     0.2.0                    py27_0    anaconda
partd                     0.3.8            py27h1e0692f_0    anaconda
path.py                   11.0.1                   py27_0    anaconda
pathlib2                  2.3.2                    py27_0    anaconda
patsy                     0.5.0                    py27_0    anaconda
pep8                      1.7.1                    py27_0    anaconda
pickleshare               0.7.4            py27hb5f6335_0    anaconda
pillow                    5.1.0            py27h901f87c_0    anaconda
pip                       10.0.1                   py27_0    anaconda
pkginfo                   1.4.2                    py27_1    anaconda
pluggy                    0.6.0            py27h89dc50b_0    anaconda
ply                       3.11                     py27_0    anaconda
prompt_toolkit            1.0.15           py27h3a8ec6a_0    anaconda
psutil                    5.4.5            py27h0c8e037_0    anaconda
py                        1.5.3                    py27_0    anaconda
pycodestyle               2.4.0                    py27_0    anaconda
pycosat                   0.6.3            py27hcd410c5_0    anaconda
pycparser                 2.18             py27hb43d16c_1    anaconda
pycrypto                  2.6.1            py27h0c8e037_8    anaconda
pycurl                    7.43.0.1         py27hc64555f_0    anaconda
pyflakes                  1.6.0            py27h34e7826_0    anaconda
pygments                  2.2.0            py27ha50f84f_0    anaconda
pylint                    1.8.4                    py27_0    anaconda
pyodbc                    4.0.23           py27hc56fc5f_0    anaconda
pyopenssl                 17.5.0           py27h59156d7_0    anaconda
pyparsing                 2.2.0            py27hc7d9fa6_1    anaconda
pyqt                      5.6.0                    py27_2    anaconda
pysocks                   1.6.8                    py27_0    anaconda
pytables                  3.4.3            py27hdd5b532_0    anaconda
pytest                    3.5.1                    py27_0    anaconda
python                    2.7.15               he216670_0    anaconda
python-dateutil           2.7.2                    py27_0    anaconda
pytz                      2018.4                   py27_0    anaconda
pywavelets                0.5.2            py27h0dc3f48_0    anaconda
pywin32                   223              py27h0c8e037_1    anaconda
pywinpty                  0.5.1                    py27_0    anaconda
pyyaml                    3.12             py27ha287073_1    anaconda
pyzmq                     17.0.0           py27h0c8e037_1    anaconda
qt                        5.6.2            vc9hc26998b_12  [vc9]  anaconda
qtawesome                 0.4.4            py27h766b13d_0    anaconda
qtconsole                 4.3.1            py27h77d40ac_0    anaconda
qtpy                      1.4.1                    py27_0    anaconda
requests                  2.18.4           py27h3159eba_1    anaconda
rope                      0.10.7           py27hb65afb6_0    anaconda
ruamel_yaml               0.15.35          py27h0c8e037_1    anaconda
scandir                   1.7              py27h0c8e037_0    anaconda
scikit-image              0.13.1           py27h0c8e037_1    anaconda
scikit-learn              0.19.1           py27he00e316_0    anaconda
scipy                     1.1.0            py27ha6b90e7_0    anaconda
seaborn                   0.8.1            py27hab56d54_0    anaconda
send2trash                1.5.0                    py27_0    anaconda
setuptools                39.1.0                   py27_0    anaconda
simplegeneric             0.8.1                    py27_2    anaconda
singledispatch            3.4.0.3          py27h3f9d112_0    anaconda
sip                       4.19.8           py27hc56fc5f_0    anaconda
six                       1.11.0           py27ha5e1701_1    anaconda
snappy                    1.1.7             vc9h2c366ff_1  [vc9]  anaconda
snowballstemmer           1.2.1            py27h28d3bf7_0    anaconda
sortedcollections         0.6.1                    py27_0    anaconda
sortedcontainers          1.5.10                   py27_0    anaconda
sphinx                    1.7.4                    py27_0    anaconda
sphinxcontrib             1.0              py27h0e2fb95_1    anaconda
sphinxcontrib-websupport  1.0.1            py27h0d0f901_1    anaconda
spyder                    3.2.8                    py27_0    anaconda
sqlalchemy                1.2.7            py27h9dc6b9e_0    anaconda
sqlite                    3.23.1               h0f31022_0    anaconda
ssl_match_hostname        3.5.0.1          py27hea8a0f4_2    anaconda
statsmodels               0.8.0            py27hc77c1fc_0    anaconda
subprocess32              3.2.7            py27hcc576e2_0    anaconda
sympy                     1.1.1            py27hde44fae_0    anaconda
tblib                     1.3.2            py27h8ae915c_0    anaconda
terminado                 0.8.1                    py27_1    anaconda
testpath                  0.3.1            py27h1cd488d_0    anaconda
tk                        8.6.7             vc9h452fa07_1  [vc9]  anaconda
toolz                     0.9.0                    py27_0    anaconda
tornado                   5.0.2                    py27_0    anaconda
traitlets                 4.3.2            py27h1b1b3a5_0    anaconda
typing                    3.6.4                    py27_0    anaconda
unicodecsv                0.14.1           py27h0bf7bb0_0    anaconda
urllib3                   1.22             py27hb9f5a07_0    anaconda
vc                        9                    h7299396_1    anaconda
vs2008_runtime            9.00.30729.5054               0    anaconda
vs2015_runtime            14.0.25420                    0    anaconda
wcwidth                   0.1.7            py27hb1a0d82_0    anaconda
webencodings              0.5.1            py27h4e224a2_1    anaconda
werkzeug                  0.14.1                   py27_0    anaconda
wheel                     0.31.0                   py27_0    anaconda
widgetsnbextension        3.2.1                    py27_0    anaconda
win_inet_pton             1.0.1            py27hf41312a_1    anaconda
win_unicode_console       0.5              py27hc037021_0    anaconda
wincertstore              0.2              py27hf04cefb_0    anaconda
winpty                    0.4.3                         4    anaconda
wrapt                     1.10.11          py27hcd2b27d_0    anaconda
xlrd                      1.1.0            py27h2b87a7f_1    anaconda
xlsxwriter                1.0.4                    py27_0    anaconda
xlwings                   0.11.7                   py27_0    anaconda
xlwt                      1.3.0            py27h2271735_0    anaconda
yaml                      0.1.7             vc9heb3852e_1  [vc9]  anaconda
zeromq                    4.2.5                h907ab29_0    anaconda
zict                      0.1.3            py27h0171463_0    anaconda
zlib                      1.2.11            vc9ha80f4e8_1  [vc9]  anaconda
mingwandroid commented 6 years ago

Please stop using the anaconda channel. If having done that your problem persists then show the new details.

newville commented 6 years ago

Huh, I don't recall adding the anaconda channel.... Was it deprecated? Is that documented somewhere a user would be able to see and respond to it? Because, weirdly, it was determined to have the latest packages. That makes it seem not-quite deprecated.

I removed all channels listed in .condarc except "default" and did another conda update --all. Now no packages are listed to have come from the anaconda channel, though the packages are neither up- nor down-graded in version. But, the import does now work. I'll be cautiously optimistic, but I still think this is pretty strange behavior. Why would that channel have packages that are the latest version but (partially?) broken? That seems like no end of confusion for end-users!

mingwandroid commented 6 years ago

Was it deprecated?

No, it was something added to address some enterprise mirroring needs (or something like that). It was never supported, it was never added to any ~/.condarc automatically by any process we have written or released, it was never never advertised and never supposed to be used by any end-user. People just found it and started to use it and it's been a constant source of trouble ever since.

At AD5 time we made a clean break from the old software in the free channel and the new software in the main channel. Since some people would still need some old things in free we decided to add both to the defaults meta-channel, but with free having lower priority than main. My hope is to be able to remove free altogether someday.

This anaconda channel is an amalgamation of free and main such that the channel priority aspect no longer exists. Over time, this becomes less problematic as main gets more complete but it's still a cause of hard to debug issues.

Can you now try to create an isolated environment with:

conda create -n py2qt5 python=2.7 qt

.. activate it and see if the problem persists?

If it doesn't then I'd like to see the conda list --show-channel-urls for both your base env and this new one. If it does persist then please just provide the conda list --show-channel-urls from this new env.