ContinuumIO / anaconda-issues

Anaconda issue tracking
648 stars 223 forks source link

tkinter not working in newest (Python 3.6 and 3.7) releases for Mac Mojave (10.14.6) #11305

Open pwilmart opened 5 years ago

pwilmart commented 5 years ago

Actual Behavior

Python scripts using tkinter (several of my scripts and also IDLE) that worked in the past have stopped working. The problem is that running any script that uses tkinter logs me out of the Mac rather than launching. If I create an environment with Python 3.5, things work fine. Python 3.6 and 3.7 environments do not work. I update my Mac OS regularly. I cannot say if the problems have any correlation with any Mac system updates, but I think it is more related to the new Python updates.

I downloaded a non-Anaconda Python 3.7 from www.python.org, installed that, and everything runs just fine. I also have Windows 10 running on a virtual machine and there are no problems on the Windows side with the Python 3.7 Anaconda distribution.

Expected Behavior

When launching Python scripts that use tkinter from the standard library, they should launch and run instead of logging me out of my account.

Steps to Reproduce

Launching IDLE from the command line (this is an "idle3" command on the Mac), or running any Python script that uses the tkinter library will cause a rapid logout of my account on the Mac. It does not cause a reboot, "just" a log out.

Anaconda or Miniconda version:

The version from this installer: Anaconda3-2019.07-MacOSX-x86_64.pkg

Operating System:

Mac OSX Mojave (10.14.6), computer: 2017 iMac 27" and late 2016 MacBook

