Home Download Buy Blog Forum Support

Package Control 2.0

Package Control 2.0

Postby wbond on Fri Aug 09, 2013 8:00 pm

PC 2.0 is finally here, with a new website to go along with it:

https://sublime.wbond.net/
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control 2.0

Postby C0D312 on Fri Aug 09, 2013 8:20 pm

I'm getting the following error when I try to install:
Code: Select all
reloading plugin Package Control.Package Control
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 671, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "Package Control in /Users/liam/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 56, in <module>
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1531, in _find_and_load_unlocked
KeyError: 'Package Control.package_control'


Tried on a fresh install and tried using the manual install. Any idea?
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Package Control 2.0

Postby wbond on Fri Aug 09, 2013 8:34 pm

If you delete the file from Installed Packages and try the install again you should be good. I reverted an import cange that had been added just before launch to make some ST2 upgrades easier.
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control 2.0

Postby gregor.hoch on Sat Aug 10, 2013 12:20 am

Wow, congrats! This is amazing for the ST community. I also saw that Package control has 1.8 million installs! Crazy!

Considering that you put a massive amount of work into this and don't even point to the donation page yourself, I will do it: https://sublime.wbond.net/say_thanks
I just sent $15 dollar and hope others are doing the same!
gregor.hoch
 
Posts: 144
Joined: Sat Oct 01, 2011 7:54 pm

Re: Package Control 2.0

Postby robertcollier4 on Sat Aug 10, 2013 4:01 am

Where is the syntax for repository.json now defined for version 2.0 of the schema? For example to specify compatability with both ST2 and ST3 but targetting only Windows platform?

https://sublime.wbond.net/docs/developers
For full documentation of all available options, please see the example-repository.json file.

The link to example-repository.json there is broken.
robertcollier4
 
Posts: 154
Joined: Sun Feb 24, 2013 5:37 pm

Re: Package Control 2.0

Postby prmaple on Sat Aug 10, 2013 4:38 am

THANK YOU SO MUCH!

The new website is amazing.
Find me
HTML5 Games: SNAKE! Tetris!
prmaple
 
Posts: 82
Joined: Sun Dec 25, 2011 11:06 am
Location: Melbourne

Re: Package Control 2.0

Postby wbond on Sat Aug 10, 2013 4:52 am

robertcollier4 wrote:Where is the syntax for repository.json now defined for version 2.0 of the schema? For example to specify compatability with both ST2 and ST3 but targetting only Windows platform?

https://sublime.wbond.net/docs/developers
For full documentation of all available options, please see the example-repository.json file.

The link to example-repository.json there is broken.


Yeah, sorry, there are still some things for me to clean up that I forgot in the first pass. I think I slept about 16 hours total in the past five days. :-)

Here is a temporary link until I get the python3 branch merged into master:

https://raw.github.com/wbond/sublime_pa ... itory.json
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control 2.0

Postby iamntz on Sat Aug 10, 2013 6:13 am

Thanks for the update, works great!
iamntz
 
Posts: 915
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Package Control 2.0

Postby edubkendo on Sat Aug 10, 2013 6:27 am

Very happy to see this come to fruition. You have done awesome work for the ST community and I want to say thanks first of all.

Unfortunately, when I try following the instructions for installation, I get :

Code: Select all
>>> import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "X/urllib/request.py", line 160, in urlopen
  File "X/urllib/request.py", line 479, in open
  File "X/urllib/request.py", line 591, in http_response
  File "X/urllib/request.py", line 511, in error
  File "X/urllib/request.py", line 451, in _call_chain
  File "X/urllib/request.py", line 696, in http_error_302
  File "X/urllib/request.py", line 473, in open
  File "X/urllib/request.py", line 496, in _open
  File "X/urllib/request.py", line 451, in _call_chain
  File "X/urllib/request.py", line 1314, in unknown_open
urllib.error.URLError: <urlopen error unknown url type: https>
Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 680, in update_compressed_packages
    multi_importer.loaders = [ZipLoader(p) for p in pkgs]
  File "/opt/sublime_text/sublime_plugin.py", line 680, in <listcomp>
    multi_importer.loaders = [ZipLoader(p) for p in pkgs]
  File "/opt/sublime_text/sublime_plugin.py", line 588, in __init__
    z = zipfile.ZipFile(zippath, 'r')
  File "X/zipfile.py", line 910, in __init__
  File "X/zipfile.py", line 944, in _GetContents
  File "X/zipfile.py", line 959, in _RealGetContents
zipfile.BadZipFile: File is not a zip file


This is for ST3 on Ubuntu 12.04. If any other information would help, please ask.
edubkendo
 
Posts: 30
Joined: Fri May 18, 2012 2:43 pm
Location: Nashville

Re: Package Control 2.0

Postby yrammos on Sat Aug 10, 2013 7:19 am

What an amazing contribution, thank you @wbond.

How can we add/change/remove the ST2/ST3 tags that appear next to every package on the website? Of my two packages, one incorrectly appears as ST2-only, the other has no tag whatsoever.
yrammos
 
Posts: 29
Joined: Fri Jun 22, 2012 3:26 am

Next

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 13 guests