Open efiring opened 2 years ago
Please run
conda activate test
conda install --force-reinstall python.app
That should fix your error.
Sadly, it doesn't:
(test) ~/currents/programs/pycurrents $ conda install --force-reinstall python.app
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /Users/efiring/miniconda3/envs/test
added / updated specs:
- python.app
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(test) ~/currents/programs/pycurrents $ spyder
The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile.
Chromium on macOS will fall back to software rendering in this case.
Hardware acceleration and features such as WebGL will not be available.
fromIccProfile: failed minimal tag size sanity
Qt WebEngine resources not found at /Users/efiring/miniconda3/envs/test/Resources. Trying parent directory...
Qt WebEngine resources not found at /Users/efiring/miniconda3/envs/test. Trying application directory...
Qt WebEngine resources not found at /Users/efiring/miniconda3/envs/test/bin. Trying fallback directory... The application MAY NOT work.
[0609/131338.834281:ERROR:icu_util.cc(251)] Couldn't mmap icu data file
/Users/efiring/miniconda3/envs/test/bin/pythonw: line 3: 94084 Trace/BPT trap: 5 /Users/efiring/miniconda3/envs/test/python.app/Contents/MacOS/python "$@"
Ok, I don't know what's happening in your case then.
Could you try with other Python versions (3.9, 3.8)? Perhaps it's an issue with Python 3.10.
Same result with 3.8:
~/currents/programs/pycurrents $ conda activate test_308
(test_308) ~/currents/programs/pycurrents $ spyder
The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile.
Chromium on macOS will fall back to software rendering in this case.
Hardware acceleration and features such as WebGL will not be available.
fromIccProfile: failed minimal tag size sanity
Qt WebEngine resources not found at /Users/efiring/miniconda3/envs/test_308/Resources. Trying parent directory...
Qt WebEngine resources not found at /Users/efiring/miniconda3/envs/test_308. Trying application directory...
Qt WebEngine resources not found at /Users/efiring/miniconda3/envs/test_308/bin. Trying fallback directory... The application MAY NOT work.
[0609/134653.738713:ERROR:icu_util.cc(251)] Couldn't mmap icu data file
/Users/efiring/miniconda3/envs/test_308/bin/pythonw: line 3: 95658 Trace/BPT trap: 5 /Users/efiring/miniconda3/envs/test_308/python.app/Contents/MacOS/python "$@"
It works on my M1, but I realize you're using Intel Mac...
$ spyder
The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile.
Chromium on macOS will fall back to software rendering in this case.
Hardware acceleration and features such as WebGL will not be available.
fromIccProfile: failed minimal tag size sanity
btw I noticed something odd: In my fresh, conda-forge-only env, I see conda list
gives
pyqt 5.15.4 py310h8775411_1 conda-forge
pyqt5-sip 12.9.0 pypi_0 pypi
same as in OP's env. But why would pypi
listed here? During conda install
I see this included in the list
pyqt conda-forge/osx-arm64::pyqt-5.15.4-py310h8775411_1
pyqt5-sip conda-forge/osx-arm64::pyqt5-sip-12.9.0-py310hb07a4bc_1
Thanks for answering the call for testing @leofang. Glad it works on M1. I'm still puzzle why it fails on Intel Mac. (It also worked in my tests on Windows and Linux).
BTW, the pypi label in the listing is an old bug that still eludes conda devs but it is "mostly harmless."
This is odd because we haven't received issues about this problem in our main issue tracker.
@mrclary, do you have an Intel Mac to test this?
Unfortunately, I only have the following combinations at present:
So I cannot test 12.4 on Intel. I may be able to test this in the near future, however, when my company's IT allows me to update to Monterey.
This looks like a problem with Qtwebengine compilation and packaging. https://doc.qt.io/qt-5/qtwebengine-deploying.html, in listing necessary resources, includes the line,
icudtl.dat provides support for International Components for Unicode (ICU). It is the Chromium version of ICU, which is not needed if Qt WebEngine was configured to use the system ICU.
The error messages show "Resources" not being found after a search, followed by halting on "Couldn't mmap icu data file". Maybe some other application--like the Chrome browser--puts icudtl.dat in a system or "fallback" location, and I don't have that application installed, but most people do--hence the lack of other reports of this failure.
I now have Chrome running--it doesn't make a difference. Nevertheless, the error messages point to a problem with Resource configuration and packaging.
@efiring, could you try with older qt-main and webengine builds to see if the error is not present?
~/work/teaching/data_analysis/web $ conda search qt-webengine
Loading channels: done
# Name Version Build Channel
qt-webengine 5.15.4 h055bd26_2 conda-forge
qt-webengine 5.15.4 h3a3182f_1 conda-forge
qt-webengine 5.15.4 h72ca1e5_3 conda-forge
Only 5.15.4 builds are available. Do you mean try the earliest of these?
Using
conda create -n qt_earlier qt-main=5.15.4=h938c29d_0 qt-webengine=5.15.4=h055bd26_2 spyder
to get the earliest 5.15.4 builds, I get the same error.
I think @steff456 has an Intel Mac and is running Monterey.
@steff456, could you check this if that's the case?
@ccordoba12 I'm still in Catalina
I can make environment in which Spyder works on my machine with:
conda create -n test_5.12 python=3.9 pyqt=5.12 pyqtwebengine=5.12 spyder
The only terminal message when running it is
Layer-backing can not be explicitly controlled on 10.14 when built against the 10.14 SDK
The package list is
(test_5.12) ~/work/Calil $ conda list
# packages in environment at /Users/efiring/miniconda3/envs/test_5.12:
#
# Name Version Build Channel
alabaster 0.7.12 py_0 conda-forge
applaunchservices 0.3.0 pyhd8ed1ab_2 conda-forge
appnope 0.1.3 pyhd8ed1ab_0 conda-forge
arrow 1.2.2 pyhd8ed1ab_0 conda-forge
astroid 2.11.6 py39h6e9494a_0 conda-forge
atomicwrites 1.4.0 pyh9f0ad1d_0 conda-forge
attrs 21.4.0 pyhd8ed1ab_0 conda-forge
autopep8 1.6.0 pyhd8ed1ab_1 conda-forge
babel 2.10.2 pyhd8ed1ab_0 conda-forge
backcall 0.2.0 pyh9f0ad1d_0 conda-forge
backports 1.0 py_2 conda-forge
backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge
beautifulsoup4 4.11.1 pyha770c72_0 conda-forge
binaryornot 0.4.4 py_1 conda-forge
black 22.3.0 pyhd8ed1ab_0 conda-forge
bleach 5.0.0 pyhd8ed1ab_0 conda-forge
brotlipy 0.7.0 py39h63b48b0_1004 conda-forge
bzip2 1.0.8 h0d85af4_4 conda-forge
ca-certificates 2022.5.18.1 h033912b_0 conda-forge
certifi 2022.5.18.1 py39h6e9494a_0 conda-forge
cffi 1.15.0 py39he338e87_0 conda-forge
chardet 4.0.0 py39h6e9494a_3 conda-forge
charset-normalizer 2.0.12 pyhd8ed1ab_0 conda-forge
click 8.1.3 py39h6e9494a_0 conda-forge
cloudpickle 2.1.0 pyhd8ed1ab_0 conda-forge
colorama 0.4.4 pyh9f0ad1d_0 conda-forge
cookiecutter 2.1.1 pyh6c4a22f_0 conda-forge
cryptography 37.0.2 py39h9c2a9ce_0 conda-forge
dataclasses 0.8 pyhc8e2a94_3 conda-forge
dbus 1.13.6 h811a1a6_3 conda-forge
debugpy 1.6.0 py39hfd1d529_0 conda-forge
decorator 5.1.1 pyhd8ed1ab_0 conda-forge
defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge
diff-match-patch 20200713 pyh9f0ad1d_0 conda-forge
dill 0.3.5.1 pyhd8ed1ab_0 conda-forge
docutils 0.18.1 py39h6e9494a_1 conda-forge
entrypoints 0.4 pyhd8ed1ab_0 conda-forge
expat 2.4.8 h96cf925_0 conda-forge
flake8 4.0.1 pyhd8ed1ab_2 conda-forge
gettext 0.19.8.1 hd1a6beb_1008 conda-forge
icu 69.1 he49afe7_0 conda-forge
idna 3.3 pyhd8ed1ab_0 conda-forge
imagesize 1.3.0 pyhd8ed1ab_0 conda-forge
importlib-metadata 4.11.4 py39h6e9494a_0 conda-forge
importlib_metadata 4.11.4 hd8ed1ab_0 conda-forge
importlib_resources 5.7.1 pyhd8ed1ab_1 conda-forge
inflection 0.5.1 pyh9f0ad1d_0 conda-forge
intervaltree 3.0.2 py_0 conda-forge
ipykernel 6.13.1 py39h71a6800_0 conda-forge
ipython 7.33.0 py39h6e9494a_0 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
isort 5.10.1 pyhd8ed1ab_0 conda-forge
jedi 0.18.1 py39h6e9494a_1 conda-forge
jellyfish 0.9.0 py39h63b48b0_1 conda-forge
jinja2 3.1.2 pyhd8ed1ab_1 conda-forge
jinja2-time 0.2.0 pyhd8ed1ab_3 conda-forge
jpeg 9e h5eb16cf_1 conda-forge
jsonschema 4.6.0 pyhd8ed1ab_0 conda-forge
jupyter_client 7.3.4 pyhd8ed1ab_0 conda-forge
jupyter_core 4.10.0 py39h6e9494a_0 conda-forge
jupyterlab_pygments 0.2.2 pyhd8ed1ab_0 conda-forge
keyring 23.6.0 py39h6e9494a_0 conda-forge
krb5 1.19.3 hb49756b_0 conda-forge
lazy-object-proxy 1.7.1 py39h63b48b0_1 conda-forge
libclang 13.0.1 default_he082bbe_0 conda-forge
libcxx 14.0.5 hce7ea42_1 conda-forge
libedit 3.1.20191231 h0678c8f_2 conda-forge
libffi 3.4.2 h0d85af4_5 conda-forge
libglib 2.70.2 hf1fb8c0_4 conda-forge
libiconv 1.16 haf1e3a3_0 conda-forge
libllvm13 13.0.1 h64f94b2_2 conda-forge
libpng 1.6.37 h7cec526_2 conda-forge
libpq 14.3 hf6bb32a_0 conda-forge
libsodium 1.0.18 hbcb3906_1 conda-forge
libspatialindex 1.9.3 he49afe7_4 conda-forge
libzlib 1.2.12 h6c3fc93_0 conda-forge
lz4-c 1.9.3 he49afe7_1 conda-forge
markupsafe 2.1.1 py39h63b48b0_1 conda-forge
matplotlib-inline 0.1.3 pyhd8ed1ab_0 conda-forge
mccabe 0.6.1 py_1 conda-forge
mistune 0.8.4 py39h89e85a6_1005 conda-forge
mypy_extensions 0.4.3 py39h6e9494a_5 conda-forge
mysql-common 8.0.29 h924029e_1 conda-forge
mysql-libs 8.0.29 h3cab752_1 conda-forge
nbclient 0.6.4 pyhd8ed1ab_1 conda-forge
nbconvert 6.5.0 pyhd8ed1ab_0 conda-forge
nbconvert-core 6.5.0 pyhd8ed1ab_0 conda-forge
nbconvert-pandoc 6.5.0 pyhd8ed1ab_0 conda-forge
nbformat 5.4.0 pyhd8ed1ab_0 conda-forge
ncurses 6.3 h96cf925_1 conda-forge
nest-asyncio 1.5.5 pyhd8ed1ab_0 conda-forge
nspr 4.32 hcd9eead_1 conda-forge
nss 3.78 ha8197d3_0 conda-forge
numpydoc 1.2.1 pyhd8ed1ab_0 conda-forge
openssl 1.1.1o hfe4f2af_0 conda-forge
packaging 21.3 pyhd8ed1ab_0 conda-forge
pandoc 2.18 h694c41f_0 conda-forge
pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge
parso 0.8.3 pyhd8ed1ab_0 conda-forge
pathspec 0.9.0 pyhd8ed1ab_0 conda-forge
pcre 8.45 he49afe7_0 conda-forge
pexpect 4.8.0 pyh9f0ad1d_2 conda-forge
pickleshare 0.7.5 py_1003 conda-forge
pip 22.1.2 pyhd8ed1ab_0 conda-forge
platformdirs 2.5.1 pyhd8ed1ab_0 conda-forge
pluggy 1.0.0 py39h6e9494a_3 conda-forge
prompt-toolkit 3.0.29 pyha770c72_0 conda-forge
psutil 5.9.1 py39h701faf5_0 conda-forge
ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge
pycodestyle 2.8.0 pyhd8ed1ab_0 conda-forge
pycparser 2.21 pyhd8ed1ab_0 conda-forge
pydocstyle 6.1.1 pyhd8ed1ab_0 conda-forge
pyflakes 2.4.0 pyhd8ed1ab_0 conda-forge
pygments 2.12.0 pyhd8ed1ab_0 conda-forge
pylint 2.14.1 pyhd8ed1ab_0 conda-forge
pyls-spyder 0.4.0 pyhd8ed1ab_0 conda-forge
pyobjc-core 8.5 py39hf3ca4cb_0 conda-forge
pyobjc-framework-cocoa 8.5 py39hf3ca4cb_0 conda-forge
pyobjc-framework-coreservices 8.5 py39h701faf5_1 conda-forge
pyobjc-framework-fsevents 8.5 py39h6e9494a_1 conda-forge
pyopenssl 22.0.0 pyhd8ed1ab_0 conda-forge
pyparsing 3.0.9 pyhd8ed1ab_0 conda-forge
pyqt 5.12.3 py39h6e9494a_8 conda-forge
pyqt-impl 5.12.3 py39he44290a_8 conda-forge
pyqt5-sip 4.19.18 py39h15fb055_8 conda-forge
pyqtchart 5.12 py39he44290a_8 conda-forge
pyqtwebengine 5.12.1 py39he44290a_8 conda-forge
pyrsistent 0.18.1 py39h63b48b0_1 conda-forge
pysocks 1.7.1 py39h6e9494a_5 conda-forge
python 3.9.13 h57e37ff_0_cpython conda-forge
python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
python-fastjsonschema 2.15.3 pyhd8ed1ab_0 conda-forge
python-lsp-black 1.2.1 pyhd8ed1ab_0 conda-forge
python-lsp-jsonrpc 1.0.0 pyhd8ed1ab_0 conda-forge
python-lsp-server 1.4.1 pyhd8ed1ab_1 conda-forge
python-slugify 6.1.2 pyhd8ed1ab_0 conda-forge
python.app 1.4 py39h89e85a6_0 conda-forge
python_abi 3.9 2_cp39 conda-forge
pytz 2022.1 pyhd8ed1ab_0 conda-forge
pyyaml 6.0 py39h63b48b0_4 conda-forge
pyzmq 23.1.0 py39hd639792_0 conda-forge
qdarkstyle 3.0.3 pyhd8ed1ab_0 conda-forge
qstylizer 0.2.1 pyhd8ed1ab_0 conda-forge
qt 5.12.9 h2a607e2_5 conda-forge
qtawesome 1.1.1 pyhd8ed1ab_0 conda-forge
qtconsole 5.3.1 pyhd8ed1ab_0 conda-forge
qtconsole-base 5.3.1 pyha770c72_0 conda-forge
qtpy 2.1.0 pyhd8ed1ab_0 conda-forge
readline 8.1.2 h3899abd_0 conda-forge
requests 2.28.0 pyhd8ed1ab_0 conda-forge
rope 1.1.1 pyhd8ed1ab_0 conda-forge
rtree 1.0.0 py39h7d0d40a_1 conda-forge
setuptools 62.3.4 py39h6e9494a_0 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
snowballstemmer 2.2.0 pyhd8ed1ab_0 conda-forge
sortedcontainers 2.4.0 pyhd8ed1ab_0 conda-forge
soupsieve 2.3.1 pyhd8ed1ab_0 conda-forge
sphinx 5.0.1 pyh6c4a22f_0 conda-forge
sphinxcontrib-applehelp 1.0.2 py_0 conda-forge
sphinxcontrib-devhelp 1.0.2 py_0 conda-forge
sphinxcontrib-htmlhelp 2.0.0 pyhd8ed1ab_0 conda-forge
sphinxcontrib-jsmath 1.0.1 py_0 conda-forge
sphinxcontrib-qthelp 1.0.3 py_0 conda-forge
sphinxcontrib-serializinghtml 1.1.5 pyhd8ed1ab_2 conda-forge
spyder 5.3.1 py39h6e9494a_0 conda-forge
spyder-kernels 2.3.1 py39h6e9494a_0 conda-forge
sqlite 3.38.5 hd9f0692_0 conda-forge
text-unidecode 1.3 py_0 conda-forge
textdistance 4.2.2 pyhd8ed1ab_0 conda-forge
three-merge 0.1.1 pyh9f0ad1d_0 conda-forge
tinycss2 1.1.1 pyhd8ed1ab_0 conda-forge
tk 8.6.12 h5dbffcc_0 conda-forge
toml 0.10.2 pyhd8ed1ab_0 conda-forge
tomli 2.0.1 pyhd8ed1ab_0 conda-forge
tomlkit 0.11.0 pyha770c72_0 conda-forge
tornado 6.1 py39h63b48b0_3 conda-forge
traitlets 5.2.2.post1 pyhd8ed1ab_0 conda-forge
typed-ast 1.5.4 py39h701faf5_0 conda-forge
typing 3.10.0.0 pyhd8ed1ab_0 conda-forge
typing-extensions 4.2.0 hd8ed1ab_1 conda-forge
typing_extensions 4.2.0 pyha770c72_1 conda-forge
tzdata 2022a h191b570_0 conda-forge
ujson 5.3.0 py39hd408605_0 conda-forge
unidecode 1.3.4 pyhd8ed1ab_0 conda-forge
urllib3 1.26.9 pyhd8ed1ab_0 conda-forge
watchdog 2.1.9 py39h0056ad7_0 conda-forge
wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge
webencodings 0.5.1 py_1 conda-forge
wheel 0.37.1 pyhd8ed1ab_0 conda-forge
wrapt 1.14.1 py39h701faf5_0 conda-forge
wurlitzer 3.0.2 pyhd8ed1ab_2 conda-forge
xz 5.2.5 haf1e3a3_1 conda-forge
yaml 0.2.5 h0d85af4_2 conda-forge
yapf 0.32.0 pyhd8ed1ab_0 conda-forge
zeromq 4.3.4 he49afe7_1 conda-forge
zipp 3.8.0 pyhd8ed1ab_0 conda-forge
zlib 1.2.12 h6c3fc93_0 conda-forge
zstd 1.5.2 ha9df2e0_1 conda-forge
On 12.3.1 I get:
$ conda create -n test -c conda-forge python=3.10 spyder
...
$ conda activate test
$ conda list | grep qt
pyqt 5.15.4 py310h57cebac_1 conda-forge
pyqt5-sip 12.9.0 pypi_0 pypi
pyqtwebengine 5.15.4 py310h57cebac_1 conda-forge
qt-main 5.15.4 h938c29d_2 conda-forge
qt-webengine 5.15.4 h72ca1e5_3 conda-forge
qtawesome 1.1.1 pyhd8ed1ab_0 conda-forge
qtconsole 5.3.1 pyhd8ed1ab_0 conda-forge
qtconsole-base 5.3.1 pyha770c72_0 conda-forge
qtpy 2.1.0 pyhd8ed1ab_0 conda-forge
sphinxcontrib-qthelp 1.0.3 py_0 conda-forge
$ spyder
The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile.
Chromium on macOS will fall back to software rendering in this case.
Hardware acceleration and features such as WebGL will not be available.
fromIccProfile: failed minimal tag size sanity
PYLINTHOME is now '/Users/larsoner/Library/Caches/pylint' but obsolescent '/Users/larsoner/.pylint.d' is found; you can safely remove the latter
And Spyder works fine. I'll install the update to 12.4 now and restart...
I get the same message after launching spyder on OSX Mojave 10.14.6 MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports) 2.3 GHz Intel Core i5
I tried using spyder in both conda environments suggested above: conda create -n test_5.12 python=3.9 pyqt=5.12 pyqtwebengine=5.12 spyder conda create -n test -c conda-forge python=3.10 spyder
Upon launching spyder, both environments produce a segmentation fault: /opt/miniconda3/envs/test/bin/pythonw: line 3: 2328 Segmentation fault: 11 /opt/miniconda3/envs/test/python.app/Contents/MacOS/python "$@"
I have also tried creating many other environments with different versions of Python, to no avail. So far, I can only run it from a bare base environment, with the message: The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile. Chromium on macOS will fall back to software rendering in this case. Hardware acceleration and features such as WebGL will not be available. fromIccProfile: failed minimal tag size sanity
Note that I have the Brave browser installed, which is built on Chrome. It doesn't matter whether Brave is open or not, spyder crashes in any non-base environment.
@ccordoba12, can we close this issue as stale?
Upon launching spyder, both environments produce a segmentation fault: /opt/miniconda3/envs/test/bin/pythonw: line 3: 2328 Segmentation fault: 11 /opt/miniconda3/envs/test/python.app/Contents/MacOS/python "$@"
This is still a problem that affects some users to this day and I don't know how to solve it. It seems the trick that did it before (see https://github.com/conda-forge/spyder-feedstock/issues/134#issuecomment-1151692359), fails to fix it now.
Solution to issue cannot be found in the documentation.
Issue
Building Spyder in a minimal environment on a Macbook Pro (Intel), Macosx 12.4, it fails to run:
This is prompted by problems with Qt in more complex contexts; I am using Spyder as a self-contained way to test the PyQt and Qt stack for basic functionality. The problem here is not encountered universally; another Matplotlib developer performed the same test, with no failure. I don't know what environment he was testing.
Installed packages
Environment info