wbond / package_control

The Sublime Text package manager
https://packagecontrol.io
4.8k stars 815 forks source link

Unable to download python-jinja2 and markupsafe #1495

Closed natsukmoe closed 4 years ago

natsukmoe commented 4 years ago

I recently installed a Material Theme in sublime text 3, but after that, when I restart sublime text 3, two errors occured:

Package Control

Unable to download markupsafe. Please view the console for more details.
Package Control

Unable to download python-jinja2. Please view the console for more details.

That's too annoying. The log below:

Package Control: Installing 2 missing dependencies
Package Control: Fetching list of available packages and dependencies
  Platform: windows-x64
  Sublime Text Version: 3211
  Package Control Version: 3.3.0
Package Control: Loading %userprofile%\Documents\channel_v3.json as a channel
Package Control: Download Debug
  URL: https://bitbucket.org/teddy_beer_maniac/sublime-text-dependency-jinja2/get/2.8.0.zip
  Timeout: 30
  Resolved IP: 18.205.93.1
Package Control: WinINet Debug Proxy
  proxy: 
  proxy bypass: 
  proxy username: 
  proxy password: 
Package Control: WinINet HTTPS Debug General
  Server SSL Certificate:
    subject: Private Organization, US, Delaware, 3928449, US, California, San Francisco, "Atlassian, Inc.", Bitbucket, bitbucket.org
    issuer: US, DigiCert Inc, www.digicert.com, DigiCert SHA2 Extended Validation Server CA
    common name: bitbucket.org
    issue date: Fri, 27 Mar 2020 08:00:00 GMT
    expire date: Mon, 23 May 2022 20:00:00 GMT
Package Control: WinINet HTTPS Debug Write
  GET /teddy_beer_maniac/sublime-text-dependency-jinja2/get/2.8.0.zip HTTP/1.1
  User-Agent: Package Control v3.3.0
  Host: bitbucket.org
  Connection: Keep-Alive
  Cache-Control: no-cache
  Accept-Encoding: bzip2,gzip,deflate
Package Control: WinINet HTTPS Debug Read
  HTTP/1.1 403 Forbidden
  Content-Security-Policy-Report-Only: script-src 'unsafe-eval' 'strict-dynamic' 'unsafe-inline' 'self' http: https: https://d301sr5gafysq2.cloudfront.net 'nonce-I0QEdhz0XhCOGyNi'; style-src 'self' 'unsafe-inline' https://aui-cdn.atlassian.com https://d301sr5gafysq2.cloudfront.net; report-uri https://web-security-reports.services.atlassian.com/csp-report/bb-website; default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob: *; connect-src bitbucket.org *.bitbucket.org bb-inf.net *.bb-inf.net analytics.atlassian.com as.atlassian.com api-private.stg.atlassian.com api-private.atlassian.com cofs.staging.public.atl-paas.net cofs.prod.public.atl-paas.net intake.opbeat.com api.media.atlassian.com api.segment.io xid.statuspage.io xid.atlassian.com xid.sourcetreeapp.com bam.nr-data.net sentry.io bqlf8qjztdtr.statuspage.io https://d301sr5gafysq2.cloudfront.net; object-src about:; base-uri 'self'
  Server: nginx
  Vary: Accept-Language, Cookie
  Cache-Control: no-cache, no-store, must-revalidate, max-age=0
  Content-Type: text/html; charset=utf-8
  X-B3-TraceId: dedb55d5ef745f97
  Content-Encoding: gzip
  X-Dc-Location: ash2
  Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  Date: Fri, 28 Aug 2020 00:21:08 GMT
  Expires: Fri, 28 Aug 2020 00:21:08 GMT
  X-Served-By: app-303
  Transfer-Encoding: chunked
  Content-Language: en
  X-Static-Version: 08de812ccc5d
  X-Render-Time: 0.0468039512634
  Connection: Keep-Alive
  X-Version: 08de812ccc5d
  X-Request-Count: 193
  X-Frame-Options: SAMEORIGIN
  X-Cache-Info: not cacheable; response specified "Cache-Control: no-cache"
