Open DigitalRadiohead opened 11 months ago
Hi @DigitalRadiohead thank you for the feedback! Checking a little bit seems like a similar traceback was reported at #21137. Could it be possible for you to check if the suggestion at https://github.com/spyder-ide/spyder/issues/21137#issuecomment-1638527365 (or in general updating the Python version to the latest available) helps?
Let us know!
I'm afraid not, I still get the following error
fromIccProfile: failed minimal tag size sanity C:\Users\hammo\miniconda3\Lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100) Traceback (most recent call last): File "C:\Users\hammo\miniconda3\Lib\asyncio\windows_events.py", line 444, in select self._poll(timeout) RuntimeError: <_overlapped.Overlapped object at 0x00000221A77DF030> still has pending operation at deallocation, the process may crash Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100) Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100)
I am facing the same issue too with the following error
fromIccProfile: failed minimal tag size sanity C:\Users\James\anaconda3\lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, Traceback (most recent call last): File "C:\Users\James\anaconda3\lib\asyncio\windows_events.py", line 439, in select self._poll(timeout) RuntimeError: <_overlapped.Overlapped object at 0x0000023BB4D14030> still has pending operation at deallocation, the process may crash Traceback (most recent call last): File "C:\Users\James\anaconda3\lib\asyncio\windows_events.py", line 439, in select self._poll(timeout) RuntimeError: <_overlapped.Overlapped object at 0x0000023BB57594B0> still has pending operation at deallocation, the process may crash
Hi @DigitalRadiohead thank you for the feedback! Checking a little bit seems like a similar traceback was reported at #21137. Could it be possible for you to check if the suggestion at #21137 (comment) (or in general updating the Python version to the latest available) helps?
Let us know!
got this error after installing python 3.11.4
fromIccProfile: failed minimal tag size sanity C:\Users\James\anaconda3\Lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100) Traceback (most recent call last): File "C:\Users\James\anaconda3\Lib\asyncio\windows_events.py", line 444, in select self._poll(timeout) RuntimeError: <_overlapped.Overlapped object at 0x000001F4C9D7C7B0> still has pending operation at deallocation, the process may crash Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100) Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100) Traceback (most recent call last): File "C:\Users\James\anaconda3\Lib\asyncio\windows_events.py", line 444, in select self._poll(timeout) RuntimeError: <_overlapped.Overlapped object at 0x000001F4C9D7CDB0> still has pending operation at deallocation, the process may crash Traceback (most recent call last): File "C:\Users\James\anaconda3\Lib\asyncio\windows_events.py", line 444, in select self._poll(timeout) RuntimeError: <_overlapped.Overlapped object at 0x000001F4C9D7C7B0> still has pending operation at deallocation, the process may crash Traceback (most recent call last): File "C:\Users\James\anaconda3\Lib\asyncio\windows_events.py", line 444, in select self._poll(timeout) RuntimeError: <_overlapped.Overlapped object at 0x000001F4C9D7D5F0> still has pending operation at deallocation, the process may crash Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100)
Thank you for the new info @DigitalRadiohead and @ahjamesxi ! I'm not sure what exactly can be happening but seems like a similar traceback have been reported sometime ago at https://github.com/spyder-ide/spyder/issues/19975#issuecomment-1621900889 :thinking: Just to check, could it be possible for you to create a new conda environment using conda-forge channel packages? To create such a environment you could run from an Anaconda Prompt something like:
conda create -n spyder-cf-311 -c conda-forge python=3.11 spyder
Then you can either activate the new env and launch Spyder from the Anaconda Prompt with something like:
conda activate spyder-cf-311
spyder
Or from the Start menu use the related Spyder shortcut searching something like Spyder (spyder-cf-311)
:
Let us know if running Spyder from a new env helps!
Thanks!
I've made progress - it doesn't immediately shut down, but I do get an pop up error message that keeps on coming back - every time I close it, it pops up again, and doesn't allow me to code.
By the way, before I did this, when I opened spyder from Anaconda explore 2.5.1, i got the following message
C:\Users\hammo\anaconda3\Lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100) Traceback (most recent call last): File "C:\Users\hammo\anaconda3\Lib\asyncio\windows_events.py", line 444, in select self._poll(timeout) RuntimeError: still has pending operation at deallocation, the process may crash Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100) Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100)
Same issue with me too. Seems like spyder is unable to connect to the kernel.
Error message as below:
fromIccProfile: failed minimal tag size sanity Traceback (most recent call last): File "C:\Users\James\anaconda3\envs\spyder-cf-311\Lib\asyncio\windows_events.py", line 444, in select self._poll(timeout) RuntimeError: <_overlapped.Overlapped object at 0x0000016E8CBDED30> still has pending operation at deallocation, the process may crash Traceback (most recent call last): File "C:\Users\James\anaconda3\envs\spyder-cf-311\Lib\asyncio\windows_events.py", line 444, in select self._poll(timeout) RuntimeError: <_overlapped.Overlapped object at 0x0000016E8CBDF7B0> still has pending operation at deallocation, the process may crash
Thanks for checking the creation of a new env @DigitalRadiohead and @ahjamesxi ! Checking around I found this SO post: https://stackoverflow.com/a/71355961/15954282
Checking the suggestion there I think Spyder executes those lines in case tornado
<=6.0 is detected but maybe this is also needed in other cases 🤔 ?
Could you share the conda list output of the base
and spyder-cf-311
envs here please ? I checked creating the env locally and I'm not being able to reproduce the issue there:
Thanks for checking the creation of a new env @DigitalRadiohead and @ahjamesxi ! Checking around I found this SO post: https://stackoverflow.com/a/71355961/15954282
Checking the suggestion there I think Spyder executes those lines in case
tornado
<=6.0 is detected but maybe this is also needed in other cases 🤔 ?Could you share the conda list output of the
base
andspyder-cf-311
envs here please ? I checked creating the env locally and I'm not being able to reproduce the issue there:
- conda env details:
List in base-
Thanks, and sorry for my delay in replying - the weekend was a bit busy getting ready for christmas.
Packages in the base
Packages in the new environment
Hey, I just ran into the same issue (in my case I don't get any error message, just a "python stopped working" popup)
While trying to find out what's going on, I did a lot of checks... maybe some of my findings help:
My first try was the following:
spyder
on top with mamba create -n spyder spyder
❌ spyder crashes immediately on startup (I also tried v5.5.0, v5.4.5 and v5.3.3 but no change)
Then I did a sanity-check and ran
mamba create -n spyder spyder
Then I tried the other way around...
spyder
installmamba env update -n spyder -f env.yml
to put the env on topAs a final check, I tried the "manual" way:
mamba create -n spyder spyder python=3.10
env.yml
Now I was starting to get confused but things are at least working so I thought I'll give it one last try
mamba env create -f env.yml
comand to setup an env with a lot of packagesspyder
on top with mamba create -n spyder spyder
Not sure how, but maybe it helps in some way to find what's going on. Maybe some cache is not properly cleared and causes this?
Thank you for the envs info @DigitalRadiohead and @ahjamesxi and thank you for doing some testing over this too @raphaelquast ! Definetly I think this is some sort of packages versions combination which triggers the crash 🤔
What do you think @ccordoba12 ?
I tried to import the env from my university which is using spyder 5.2.2 and received the error below on my anaconda
LibMambaUnsatisfiableError: Encountered problems while solving:
I don't undestand what's happening, but my guess (as @dalthviz one) is that two or more packages are causing problems and not allowing Spyder work properly. But it's difficult to tell which ones.
@dalthviz, are you to reproduce this problem when creating a Python 3.11 env on Windows from defaults and conda-forge?
@dalthviz, are you to reproduce this problem when creating a Python 3.11 env on Windows from defaults and conda-forge?
As mentioned at https://github.com/spyder-ide/spyder/issues/21610#issuecomment-1858512965 I tried creating an env with conda-forge packages and I was unable to reproduce this 🤔 Checked with defaults and I was able to launch Spyder without issue. Checked running the following:
conda create -n spyder-df-311 python=3.11 spyder
However, I got a stange message before the install could proceed (although maybe is due to some change I did in the pass to my base env Spyder install while testing something 🤔):
SafetyError: The package for spyder located at C:\Users\dalth\anaconda3\pkgs\spyder-5.4.3-py311haa95532_1
appears to be corrupted. The path 'Lib/site-packages/spyder/plugins/ipythonconsole/utils/kernelspec.py'
has an incorrect size.
reported size: 7808 bytes
actual size: 7848 bytes
ClobberError: This transaction has incompatible packages due to a shared path.
packages: defaults/win-64::spyder-5.4.3-py311haa95532_1, defaults/win-64::spyder-5.4.3-py311haa95532_1
path: 'menu/spyder_shortcut.json'
Just in case, the conda list
output of the created env:
@dalthviz I hope you had a good Christmas and happy new year. Is there some bug here with spyder, or is there something happening locally on my computer (and those of a few others)?
@dalthviz I hope you had a good Christmas and happy new year. Is there some bug here with spyder, or is there something happening locally on my computer (and those of a few others)?
@DigitalRadiohead belated Happy Holidays! From my testing seems like it could be caused due to some package inconsistency/version incompatibility so I would say that the issue seems like is not related with Spyder but maybe the constraints of a dependency or even a dependency of a dependency which at the end causes problems :/
Maybe clearing the conda package cache and trying to create again a new conda env could help : https://docs.conda.io/projects/conda/en/latest/commands/clean.html#conda-clean However, this option could leave other environments unusable if I'm understanding the docs correctly 🤔
Some new developments: My Spyder was working fine 5 hours ago. Then after I restarted my computer tonight it started having the problem of popping windows.
Having the same issue myself... Not even launching on my prior working env. Running spyder --safe-mode To install i ran:
conda clean --all
conda create -c conda-forge -n spyder-env spyder numpy scipy pandas matplotlib sympy cython
conda activate spyder-env
spyder
htop shows the process starting, but it seems to hang with ~0.4% cpu consumption, 1-2% ram consumption, and zero disk I/O after the following messages:
^C(spyder-env) [ghostdog@ghostdog envs]spyder
fromIccProfile: failed minimal tag size sanity
/home/ghostdog/.local/lib/python3.11/site-packages/requests/__init__.py:102: RequestsDependencyWarning: urllib3 (2.2.1) or chardet (4.0.0)/charset_normalizer (2.0.12) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "
This plugin does not support propagateSizeHints()
This plugin does not support propagateSizeHints()
This plugin does not support propagateSizeHints()
This plugin does not support propagateSizeHints()
This plugin does not support raise()
After which, i need to CTRL+C to get back into my terminal.
conda list
for spyder-env: envlist.txt
conda --env
: conda 24.1.2
And for good measure, the sha256sum of my spyder executable is fc42f139556a013faeca5b3977373cb5e9f99c38f84a003bd72c207712bc54f5
Running spyder with the verbose flag gives me the following log file: spyderlog.log
Okay interesting development... After rebooting twice and updating twice, it has fixed itself. Same env as in my prior post, but now it just launches. It still brings up:
fromIccProfile: failed minimal tag size sanity
/home/ghostdog/.local/lib/python3.11/site-packages/requests/__init__.py:102: RequestsDependencyWarning: urllib3 (2.2.1) or chardet (4.0.0)/charset_normalizer (2.0.12) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "
New log file attached: spyderlog.log Recent pacman logs: pacmanlog.log
Let me know if theres any additional information i can provide to help.
@GhostDog98, you need to remove this directory:
/home/ghostdog/.local/lib/python3.11
to avoid mixing Pip and conda packages, given that you're using a conda env to run Spyder.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
Spyder seems to crash if I open it via the start menu. It goes through the initial checks - "initializing, setting up main window, etc".
What steps reproduce the problem?
What is the expected output? What do you see instead?
I expect Spyder to open!
Paste Traceback/Error Below (if applicable)
Versions
Dependencies