-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel error win32api #4980
Comments
Rumors abound there's an installation glitch in the 225 build of |
Don't know how you installed Try downloading a precompiled wheel from here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32 And install |
Had the same issue and |
Can confirm @ValentinVerschinin solution worked. Thanks for trouble shooting this several hours before me! |
Thanks @ValentinVerschinin it worked!. |
According to pywin32 github you must run
and after that, you must run
After hours this worked for me! |
İt worked too |
It also worked for me. Cheers bro! |
Too many successes - time to close! 😄 |
The easiest thing for me was to pip uninstall it and then conda install it. |
Re.: python [environment path]/Scripts/pywin32_postinstall.py -install How do I find out what I have to type where it states [environment path]? |
Yes, you need to run it in command prompt and after activating the environment where you did install pywin32. If you are using miniconda and you installed it in base environment it will be:
if you used another environment first activate it and then try to locate the script in:
If you are using |
When I go to |
|
Why is this bug closed? According to this: I just got this problem after installing jupyter into a brand now Miniconda installagion, creating a Python 3.9 environment for my packages (On Windows 10) I think it is unacceptable for Windows users to run into the problem of the kernel not working in Jupyter, googling the problem, finding a closed issue, figuring out some installation/environment path on their computer, and then needing to type in a cryptic command in order to make things work for them. This should get fixed properly. |
Thanks @johann-petrak - your point is valid. Rather than re-open this issue, I would suggest a new issue be opened in jupyter_core which is responsible for the Please reference your previous comment as to what the issue is. I suspect this will require some conda expertise if I'm understanding the recommendation. Also, note that Terminal functionality is currently not working in Windows with Python 3.9+ (#5967). |
This issue is still valid for the latest version of Anaconda. |
Just want to confirm that this solution did work for my conda environment. For those unable to find Scripts folder or have no PYTHONPATHThis will likely require an elevated (administrator) prompt
|
Faced the same issue and fixed it now. Please follow these steps:
I think the issue is, |
Interesting possible workaround but not a fix. |
I just did pip install pywin32 Then did jupyter notebook again, and it worked |
It works for me. |
No it does not work even after installing the pywin32 when you install conda and then download vscode the kernal dir have been changed in vscode jupyter from anaconda jupyter that why it shows win32api error you just have to change kernal dir back to conda jupyter notebook |
FWIW, jupyter/jupyter_core#230 replaces pywin32 with ctypes. No more win32api import errors and works on Python 3.10 and PyPy... |
Working Awesome |
How can this still be an issue in 2022...? Can't believe annoying bugs like these aren't fixed. Luckily after banging my head on the wall for a good while by trying all the tens of different proposed solutions, I did the same as @ValentinVerschinin and it worked. Just annoying that so many people have to deal with this issue even though it has been known for so long. |
Because the installation of pywin32 using wheels is fundamentally broken and requires manual pre- and/or post-install steps.
The original issue was fixed in jupyter_core 4.8. Please provide the package versions and a full traceback. There might be packages other than jupyter_core that depend on pywin32 and fail to import if the pywin32 installation is incomplete or corrupted. |
After launching any notebook, I get the following error.
The text was updated successfully, but these errors were encountered: