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]: No module named "apt_pkg" [Paperspace] #124

Open
2 tasks done
saishashank85 opened this issue Jul 17, 2023 · 1 comment
Open
2 tasks done

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

saishashank85 opened this issue Jul 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@saishashank85
Copy link

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

  • latest

Which version (if not the latest)?

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@saishashank85 saishashank85 added the bug Something isn't working label Jul 17, 2023
@20001LastOrder
Copy link

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

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

2 participants