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

ImportError libpython3.3 #94

Closed
denis-migdal opened this issue Aug 31, 2018 · 3 comments
Closed

ImportError libpython3.3 #94

denis-migdal opened this issue Aug 31, 2018 · 3 comments

Comments

@denis-migdal
Copy link

denis-migdal commented Aug 31, 2018

Hi,

I recently installed Nodejs from the package control on Sublime-text 3.1.1 Build 3176.

Items in the menus Tools/Nodejs/[Run|Debug/NPM] where disabled.
In Sublime Text's console I got the following error:

Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 116, in reload_plugin
m = importlib.import_module(modulename)
File "./python3.3/importlib/init.py", line 90, in import_module
File "", line 1584, in _gcd_import
File "", line 1565, in _find_and_load
File "", line 1532, in _find_and_load_unlocked
File "", line 584, in _check_name_wrapper
File "", line 1022, in load_module
File "", line 1003, in load_module
File "", line 560, in module_for_loader_wrapper
File "", line 868, in _load_module
File "", line 313, in _call_with_frames_removed
File "/export/home/migdal/.config/sublime-text-3/Packages/Nodejs/Nodejs.py", line 27, in
from .lib.nodejs_commands import *
File "/export/home/migdal/.config/sublime-text-3/Packages/Nodejs/lib/nodejs_commands.py", line 7, in
from .nodejs_base import *
File "/export/home/migdal/.config/sublime-text-3/Packages/Nodejs/lib/nodejs_base.py", line 9, in
import psutil
File "/export/home/migdal/.config/sublime-text-3/Packages/psutil/st3_linux_x64/psutil/init.py", line 99, in
from . import _pslinux as _psplatform
File "/export/home/migdal/.config/sublime-text-3/Packages/psutil/st3_linux_x64/psutil/_pslinux.py", line 26, in
from . import _psutil_linux as cext
ImportError: libpython3.3m.so.1.0: cannot open shared object file: No such file or directory

I found out that python3.3 was not installed in my computer. After installing it, it worked just fine.

On Ubuntu 16.04.10 I installed python3.3 with the following commands:

aptitude install python-software-properties
add-apt-repository ppa:deadsnakes/ppa
aptitude update
aptitude install python3.3 libpython3.3

On Debian Jessie

cat << EOF > /etc/apt/sources.list.d/deadsnakes.list
deb http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main 
deb-src http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main 
EOF
gpg --keyserver keyserver.ubuntu.com --recv-keys DB82666C
gpg --export DB82666C | sudo apt-key add -
aptitude update
aptitude install python3.3 libpython3.3

I hope it help if somebody get the same issue.

I think that a more explicit error message should be added.

@varp
Copy link
Collaborator

varp commented Sep 8, 2018

@denis-migdal Thx. There is a related bug with psutil package which is shipped with the last release of the plugin.

@varp
Copy link
Collaborator

varp commented Mar 21, 2019

@denis-migdal I've made a new release of the related psutil package. The bug should be fixed. Please check out.

@varp
Copy link
Collaborator

varp commented Mar 22, 2019

The issue is resolved in the related package psutil

@varp varp closed this as completed Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants