-
Notifications
You must be signed in to change notification settings - Fork 290
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
IPython install failed for new conda environment #11781
Comments
While trying to repro this again, I can no longer get a cell to run at all in a conda environment, mostly failing with
|
looks like the conda env isn't detected as a conda environment |
fresh workspace, new conda environment, repro'd with 3.7 and 3.10 |
maybe there's a hidden dependency on having |
Please could you install the stable version of Jupyter and test this out again & verify this works there. I can get this working in pre-release of Jupyter extension, thouh I'm not using @IanMatthewHuff @amunger |
It looks like it behaves the same with stable jupyter and with externally created environments. There is some flakiness involved - I saw an install work once on the first try, sometimes it works after failing once, sometimes it never works. |
Upstream bug filed here microsoft/vscode-python#20070 @amunger try the following:
This should work, if not, please upload the logs for both extensions |
Yeah, I have issues with an externally created conda env in Stable as well, so not a Python API regression. However it is a regression from some X amount of time, as this used to work. Just not sure when it broke. |
I'm looking into this now.
Thanks |
so today, all scenarios I tested with pre-release and stable will give an error in the cell output as if the IPython package installation failed, but running the cell again will succeed. It's very possible that I didn't attempt to rerun a cell when trying this yesterday. These were all done with clean conda environments that were created externally from vscode. jupyterLogs_bothprelease.txt |
Just confirmed that a conda env created with |
Yes, this is due to an upstream bug in Python extesnion, see here #11781 (comment) |
Both bugs leading to this bug were fixed in upstream, closing this issue for verifcation. |
Verified as working (upstream Python extension issue has been resolved) |
Testing #11755
I created a new conda environment with the
Python: Create Environment
commandWhen ran a cell in the IW, I was prompted to install IPython and clicked install
The cell fails, but the install seemed to actually work, subsequent cell executions are successful
The cell failed to execute with the error
Running cells with 'c:\src\test\5.conda\python.exe' requires ipykernel package.
Run the following command to install 'ipykernel' into the Python environment.
Command: 'conda install -p c:\src\test\5.conda\python.exe ipykernel --update-deps --force-reinstall'
Error popup:
Error processing line 7 of C:\Users\aamunger\AppData\Roaming\Python\Python310\site-packages\pywin32.pth: Traceback (most recent call last): File "c:\src\test\5.conda\lib\site.py", line 186, in addpackage exec(line) File "", line 1, in ModuleNotFoundError: No module named 'pywin32_bootstrap' Remainder of file ignored c:\src\test\5.conda\python.exe: No module named ipykernel_launcher. View Jupyter log for further details.
The text was updated successfully, but these errors were encountered: