colab-ssh icon indicating copy to clipboard operation
colab-ssh copied to clipboard

[Bug]: No module named "apt_pkg" [Paperspace]

Open saishashank85 opened this issue 11 months ago • 1 comments

Jupyter notebook

Paperspace Gradient

What happened?


ModuleNotFoundError Traceback (most recent call last) Cell In [1], line 1 ----> 1 from colab_ssh import launch_direct_ssh 2 launch_direct_ssh(password="qwerty")

File /usr/local/lib/python3.9/dist-packages/colab_ssh/init.py:8 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 10 all = [ 11 "launch_ssh", 12 "init_git", (...) 19 "launch_ssh_cloudflared", 20 ]

File /usr/local/lib/python3.9/dist-packages/colab_ssh/launch_ssh_cloudflared.py:1 ----> 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

File /usr/local/lib/python3.9/dist-packages/colab_ssh/utils/packages/installer.py:1 ----> 1 import apt 2 import os 6 def create_deb_installer():

File /usr/lib/python3/dist-packages/apt/init.py:23 20 """High-Level Interface for working with apt.""" 21 from future import print_function ---> 23 import apt_pkg 25 # import some fancy classes 26 from apt.package import Package as Package, Version as Version

ModuleNotFoundError: No module named 'apt_pkg'

What did you expect?

A bug happened!

Version

  • [X] latest

Which version (if not the latest)?

No response

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

saishashank85 avatar Jul 17 '23 22:07 saishashank85