Package Control: Skipping cache since the HTTP status code not one of: 200, 304
Package Control: Error downloading package. HTTP error 403 downloading https://bitbucket.org/teddy_beer_maniac/sublime-text-dependency-jinja2/get/2.8.0.zip.
error: Package Control

Unable to download python-jinja2. Please view the console for more details.
Package Control: Fetching list of available packages and dependencies
  Platform: windows-x64
  Sublime Text Version: 3211
  Package Control Version: 3.3.0
Package Control: Download Debug
  URL: https://bitbucket.org/teddy_beer_maniac/sublime-text-dependency-markupsafe/get/0.23.0.zip
  Timeout: 30
  Resolved IP: 18.205.93.1
Package Control: WinINet HTTPS Debug General
  Re-using connection to bitbucket.org on port 443 for request #1
Package Control: WinINet Debug Proxy
  proxy: 
  proxy bypass: 
  proxy username: 
  proxy password: 
Package Control: WinINet HTTPS Debug Write
  GET /teddy_beer_maniac/sublime-text-dependency-markupsafe/get/0.23.0.zip HTTP/1.1
  User-Agent: Package Control v3.3.0
  Host: bitbucket.org
  Connection: Keep-Alive
  Cache-Control: no-cache
  Accept-Encoding: bzip2,gzip,deflate
Package Control: WinINet HTTPS Debug Read
  HTTP/1.1 403 Forbidden
  Content-Security-Policy-Report-Only: script-src 'unsafe-eval' 'strict-dynamic' 'unsafe-inline' 'self' http: https: https://d301sr5gafysq2.cloudfront.net 'nonce-APXBmhDmSkKXCJtc'; style-src 'self' 'unsafe-inline' https://aui-cdn.atlassian.com https://d301sr5gafysq2.cloudfront.net; report-uri https://web-security-reports.services.atlassian.com/csp-report/bb-website; default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob: *; connect-src bitbucket.org *.bitbucket.org bb-inf.net *.bb-inf.net analytics.atlassian.com as.atlassian.com api-private.stg.atlassian.com api-private.atlassian.com cofs.staging.public.atl-paas.net cofs.prod.public.atl-paas.net intake.opbeat.com api.media.atlassian.com api.segment.io xid.statuspage.io xid.atlassian.com xid.sourcetreeapp.com bam.nr-data.net sentry.io bqlf8qjztdtr.statuspage.io https://d301sr5gafysq2.cloudfront.net; object-src about:; base-uri 'self'
  Server: nginx
  Vary: Accept-Language, Cookie
  Cache-Control: no-cache, no-store, must-revalidate, max-age=0
  Content-Type: text/html; charset=utf-8
  X-B3-TraceId: c02af02215ead884
  Content-Encoding: gzip
  X-Dc-Location: ash2
  Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  Date: Fri, 28 Aug 2020 00:21:08 GMT
  Expires: Fri, 28 Aug 2020 00:21:08 GMT
  X-Served-By: app-300
  Transfer-Encoding: chunked
  Content-Language: en
  X-Static-Version: 08de812ccc5d
  X-Render-Time: 0.0350859165192
  Connection: Keep-Alive
  X-Version: 08de812ccc5d
  X-Request-Count: 183
  X-Frame-Options: SAMEORIGIN
  X-Cache-Info: not cacheable; response specified "Cache-Control: no-cache"
Package Control: Skipping cache since the HTTP status code not one of: 200, 304
Package Control: Error downloading package. HTTP error 403 downloading https://bitbucket.org/teddy_beer_maniac/sublime-text-dependency-markupsafe/get/0.23.0.zip.
error: Package Control

Unable to download markupsafe. Please view the console for more details.
Package Control: Skipping automatic upgrade, last run at 2020-08-28 08:14:38, next run at 2020-08-28 09:14:38 or after
Package Control: WinINet HTTPS Debug General
  Closing connection to bitbucket.org on port 443 after 2 requests
FichteFoll commented 4 years ago

You're using an outdated mirror of the PC default channel. Check your PC preferences and remove the channels setting.

wbond commented 4 years ago

As @FichteFoll mentioned, you must be used a very old cache of the default Package Control channel.

Currently the python-jinja2 dependency is hosted on GitHub. BitBucket shut down Mercurial hosting, and now returns a 403 for such URLs, which you seem to be hitting.