Skip to content
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

[Bug]: Running on Kaggle Notebooks #113

Open
2 tasks done
neel04 opened this issue Dec 8, 2021 · 2 comments
Open
2 tasks done

[Bug]: Running on Kaggle Notebooks #113

neel04 opened this issue Dec 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@neel04
Copy link

neel04 commented Dec 8, 2021

Jupyter notebook

Kaggle

What happened?

Code to reproduce:-

!pip -q install colab_ssh --upgrade

from colab_ssh import launch_ssh_cloudflared, init_git_cloudflared
launch_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
@neel04 neel04 added the bug Something isn't working label Dec 8, 2021
@WassimBenzarti
Copy link
Owner

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!

@KorewaLidesu
Copy link

KorewaLidesu commented Aug 16, 2022

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 have try this command, the result is the same sadly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants