Sublime Forum

Unable to install bitbucket libs - workaround now fails

#1

#Issue
I am unable to install bitbucket libs due to a corporate firewall. Until recently I had a workaround according to this post: Python-jinja2 package install problem

Recently (cannot pin down the exact version) this workaround has failed.
I am trying to understand how I can resolve this issue.

Failing packages:

  • python-jinja
  • markupsafe

Steps

  • I manually downloaded the .zip files from the github sources.
  • Created the folders python-jinja and markupsafe in \Data\Packages\.
  • Moved the .zip files into each respective folder.
  • Extracted the contents to \Data\Packages\python-jinja\all and \Data\Packages\markupsafe\all
  • Created a blank file .sublime-dependency in \Data\Packages\python-jinja\` and\Data\Packages\python-jinja`
  • Started Sublime Text 3 and ran Satisfy Dependencies
  • Restarted Sublime text 3

At this point everything used to work.

Possible Causes

Not in PATH

In the last month it now fails to import because neither package is being discovered and added to the PATH

>>> import sys
>>> print('\n'.join(sys.path))
C:\Users\mcfarlal\packages\sublimeText
C:\Users\me\packages\sublimeText\python3.3.zip
C:\Users\me\packages\sublimeText\Data\Lib\python3.3
C:\Users\me\packages\sublimeText\Data\Packages
C:\Users\me\packages\SUBLIM~1\Data\Packages\pygments\all
C:\Users\me\packages\SUBLIM~1\Data\Packages\backrefs\st3
C:\Users\me\packages\SUBLIM~1\Data\Packages\pymdownx\st3
C:\Users\me\packages\SUBLIM~1\Data\Packages\PYTHON~3\st3
C:\Users\me\packages\SUBLIM~1\Data\Packages\pyyaml\st3
C:\Users\me\packages\SUBLIM~1\Data\Packages\JSONSC~1\all
C:\Users\me\packages\SUBLIM~1\Data\Packages\mdpopups\st3

I find if I add jinja to the path it works

sys.path.append(r'C:\Users\me\packages\sublimeText\Data\Packages\python-jinja2\all')

markupsafe does not work if I do this, however.

Change of layout in new versions

It seems that other packages have changed recently in their layout.
They now have st3/ and st2/ subdirectories rather than all/

Has this got something to do with it?

0 Likes