Sublime Forum

ST linux portable installation import module error on wcmatch

#1

I have installed ST-4126 as a portable installation in Linux in my work machine. Since I am behind a proxy, i manually installed the package control. I wanted to use the LSP package with clangd for code development in C/C++. I couldn’t make the package control to go out and install packages as when I start up ST, I always get an import module error in importing module wcmatch and the proxy control fails.

I thought of working without the ability to automatically install packages and so I downloaded the LSP package and set up that along with clangd but could never make the clangd server start from the LSP package.

Not sure whether the 2 issues are related but I would like to understand why I am unable to use package control to install packages. I have attached the log below.

I can’t install any new packages in my work python environment, and I was able to install the ST in windows environment and was able to make the clangd/LSP setup work without problem.

Since my build/debug environment is in Linux, I would like to make the linux installation work properly.
Can someone please provide some help and pointers?

Thanks for your time and help.

Regards
Sriram


Traceback (most recent call last):
File “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 308, 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 “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/LSP-clangd.sublime-package/plugin.py”, line 1, in
File “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/LSP.sublime-package/plugin/init.py”, line 11, in
File “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/LSP.sublime-package/plugin/core/registry.py”, line 1, in
File “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/LSP.sublime-package/plugin/core/configurations.py”, line 3, in
File “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/LSP.sublime-package/plugin/core/types.py”, line 10, in
ImportError: No module named ‘wcmatch’
reloading python 3.3 plugin LSP.boot
Traceback (most recent call last):
File “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 308, 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 “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/LSP.sublime-package/boot.py”, line 6, in
File “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/LSP.sublime-package/plugin/init.py”, line 11, in
File “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/LSP.sublime-package/plugin/core/registry.py”, line 1, in
File “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/LSP.sublime-package/plugin/core/configurations.py”, line 3, in
File “/workspace/hw/sriramsr/mysublime/sublime_text/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/LSP.sublime-package/plugin/core/types.py”, line 10, in
ImportError: No module named ‘wcmatch’
reloading python 3.3 plugin Package Control.1_reloader
reloading python 3.3 plugin Package Control.2_bootstrap
reloading python 3.3 plugin Package Control.Package Control
plugins loaded
Exception in thread Thread-2:
Traceback (most recent call last):
File “./python3.3/threading.py”, line 901, in _bootstrap_inner
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/package_cleanup.py”, line 55, in run
self.manager.record_usage(params)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/package_manager.py”, line 2015, in record_usage
result = manager.fetch(url, ‘Error submitting usage information.’)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/download_manager.py”, line 351, in fetch
return self.downloader.download(url, error_message, timeout, 3, prefer_cached)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/downloaders/urllib_downloader.py”, line 139, in download
http_file = self.opener.open(request, timeout=timeout)
File “./python3.3/urllib/request.py”, line 469, in open
File “./python3.3/urllib/request.py”, line 487, in _open
File “./python3.3/urllib/request.py”, line 447, in _call_chain
File “./python3.3/urllib/request.py”, line 785, in
File “./python3.3/urllib/request.py”, line 789, in proxy_open
File “./python3.3/urllib/request.py”, line 751, in _parse_proxy
File “./python3.3/urllib/parse.py”, line 852, in splittype
TypeError: expected string or buffer

Exception in thread Thread-4:
Traceback (most recent call last):
File “./python3.3/threading.py”, line 901, in _bootstrap_inner
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/commands/install_package_command.py”, line 45, in run
self.package_list = self.make_package_list([‘upgrade’, ‘downgrade’, ‘reinstall’, ‘pull’, ‘none’])
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/package_installer.py”, line 60, in make_package_list
packages = self.manager.list_available_packages()
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/package_manager.py”, line 694, in list_available_packages
return self._list_available()[0]
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/package_manager.py”, line 554, in _list_available
repositories = self.list_repositories()
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/package_manager.py”, line 453, in list_repositories
channel_repositories = provider.get_repositories()
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/providers/channel_provider.py”, line 201, in get_repositories
self.fetch()
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/providers/channel_provider.py”, line 87, in fetch
channel_json = manager.fetch(self.channel, ‘Error downloading channel.’)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/download_manager.py”, line 351, in fetch
return self.downloader.download(url, error_message, timeout, 3, prefer_cached)
File “/workspace/hw/sriramsr/mysublime/sublime_text/Data/Installed Packages/Package Control.sublime-package/package_control/downloaders/urllib_downloader.py”, line 139, in download
http_file = self.opener.open(request, timeout=timeout)
File “./python3.3/urllib/request.py”, line 469, in open
File “./python3.3/urllib/request.py”, line 487, in _open
File “./python3.3/urllib/request.py”, line 447, in _call_chain
File “./python3.3/urllib/request.py”, line 785, in
File “./python3.3/urllib/request.py”, line 789, in proxy_open
File “./python3.3/urllib/request.py”, line 751, in _parse_proxy
File “./python3.3/urllib/parse.py”, line 852, in splittype
TypeError: expected string or buffer

0 Likes

#2

See the solution presented here:


Add:

	"channels":
    [
        "https://packagecontrol.github.io/channel/channel_v4.json",
        "https://packagecontrol.io/channel_v3.json"
    ],

to Package Control.sublime-settings and then restart Sublime.

0 Likes