Skip to content

Can't use Python extension #2675

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

Closed
konradzadroga opened this issue Feb 5, 2021 · 10 comments
Closed

Can't use Python extension #2675

konradzadroga opened this issue Feb 5, 2021 · 10 comments
Labels
waiting-for-info Waiting for more information from submitter

Comments

@konradzadroga
Copy link

Dear Team,

I am experiencing issue with code-server (latest version, 3.8.0, inside Docker container).
After installing 'Python' extension I can't use it because of some dependencies.
Errors in the console:

"Activating extension 'ms-toolsai.jupyter' failed: Cannot find module '/home/coder/.local/share/code-server/extensions/ms-toolsai.jupyter-2020.12.1/out/client/extension'
Require stack:
- /usr/lib/code-server/lib/vscode/out/vs/loader.js
- /usr/lib/code-server/lib/vscode/out/bootstrap-amd.js
- /usr/lib/code-server/lib/vscode/out/bootstrap-fork.js."
"Cannot activate extension 'Python' because it depends on extension 'ms-toolsai.jupyter', which failed to activate."

I would be thankful if you will provide me with some workaround.

Thank you :)

  • Web Browser: Google Chrome
  • Local OS: Windows 10
  • Remote OS: Ubuntu 18.04
  • Remote Architecture: ALB + EC2 + Openresty + code-server inside Docker container
  • code-server --version: 3.8.0
@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 5, 2021

Hi @konradzadroga - sorry to hear you'rve having issues with the Python extension!

Do you mind seeing if this issue has already been opened? Possible duplicates:

@jsjoeio jsjoeio added the waiting-for-info Waiting for more information from submitter label Feb 5, 2021
@stefanba3
Copy link

stefanba3 commented Feb 9, 2021

Can confirm, exact same error on the front end. I am on an EC2 Amazon Linux 2 VM.
There is no /home/coder/.local/share/code-server/extensions/ms-toolsai.jupyter-2020.12.1/client directory at all.
I am using an SSH tunnel to access code-server.
I have also tried with an HTTPS server.

I see this on the client output when I click on the Python extension in the extensions tab:
Blocked script execution in 'https://dev.spurious.ninja/webview/fake.html?id=extensionEditor' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 9, 2021

Thanks for the additional information!

Can confirm, exact same error on the front end

So this issue is a duplicate then? If so, we're going to close this issue. That will make it easier for us to track and fix this.

Looks like you may want to look at this workaround

@stefanba3
Copy link

This might be #2341, I'll look into it a bit and report back.

@stefanba3
Copy link

This might be #2341, I'll look into it a bit and report back.

Installing 2020.10.332292344 from the Manage menu on the extension fixed this for me. Thanks! Similar workaround to #2341, but can just do it straight from the UI.

@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 10, 2021

Hooray! Sorry you had to use a workaround. We're close to switching over to a new extension marketplace which I hope helps with issues like these. Closing for now. Feel free to subscribe to the other issue so you get notified when a formal fix happens!

@ediphy-dcottrell
Copy link

This might be #2341, I'll look into it a bit and report back.

Installing 2020.10.332292344 from the Manage menu on the extension fixed this for me. Thanks! Similar workaround to #2341, but can just do it straight from the UI.

Can you confirm what that is? Version of what? Extension? code-server?

@stefanba3
Copy link

This might be #2341, I'll look into it a bit and report back.

Installing 2020.10.332292344 from the Manage menu on the extension fixed this for me. Thanks! Similar workaround to #2341, but can just do it straight from the UI.

Can you confirm what that is? Version of what? Extension? code-server?

The extension. I also had to turn off automatic updates for it.

@keurfonluu
Copy link

This might be #2341, I'll look into it a bit and report back.

Installing 2020.10.332292344 from the Manage menu on the extension fixed this for me. Thanks! Similar workaround to #2341, but can just do it straight from the UI.

I had the same issue this morning (everything worked fine until an update). I tried all recent versions of Python's extension and only this one worked. Is there an actual fix for this issue (rather than using an 8-month old version and disabling further updates)?

@jsjoeio
Copy link
Contributor

jsjoeio commented May 11, 2021

I just installed the latest version v2021.5.829140558 with code-server 3.10.0 and it appears to be working.

@keurfonluu
If you think you've found a bug, please open a separate bug report and we'll be happy to look into it.

Screen.Recording.2021-05-11.at.11.43.53.AM.mov

@coder coder locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
waiting-for-info Waiting for more information from submitter
Projects
None yet
Development

No branches or pull requests

5 participants