conda info
``` active environment : base active env location : /Users/pwilmart/anaconda3 shell level : 1 user config file : /Users/pwilmart/.condarc populated config files : conda version : 4.7.11 conda-build version : 3.18.8 python version : 3.7.3.final.0 virtual packages : base environment : /Users/pwilmart/anaconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/osx-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/osx-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /Users/pwilmart/anaconda3/pkgs /Users/pwilmart/.conda/pkgs envs directories : /Users/pwilmart/anaconda3/envs /Users/pwilmart/.conda/envs platform : osx-64 user-agent : conda/4.7.11 requests/2.22.0 CPython/3.7.3 Darwin/18.7.0 OSX/10.14.6 UID:GID : 501:20 netrc file : None offline mode : False ```
conda list --show-channel-urls
``` # packages in environment at /Users/pwilmart/anaconda3: # # Name Version Build Channel _anaconda_depends 2019.03 py37_0 defaults _ipyw_jlab_nb_ext_conf 0.1.0 py37_0 defaults alabaster 0.7.12 py37_0 defaults anaconda custom py37_1 defaults anaconda-client 1.7.2 py37_0 defaults anaconda-navigator 1.9.7 py37_0 defaults anaconda-project 0.8.3 py_0 defaults appnope 0.1.0 py37_0 defaults appscript 1.1.0 py37h1de35cc_0 defaults asn1crypto 0.24.0 py37_0 defaults astroid 2.2.5 py37_0 defaults astropy 3.2.1 py37h1de35cc_0 defaults atomicwrites 1.3.0 py37_1 defaults attrs 19.1.0 py37_1 defaults babel 2.7.0 py_0 defaults backcall 0.1.0 py37_0 defaults backports 1.0 py_2 defaults backports.functools_lru_cache 1.5 py_2 defaults backports.os 0.1.1 py37_0 defaults backports.shutil_get_terminal_size 1.0.0 py37_2 defaults backports.tempfile 1.0 py_1 defaults backports.weakref 1.0.post1 py_1 defaults beautifulsoup4 4.8.0 py37_0 defaults bitarray 1.0.1 py37h1de35cc_0 defaults bkcharts 0.2 py37_0 defaults blas 1.0 mkl defaults bleach 3.1.0 py37_0 defaults blosc 1.16.3 hd9629dc_0 defaults bokeh 1.3.4 py37_0 defaults boto 2.49.0 py37_0 defaults bottleneck 1.2.1 py37h1d22016_1 defaults bzip2 1.0.8 h1de35cc_0 defaults ca-certificates 2019.5.15 1 defaults certifi 2019.6.16 py37_1 defaults cffi 1.12.3 py37hb5b8e2f_0 defaults chardet 3.0.4 py37_1003 defaults click 7.0 py37_0 defaults cloudpickle 1.2.1 py_0 defaults clyent 1.2.2 py37_1 defaults colorama 0.4.1 py37_0 defaults conda 4.7.11 py37_0 defaults conda-build 3.18.8 py37_0 defaults conda-env 2.6.0 1 defaults conda-package-handling 1.3.11 py37_0 defaults conda-verify 3.4.2 py_1 defaults contextlib2 0.5.5 py37_0 defaults cryptography 2.7 py37ha12b0ac_0 defaults curl 7.65.3 ha441bb4_0 defaults cycler 0.10.0 py37_0 defaults cython 0.29.13 py37h0a44026_0 defaults cytoolz 0.10.0 py37h1de35cc_0 defaults dask 2.3.0 py_0 defaults dask-core 2.3.0 py_0 defaults dbus 1.13.6 h90a0687_0 defaults decorator 4.4.0 py37_1 defaults defusedxml 0.6.0 py_0 defaults distributed 2.3.2 py_1 defaults docutils 0.15.2 py37_0 defaults entrypoints 0.3 py37_0 defaults et_xmlfile 1.0.1 py37_0 defaults expat 2.2.6 h0a44026_0 defaults fastcache 1.1.0 py37h1de35cc_0 defaults filelock 3.0.12 py_0 defaults flask 1.1.1 py_0 defaults freetype 2.9.1 hb4e5f40_0 defaults fsspec 0.4.0 py_0 defaults future 0.17.1 py37_0 defaults get_terminal_size 1.0.0 h7520d66_0 defaults gettext 0.19.8.1 h15daf44_3 defaults gevent 1.4.0 py37h1de35cc_0 defaults glib 2.56.2 hd9629dc_0 defaults glob2 0.7 py_0 defaults gmp 6.1.2 hb37e062_1 defaults gmpy2 2.0.8 py37h6ef4df4_2 defaults greenlet 0.4.15 py37h1de35cc_0 defaults h5py 2.9.0 py37h3134771_0 defaults hdf5 1.10.4 hfa1e0ec_0 defaults heapdict 1.0.0 py37_2 defaults html5lib 1.0.1 py37_0 defaults icu 58.2 h4b95b61_1 defaults idna 2.8 py37_0 defaults imageio 2.5.0 py37_0 defaults imagesize 1.1.0 py37_0 defaults importlib_metadata 0.19 py37_0 defaults intel-openmp 2019.4 233 defaults ipykernel 5.1.2 py37h39e3cac_0 defaults ipython 7.8.0 py37h39e3cac_0 defaults ipython_genutils 0.2.0 py37_0 defaults ipywidgets 7.5.1 py_0 defaults isort 4.3.21 py37_0 defaults itsdangerous 1.1.0 py37_0 defaults jbig 2.1 h4d881f8_0 defaults jdcal 1.4.1 py_0 defaults jedi 0.15.1 py37_0 defaults jinja2 2.10.1 py37_0 defaults joblib 0.13.2 py37_0 defaults jpeg 9b he5867d9_2 defaults json5 0.8.5 py_0 defaults jsonschema 3.0.2 py37_0 defaults jupyter 1.0.0 py37_7 defaults jupyter_client 5.3.1 py_0 defaults jupyter_console 6.0.0 py37_0 defaults jupyter_core 4.5.0 py_0 defaults jupyterlab 1.1.3 pyhf63ae98_0 defaults jupyterlab_server 1.0.0 py_1 defaults keyring 18.0.0 py37_0 defaults kiwisolver 1.1.0 py37h0a44026_0 defaults krb5 1.16.1 hddcf347_7 defaults lazy-object-proxy 1.4.2 py37h1de35cc_0 defaults libarchive 3.3.3 h786848e_5 defaults libcurl 7.65.3 h051b688_0 defaults libcxx 4.0.1 hcfea43d_1 defaults libcxxabi 4.0.1 hcfea43d_1 defaults libedit 3.1.20181209 hb402a30_0 defaults libffi 3.2.1 h475c297_4 defaults libgfortran 3.0.1 h93005f0_2 defaults libiconv 1.15 hdd342a3_7 defaults liblief 0.9.0 h2a1bed3_2 defaults libpng 1.6.37 ha441bb4_0 defaults libsodium 1.0.16 h3efe00b_0 defaults libssh2 1.8.2 ha12b0ac_0 defaults libtiff 4.0.10 hcb84e12_2 defaults libxml2 2.9.9 hf6e021a_1 defaults libxslt 1.1.33 h33a18ac_0 defaults llvm-openmp 4.0.1 hcfea43d_1 defaults llvmlite 0.29.0 py37h98b8051_0 defaults locket 0.2.0 py37_1 defaults lxml 4.4.1 py37hef8c89e_0 defaults lz4-c 1.8.1.2 h1de35cc_0 defaults lzo 2.10 h362108e_2 defaults markupsafe 1.1.1 py37h1de35cc_0 defaults matplotlib 3.1.1 py37h54f8f79_0 defaults mccabe 0.6.1 py37_1 defaults mistune 0.8.4 py37h1de35cc_0 defaults mkl 2019.4 233 defaults mkl-service 2.3.0 py37hfbe908c_0 defaults mkl_fft 1.0.14 py37h5e564d8_0 defaults mkl_random 1.0.2 py37h27c97d8_0 defaults mock 3.0.5 py37_0 defaults more-itertools 7.2.0 py37_0 defaults mpc 1.1.0 h6ef4df4_1 defaults mpfr 4.0.1 h3018a27_3 defaults mpmath 1.1.0 py37_0 defaults msgpack-python 0.6.1 py37h04f5b5a_1 defaults multipledispatch 0.6.0 py37_0 defaults navigator-updater 0.2.1 py37_0 defaults nbconvert 5.5.0 py_0 defaults nbformat 4.4.0 py37_0 defaults ncurses 6.1 h0a44026_1 defaults networkx 2.3 py_0 defaults nltk 3.4.5 py37_0 defaults nose 1.3.7 py37_2 defaults notebook 6.0.1 py37_0 defaults numba 0.45.1 py37h6440ff4_0 defaults numexpr 2.7.0 py37h7413580_0 defaults numpy 1.16.5 py37hacdab7b_0 defaults numpy-base 1.16.5 py37h6575580_0 defaults numpydoc 0.9.1 py_0 defaults olefile 0.46 py37_0 defaults openpyxl 2.6.2 py_0 defaults openssl 1.1.1d h1de35cc_1 defaults packaging 19.1 py37_0 defaults pandas 0.25.1 py37h0a44026_0 defaults pandoc 2.2.3.2 0 defaults pandocfilters 1.4.2 py37_1 defaults parso 0.5.1 py_0 defaults partd 1.0.0 py_0 defaults path.py 12.0.1 py_0 defaults pathlib2 2.3.4 py37_0 defaults patsy 0.5.1 py37_0 defaults pcre 8.43 h0a44026_0 defaults pep8 1.7.1 py37_0 defaults pexpect 4.7.0 py37_0 defaults pickleshare 0.7.5 py37_0 defaults pillow 6.1.0 py37hb68e598_0 defaults pip 19.2.2 py37_0 defaults pkginfo 1.5.0.1 py37_0 defaults pluggy 0.12.0 py_0 defaults ply 3.11 py37_0 defaults prometheus_client 0.7.1 py_0 defaults prompt_toolkit 2.0.9 py37_0 defaults psutil 5.6.3 py37h1de35cc_0 defaults ptyprocess 0.6.0 py37_0 defaults py 1.8.0 py37_0 defaults py-lief 0.9.0 py37h1413db1_2 defaults pycodestyle 2.5.0 py37_0 defaults pycosat 0.6.3 py37h1de35cc_0 defaults pycparser 2.19 py37_0 defaults pycrypto 2.6.1 py37h1de35cc_9 defaults pycurl 7.43.0.3 py37ha12b0ac_0 defaults pyflakes 2.1.1 py37_0 defaults pygments 2.4.2 py_0 defaults pylint 2.3.1 py37_0 defaults pyodbc 4.0.27 py37h0a44026_0 defaults pyopenssl 19.0.0 py37_0 defaults pyparsing 2.4.2 py_0 defaults pyqt 5.9.2 py37h655552a_2 defaults pyrsistent 0.14.11 py37h1de35cc_0 defaults pysocks 1.7.0 py37_0 defaults pytables 3.5.2 py37h5bccee9_1 defaults pytest 5.0.1 py37_0 defaults pytest-arraydiff 0.3 py37h39e3cac_0 defaults pytest-astropy 0.5.0 py37_0 defaults pytest-doctestplus 0.3.0 py37_0 defaults pytest-openfiles 0.3.2 py37_0 defaults pytest-remotedata 0.3.2 py37_0 defaults python 3.7.3 h359304d_0 defaults python-dateutil 2.8.0 py37_0 defaults python-libarchive-c 2.8 py37_13 defaults python.app 2 py37_9 defaults pytz 2019.2 py_0 defaults pywavelets 1.0.3 py37h1d22016_1 defaults pyyaml 5.1.2 py37h1de35cc_0 defaults pyzmq 18.1.0 py37h0a44026_0 defaults qt 5.9.7 h468cd18_1 defaults qtawesome 0.5.7 py37_1 defaults qtconsole 4.5.5 py_0 defaults qtpy 1.9.0 py_0 defaults readline 7.0 h1de35cc_5 defaults requests 2.22.0 py37_0 defaults rope 0.14.0 py_0 defaults ruamel_yaml 0.15.46 py37h1de35cc_0 defaults scikit-image 0.15.0 py37h0a44026_0 defaults scikit-learn 0.21.2 py37h27c97d8_0 defaults scipy 1.3.1 py37h1410ff5_0 defaults seaborn 0.9.0 py37_0 defaults send2trash 1.5.0 py37_0 defaults setuptools 41.0.1 py37_0 defaults simplegeneric 0.8.1 py37_2 defaults singledispatch 3.4.0.3 py37_0 defaults sip 4.19.8 py37h0a44026_0 defaults six 1.12.0 py37_0 defaults snappy 1.1.7 he62c110_3 defaults snowballstemmer 1.9.0 py_0 defaults sortedcollections 1.1.2 py37_0 defaults sortedcontainers 2.1.0 py37_0 defaults soupsieve 1.9.2 py37_0 defaults sphinx 2.1.2 py_0 defaults sphinxcontrib 1.0 py37_1 defaults sphinxcontrib-applehelp 1.0.1 py_0 defaults sphinxcontrib-devhelp 1.0.1 py_0 defaults sphinxcontrib-htmlhelp 1.0.2 py_0 defaults sphinxcontrib-jsmath 1.0.1 py_0 defaults sphinxcontrib-qthelp 1.0.2 py_0 defaults sphinxcontrib-serializinghtml 1.1.3 py_0 defaults sphinxcontrib-websupport 1.1.2 py_0 defaults spyder 3.3.6 py37_0 defaults spyder-kernels 0.5.1 py37_0 defaults sqlalchemy 1.3.7 py37h1de35cc_0 defaults sqlite 3.29.0 ha441bb4_0 defaults statsmodels 0.10.1 py37h1d22016_0 defaults sympy 1.4 py37_0 defaults tbb 2019.4 h04f5b5a_0 defaults tblib 1.4.0 py_0 defaults terminado 0.8.2 py37_0 defaults testpath 0.4.2 py37_0 defaults tk 8.6.8 ha441bb4_0 defaults toolz 0.10.0 py_0 defaults tornado 6.0.3 py37h1de35cc_0 defaults tqdm 4.32.1 py_0 defaults traitlets 4.3.2 py37_0 defaults unicodecsv 0.14.1 py37_0 defaults unixodbc 2.3.7 h1de35cc_0 defaults urllib3 1.24.2 py37_0 defaults wcwidth 0.1.7 py37_0 defaults webencodings 0.5.1 py37_1 defaults werkzeug 0.15.5 py_0 defaults wheel 0.33.4 py37_0 defaults widgetsnbextension 3.5.1 py37_0 defaults wrapt 1.11.2 py37h1de35cc_0 defaults wurlitzer 1.0.3 py37_0 defaults xlrd 1.2.0 py37_0 defaults xlsxwriter 1.1.8 py_0 defaults xlwings 0.15.8 py37_0 defaults xlwt 1.3.0 py37_0 defaults xz 5.2.4 h1de35cc_4 defaults yaml 0.1.7 hc338f04_2 defaults zeromq 4.3.1 h0a44026_3 defaults zict 1.0.0 py_0 defaults zipp 0.5.2 py_0 defaults zlib 1.2.11 h1de35cc_3 defaults zstd 1.3.7 h5bba6e5_0 defaults ```
fpiesche commented 5 years ago

