Dev-Environments / VScode

26 stars 3 forks source link

Permission Denied using Jupiter Notebook #65

Open MattTheCuber opened 2 weeks ago

MattTheCuber commented 2 weeks ago

Is there an existing issue for this?

OS/Platform Information

Steps to Reproduce

  1. Install app
  2. Run setupPython3Environment
  3. Install "Jupyter" extension pack
  4. Open a new Jupyter notebook
  5. Select the recommended kernel
  6. Run a cell
  7. Wait for the Jupyter pip packages to auto-install

Expected

It should run the cell without an error.

Actual

It throws a permission denied error:

Failed to start the Kernel. 
/root/.local/lib/python3.10/site-packages/jupyter_client/localinterfaces.py:56: UserWarning: Unexpected error discovering local network interfaces: [Errno 13] Permission denied
  ret = f(**kwargs)
Permission denied (src/ip_resolver.cpp:542). 
View Jupyter <a href='command:jupyter.viewOutput'>log</a> for further details.

Alert Dialog

None

Screenshot/Video

Screenshot_20241006-222149

Does this issue happen in Previous Version or You a new user?

Notes

No response

gbraad commented 1 week ago

reading from procfs is not allowed. applications from the play store are more restricted and can not completely work as on an actual Linux system. same happened here #63 for me. modifications to the extension (or in this case the python module) would be needed. the author has been unresponsive; I believe he needs to add a faq or more info around this in the Readme.md

gbraad commented 1 week ago

you could try to run a jupyter server with Termux from fdroid and connect to this. both termux and vscode can see each other on the same device.