Open saishashank85 opened 1 year ago
Not sure if it is too late. I think this is related to Paperspace but colab_ssh. You can try the following to link the apt_pkg
cd /usr/lib/python3/dist-packages
sudo ln -s apt_pkg.cpython-38-x86_64-linux-gnu.so apt_pkg.so
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
Which version (if not the latest)?
No response
Relevant log output
No response
Code of Conduct