I can confirm this happening and have also reproduced it with both miniconda2 and miniconda3 4.7.12 on both macOS 10.4.6; however in my case it doesn't always crash the entire login session - when running a Python script using Tkinter via a GUI application, I managed to get the following stack trace instead:



2019-10-14 10:37:03.143 python[8733:628034] -[QNSApplication _setup:]: unrecognized selector sent to instance 0x7facee3f61e0
2019-10-14 10:37:03.146 python[8733:628034] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QNSApplication _setup:]: unrecognized selector sent to instance 0x7facee3f61e0'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff4b749b79 __exceptionPreprocess + 256
    1   libobjc.A.dylib                     0x00007fff75ebe3c6 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff4b7c427b -[NSObject(NSObject) __retain_OA] + 0
    3   CoreFoundation                      0x00007fff4b6eb658 ___forwarding___ + 1478
    4   CoreFoundation                      0x00007fff4b6eb008 _CF_forwarding_prep_0 + 120
    5   libtk8.6.dylib                      0x000000011c14531d TkpInit + 413
    6   libtk8.6.dylib                      0x000000011c09d17e Initialize + 2622
    7   _tkinter.cpython-37m-darwin.so      0x000000011bec5a0f _tkinter_create + 1183
    8   python                              0x0000000101f12116 _PyMethodDef_RawFastCallKeywords + 230
    9   python                              0x000000010204ee42 call_function + 306
    10  python                              0x000000010204caec _PyEval_EvalFrameDefault + 46092
    11  python                              0x000000010204049e _PyEval_EvalCodeWithName + 414
    12  python                              0x0000000101f10de7 _PyFunction_FastCallDict + 231
    13  python                              0x0000000101f93381 slot_tp_init + 193
    14  python                              0x0000000101f9d361 type_call + 241
    15  python                              0x0000000101f11ae3 _PyObject_FastCallKeywords + 179
    16  python                              0x000000010204eed5 call_function + 453
    17  python                              0x000000010204caec _PyEval_EvalFrameDefault + 46092
    18  python                              0x0000000101f118d5 function_code_fastcall + 117
    19  python                              0x000000010204edc7 call_function + 183
    20  python                              0x000000010204cb27 _PyEval_EvalFrameDefault + 46151
    21  python                              0x000000010204049e _PyEval_EvalCodeWithName + 414
    22  python                              0x00000001020a39a0 PyRun_FileExFlags + 256
    23  python                              0x00000001020a2e17 PyRun_SimpleFileExFlags + 391
    24  python                              0x00000001020d0d3f pymain_main + 9663
    25  python                              0x0000000101ee466d main + 125
    26  libdyld.dylib                       0x00007fff776833d5 start + 1
    27  ???                                 0x0000000000000005 0x0 + 5
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Users/piesche/CCDC/CSD_2019/mercury.app/Contents/MacOS/api_launcher.sh: line 50:  8733 Abort trap: 6           "$@"```
fpiesche commented 5 years ago

@pwilmart does your script, or any wrapper around it, happen to make use of Qt/QApplication objects or matplotlib as well? I've found a bug in our internal bug tracker reporting this on macOS 10.13, with a similar stack trace to the one above and a workaround eventually found of not creating a QApplication and a note saying that matplotlib also has trouble coexisting with Tkinter on macOS.

pwilmart commented 5 years ago

I have just one script of about a half dozen that uses Matplotlib with tkinter, the others do not. I do not use Qt.

recohen commented 5 years ago

The following simple script crashes macos every time, both with the command line and in spyder.

tktest.py.zip

My own code crashes at the first executable line, a TK call (last line below):

! /usr/bin/env python

from pwscf_analyzer import PwscfAnalyzer import tkinter as tk import tkFileDialog

def run_statsandplot(Event): begin = tk.IntVar() begin=e1.get()

default statistical analysis

#   weak attempt at equilibration detection
#   automatic estimation of autocorrelation
#print pa.md_stats
# equilibration time specified, estimate autocorrelation
print ("Cutting off {0} steps for equilibration".format(begin))
print("Mean    StdErrorMean   Correlation Time (steps)")
print ("begin=",begin)
print (pa.md_statistics(equil=int(begin)))
# equilibration and autocorrelation time specified
#print pa.md_statistics(equil=20,autocorr=45)
#end if
pa.md_plots(filename,int(begin))

root = tk.Tk()

recohen commented 5 years ago

By downgrading python to 2.7.13 I get the following traceback at the root=tk.TK() line instead of crashing the mac:

(py2) bash-3.2$ python ~/Dropbox/Github/qmcpack/nexus/lib/analyze_pwscf_md.py 2019-11-06 15:57:19.599 python[3679:1692342] -[NSApplication _setup:]: unrecognized selector sent to instance 0x7fbc51df1ec0 2019-11-06 15:57:19.600 python[3679:1692342] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x7fbc51df1ec0' First throw call stack: ( 0 CoreFoundation 0x00007fff3ad04b79 exceptionPreprocess + 256 1 libobjc.A.dylib 0x00007fff6547d3c6 objc_exception_throw + 48 2 CoreFoundation 0x00007fff3ad7f27b -[NSObject(NSObject) retain_OA] + 0 3 CoreFoundation 0x00007fff3aca6658 forwarding + 1478 4 CoreFoundation 0x00007fff3aca6008 _CF_forwarding_prep_0 + 120 5 libtk8.6.dylib 0x0000000107ddf31d TkpInit + 413 6 libtk8.6.dylib 0x0000000107d3717e Initialize + 2622 7 _tkinter.so 0x0000000107b62bf4 Tcl_AppInit + 84 8 _tkinter.so 0x0000000107b62458 Tkinter_Create + 1128 9 libpython2.7.dylib 0x00000001077f3d84 PyEval_EvalFrameEx + 23044 10 libpython2.7.dylib 0x00000001077ee124 PyEval_EvalCodeEx + 2164 11 libpython2.7.dylib 0x00000001077706d3 function_call + 355 12 libpython2.7.dylib 0x00000001077483d5 PyObject_Call + 101 13 libpython2.7.dylib 0x0000000107757182 instancemethod_call + 162 14 libpython2.7.dylib 0x00000001077483d5 PyObject_Call + 101 15 libpython2.7.dylib 0x00000001077f7e9f PyEval_CallObjectWithKeywords + 159 16 libpython2.7.dylib 0x0000000107755114 PyInstance_New + 148 17 libpython2.7.dylib 0x00000001077483d5 PyObject_Call + 101 18 libpython2.7.dylib 0x00000001077f3a08 PyEval_EvalFrameEx + 22152 19 libpython2.7.dylib 0x00000001077ee124 PyEval_EvalCodeEx + 2164 20 libpython2.7.dylib 0x00000001077ed8a2 PyEval_EvalCode + 34 21 libpython2.7.dylib 0x000000010781b22d PyRun_FileExFlags + 157 22 libpython2.7.dylib 0x000000010781ad70 PyRun_SimpleFileExFlags + 816 23 libpython2.7.dylib 0x0000000107831932 Py_Main + 3506 24 libdyld.dylib 0x00007fff66c423d5 start + 1 25 ??? 0x0000000000000002 0x0 + 2 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6 (py2) bash-3.2$

recohen commented 5 years ago

However with the downgraded python the tktest.py code DOES work! Strange.
Ron Cohen

recohen commented 5 years ago

With python 2.7.13 h89fad4f_16
and tk 8.6.8 ha441bb4_0

my code works if I change the order of the import statements (see below).

If I then upgrade python to 2.7.16 it still works.

If I then say: conda upgrade tk

then it crashes my whole mac to a black screen.

conda list --revisions shows for that last upgrade:

2019-11-07 09:26:45 (rev 8) blas {1.0 -> 1.0} numpy {1.16.5 -> 1.16.5} numpy-base {1.16.5 -> 1.16.5} scipy {1.2.1 -> 1.2.1} -libopenblas-0.3.6 -xz-5.2.4 +intel-openmp-2019.4 +mkl-2019.4 +mkl-service-2.3.0 +mkl_fft-1.0.15 +mkl_random-1.1.0

I do not know why that should interact with tk!!

I am trying to downgrade tk to 8.6.7 and try that with python 2.7.16 but it finds many conflicts and conda has been running for over half an hour trying to resolve.

Does anyone have further information on this problem? It is a pain having one's computer crash with tests!

Sincerely,

Ron


! /usr/bin/env python

import Tkinter as tk import tkFileDialog root = tk.Tk() root.withdraw() filename = tkFileDialog.askopenfilename(parent=root,title="Select QE MD output file" )

from pwscf_analyzer import PwscfAnalyzer

jjhelmus commented 4 years ago

This may be related to #11165