You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!pip-qinstallcolab_ssh--upgradefromcolab_sshimportlaunch_ssh_cloudflared, init_git_cloudflaredlaunch_ssh_cloudflared(password="never gonna give you up")
In any Kaggle notebook @ CPU runtime.
What did you expect?
Everything to run smoothly, obtaining the VScode ID to remote SSH in the instance
Version
latest
Which version (if not the latest)?
Latest
Relevant log output
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_35/3867328730.py in<module>
7 #!pip install -q autokeras
8
----> 9 from colab_ssh import launch_ssh_cloudflared, init_git_cloudflared
10 launch_ssh_cloudflared(password="a")
11
/opt/conda/lib/python3.7/site-packages/colab_ssh/__init__.py in<module>
6 from colab_ssh.set_private_key import set_private_key
7 from colab_ssh.get_tunnel_config import get_tunnel_config
----> 8 from colab_ssh.launch_ssh_cloudflared import launch_ssh_cloudflared
9
10 __all__ = [
/opt/conda/lib/python3.7/site-packages/colab_ssh/launch_ssh_cloudflared.py in<module>
----> 1 from colab_ssh.utils.packages.installer import create_deb_installer
2 from colab_ssh.utils.ui.render_html import render_template
3 from subprocess import Popen, PIPE
4 import shlex
5 from colab_ssh._command import run_command, run_with_pipe
/opt/conda/lib/python3.7/site-packages/colab_ssh/utils/packages/installer.py in<module>
----> 1 import apt
2 import os
3
4
5
ModuleNotFoundError: No module named 'apt'
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Hey there @neel04, Thank you for submitting this issue on Github. Welcome to the Colab-SSH community!
Unfortunately for the time being, we don't support Kaggle. Nevertheless, we are planning on supporting Kaggle and many other Notebooks early next year 2022.
Although the official support is not ready yet, for anyone struggling with this, try to look into the errors faced within Kaggle and share them with us in this issue discussion. I will try to help as much as I can case by case.
Colab-SSH works on a specific environment that has linux packages and python dependencies. If we can install these packages before calling launch_ssh_cloudflared(), everything can work like a charm. This brings me to the error
No module named 'apt'
Try to install the module python-apt by running the following CLI command:
!sudo apt-get install python3-apt --reinstall
# Or if sudo isn't available, try this!apt-get install python3-apt --reinstall
I hope this helps 😊. Let me know if you resolved the issue or you have other issues.
Have a great day!
Jupyter notebook
Kaggle
What happened?
Code to reproduce:-
In any Kaggle notebook @
CPU
runtime.What did you expect?
Everything to run smoothly, obtaining the VScode ID to remote SSH in the instance
Version
Which version (if not the latest)?
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: