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

No module name AIX #98

Open
jingyuexing opened this issue Feb 25, 2019 · 6 comments
Open

No module name AIX #98

jingyuexing opened this issue Feb 25, 2019 · 6 comments

Comments

@jingyuexing
Copy link

reloading plugin Nodejs.Nodejs
Traceback (most recent call last):
File "F:\IDEA\Sublime Text Build 3180 x64\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 "F:\IDEA\Sublime Text Build 3180 x64\sublime_plugin.py", line 1183, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "F:\IDEA\Sublime Text Build 3180 x64\Data\Installed Packages\Nodejs.sublime-package\Nodejs.py", line 14, in
File "F:\IDEA\Sublime Text Build 3180 x64\sublime_plugin.py", line 1183, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "F:\IDEA\Sublime Text Build 3180 x64\Data\Installed Packages\Nodejs.sublime-package\lib/nodejs_commands.py", line 3, in
File "F:\IDEA\Sublime Text Build 3180 x64\sublime_plugin.py", line 1183, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "F:\IDEA\Sublime Text Build 3180 x64\Data\Installed Packages\Nodejs.sublime-package\lib/nodejs_base.py", line 7, in
File "F:\IDEA\Sublime Text Build 3180 x64\Data\Packages\psutil\st3_windows_x64\psutil_init
.py", line 77, in
from ._common import AIX
ImportError: cannot import name AIX

@varp
Copy link
Collaborator

varp commented Mar 5, 2019

Hi, could you attach info about target platform ?

@varp
Copy link
Collaborator

varp commented Mar 5, 2019

Also info about ST version

@vaanwd
Copy link

vaanwd commented Apr 18, 2019

I have the same error:

reloading plugin Nodejs.__init__
reloading plugin Nodejs.Nodejs
Traceback (most recent call last):
  File "D:\Share2\Programare\Editoare\Sublime Text\Sublime Text 3\sublime_plugin.py", line 125, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.3/importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 868, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "D:\Share2\Programare\Editoare\Sublime Text\Sublime Text 3\Data\Packages\Nodejs\Nodejs.py", line 14, in <module>
    from .lib.nodejs_commands import *
  File "D:\Share2\Programare\Editoare\Sublime Text\Sublime Text 3\Data\Packages\Nodejs\lib\nodejs_commands.py", line 3, in <module>
    from .nodejs_base import *
  File "D:\Share2\Programare\Editoare\Sublime Text\Sublime Text 3\Data\Packages\Nodejs\lib\nodejs_base.py", line 7, in <module>
    import psutil
  File "D:\Share2\PROGRA~1\Editoare\SUBLIM~1\SUBLIM~2\Data\Packages\psutil\ST3_WI~1\psutil\__init__.py", line 77, in <module>
    from ._common import AIX
ImportError: cannot import name AIX

Windows 7 x64, ST 3 Build 3207 x86

@jingyuexing
Copy link
Author

jingyuexing commented Apr 18, 2019

Also info about ST version

Sublime Text Build 3180 x64
Windows 10,
nodejs version 11.3
python 3.6

@vaanwd
Copy link

vaanwd commented Apr 19, 2019

You need to add:
AIX = sys.platform.startswith("aix")
in psutil\st3_windows_x32\psutil\_common.py and psutil\st3_windows_x64\psutil\_common.py
after:
SUNOS = sys.platform.startswith("sunos") or sys.platform.startswith("solaris")

@varp
Copy link
Collaborator

varp commented Apr 19, 2019

You need to add:
AIX = sys.platform.startswith("aix")
in psutil\st3_windows_x32\psutil\_common.py and psutil\st3_windows_x64\psutil\_common.py
after:
SUNOS = sys.platform.startswith("sunos") or sys.platform.startswith("solaris")

There is the original code from psutil authors. I've not modified the code at all. I've only modified the code in setup.py for compiling static versions of dynamic libraries.

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

3 participants