Sublime Forum

Can't install any package

#1

Hi all! I just did a fresh install of Sublime Text after formatting my computer (Ubuntu 18.04) however, despite being able to install the Package Control, I can’t install anything else. I just tried to install the Material Theme and Latex Tools, and it looks like Package Control can’t find the dependencies.

Here is the full log

startup, version: 3207 linux x64 channel: stable
executable: /opt/sublime_text/sublime_text
working dir: /
packages path: /home/antonio/.config/sublime-text-3/Packages
state path: /home/antonio/.config/sublime-text-3/Local
zip path: /opt/sublime_text/Packages
zip path: /home/antonio/.config/sublime-text-3/Installed Packages
ignored_packages: ["Vintage"]
generating syntax summary
generating meta info summary
pre session restore time: 0.648984
startup time: 0.705048
first paint time: 0.732749
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.detect_indentation
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ShellScript.ShellScript
plugins loaded
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
Package Control: Not running package cleanup since bootstrapping is not yet complete
reloading settings Packages/Package Control/Package Control.sublime-settings
reloading plugin 0_package_control_loader.00-package_control
reloading settings Packages/User/Package Control.sublime-settings
ignored packages updated to: ["Material Theme", "Vintage"]
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
Package Control: The dependency 'markupsafe' is not currently installed; installing...
Package Control: The dependency 'markupsafe' is not available
Package Control: The dependency 'markupsafe' could not be installed or updated
ignored packages updated to: ["Vintage"]
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
ignored packages updated to: ["LaTeXTools", "Vintage"]
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
Package Control: The dependency 'pygments' is not currently installed; installing...
Package Control: The dependency 'pygments' has successfully been installed or updated
Package Control: The dependency 'python-markdown' is not currently installed; installing...
Package Control: The dependency 'python-markdown' has successfully been installed or updated
Package Control: The dependency 'mdpopups' is not currently installed; installing...
Package Control: The dependency 'mdpopups' has successfully been installed or updated
Package Control: The dependency 'python-jinja2' is not currently installed; installing...
Package Control: The dependency 'python-jinja2' is not available
Package Control: The dependency 'python-jinja2' could not be installed or updated
ignored packages updated to: ["Vintage"]
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
0 Likes

#2

I’m having the exact same issue on a fresh install of Ubuntu 18.04.2 with a fresh copy of sublime text. It looks like the code for dependency management is broken so you have to go in and manually fix it yourself.

The packages that don’t seem to work are python-jinja2 and markupsafe (I was trying to install EasyClangComplete).

Here’s what I did. Some steps are probably extraneous but it only worked after a bunch of experimentation.

  1. Create a folder called jinja2 under /home/username/.config/sublime-text-3/Packages and copy python 3’s version of jinja2 in there. Press ctrl + ` and make sure you can import jinja2. If not, do the same thing with all the dependencies of jinja2 which seemed to be markupsafe. Make sure you copy the __init__.py into the immediate directory as it seems the resolver can’t find it if you do sub directories for some reason…
  2. Create a folder called python-jinja2 under the same Packages folder to trick the sublime text dependency finder into thinking it exists (it will work because the correct package of jinja2 is installed).
  3. It should automatically install. If not, restart sublime text.

I’m not sure why this has been broken and no one noticed… I guess there aren’t any new people installing sublime text on Ubuntu 18.04.

0 Likes

#3

I came across this error in the new version of sublime text 3 as well.

Thanks for providing the solution to install jinja2. But how do you install the markupsafe package?

0 Likes

#4

You can do the same thing. Download a copy of the markupsafe package for python 3 anywhere. Create a folder called markupsafe and extract everything inside it (no sub directories!).

0 Likes

#5
0 Likes

#6

That worked perfectly! Thank you very much @eugot !

0 Likes

#7

@FichteFoll thanks for the link. I was wondering why the downloads of my package are so low in the last week or so.

0 Likes