Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py2.7: urlopen error unknown url type: https #334

Closed
nifoc opened this issue Mar 16, 2016 · 1 comment
Closed

py2.7: urlopen error unknown url type: https #334

nifoc opened this issue Mar 16, 2016 · 1 comment
Assignees

Comments

@nifoc
Copy link

nifoc commented Mar 16, 2016

Zone: 15.4.0-base (with just the latest base packages installed)

# uname -a
SunOS b789a0e9-f6df-4e96-87fa-b1ea123d473e 5.11 joyent_20151112T202630Z i86pc i386 i86pc Solaris
# python --version
Python 2.7.11
# python
Python 2.7.11 (default, Jan 11 2016, 23:16:55)
[GCC 4.9.3] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> urllib2.urlopen("https://google.com")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/opt/local/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/opt/local/lib/python2.7/urllib2.py", line 454, in _open
    'unknown_open', req)
  File "/opt/local/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/opt/local/lib/python2.7/urllib2.py", line 1265, in unknown_open
    raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: https>

It looks like maybe py2.7 was compiled without SSL support enabled?

@jperkin jperkin self-assigned this Mar 16, 2016
@jperkin
Copy link
Collaborator

jperkin commented Mar 16, 2016

Hi Daniel,

This is an unfortunate side-effect of the OpenSSL update. As the ABI changed it's necessary to reinstall packages that have been rebuilt against it. The quick fix is to run:

# pkgin -F install python27

which will reinstall the rebuilt python package and your test case will then work. The alternative is to use the new 15.4.1 images which were released last week, as they come included with all of the updated packages.

@jperkin jperkin closed this as completed Mar 16, 2016
jperkin pushed a commit that referenced this issue Oct 22, 2016
kramdown 1.12.0 released		Published on Monday, 15 August 2016

This release features two enhancements for definition lists:

1. IALs can now be applied to definition terms:

	{:.classy} term
	: and its definition

2. IDs for definition terms can now be created automatically (similar to
   header IDs) and optionally assigned a prefix:

	{:auto_ids}
	term1
	: definition

	term2
	: definition

	^

	{:auto_ids-prefix}
	term1
	: definition

	term2
	: definition

   Furthermore, compatibility of the GFM parser has been improved in regards
   to list/blockquotes/codeblocks that are used directly after a paragraph
   (i.e. without a blank line).

Changes

* 4 minor change:

  - Allow using an IAL for definition terms (<dt>) as is already possible with
    definitions themselves (<dd>)
  - Added automatic generation of IDs (with optional prefix) for terms of
    definition lists (fixes #355, requested by Greg Wilson)
  - Removed obfuscation for e-mail links (fixes #343, requested by Anton
    Tsyganenko)
  - New option ¡Ægfm_quirks¡Ç for enabling/disabling parsing differences of
    the GFM parser with respect to the kramdown parser

* 4 bug fixes:

  - Added support for HTML5 element <main> (fixes #334, reported by
    Jean-Michel Lacroix)
  - Fixed math element output for HTML converter when no math engine is set
    (fixes #342, reported by Adrian Sampson)
  - Fixed problem when using custom HTML formatter for syntax highlighter
    rouge (fixes #356, patch by Alexey Vasiliev)
  - Better compatibility with GFM when lists/blockquotes/codeblocks are used
    directly after a paragraph (fixes #336 (reported by Shuanglei Tao), #359
    (reported by Matti Schneider) via the patch #358 by Shuanglei Tao)

* 3 other fixes and enhancements:

  - Added some more examples for how list indentation works (fixes #353,
    requested by Robbert Brak)
  - Using RbConfig instead of deprecated Config for determining data directory
    (fixes #345, patch by C�«±dric Boutillier)
  - JRuby is now also tested via TravisCI (fixes #363, patch by Shuanglei Tao)

kramdown 1.11.1 released		Published on Sunday, 01 May 2016

This release fixes an emphasis parsing regression introduced in the last
version.

Changes

* 1 bug fix:

  - Fixed emphasis parsing regression (fixes #333, reported by Marcus
    Stollsteimer)

kramdown 1.11.0 released		Published on Sunday, 01 May 2016

This release fixes some bugs and includes one minor change in regards to HTML
syntax highlighting.

Changes

* 1 minor change:

  - The syntax highlighting language is now always included in the output as
    class name even if a syntax highlighter is used (fixes #328, requested by
    SLaks)

* 3 bug fixes:

  - Fixed the GFM fenced code block parser to correctly split a provided
    highlighter name into language name and options parts
  - Fixed problem with underscores being processed even if inside a word
    (fixes #323, reported by Haruki Kirigaya)
  - Fixed HTML/XML parser to correctly, case sensitively parse XML (fixes
    #310, reported by cabo)

* 2 other fixes:

  - Updated copyright year (fixes #331, reported by Oscar Bj�«Órkman)
  - Updated supported Ruby version on installation page (reported by cabo)
jperkin pushed a commit that referenced this issue Jan 16, 2017
Version 0.34
------------

Released on 2016-12-21.

Bug fixes:

* `#398 <https://github.com/Kozea/WeasyPrint/issues/398>`_:
  Honor the presentational_hints option for PDFs.
* `#399 <https://github.com/Kozea/WeasyPrint/pull/399>`_:
  Avoid CairoSVG-2.0.0rc* on Python 2.
* `#396 <https://github.com/Kozea/WeasyPrint/issues/396>`_:
  Correctly close files open by mkstemp.
* `#403 <https://github.com/Kozea/WeasyPrint/issues/403>`_:
  Cast the number of columns into int.
* Fix multi-page multi-columns and add related tests.


Version 0.33
------------

Released on 2016-11-28.

New features:

* `#393 <https://github.com/Kozea/WeasyPrint/issues/393>`_:
  Add tests on MacOS.
* `#370 <https://github.com/Kozea/WeasyPrint/issues/370>`_:
  Enable @font-face on MacOS.

Bug fixes:

* `#389 <https://github.com/Kozea/WeasyPrint/issues/389>`_:
  Always update resume_at when splitting lines.
* `#394 <https://github.com/Kozea/WeasyPrint/issues/394>`_:
  Don't build universal wheels.
* `#388 <https://github.com/Kozea/WeasyPrint/issues/388>`_:
  Fix logic when finishing block formatting context.


Version 0.32
------------

Released on 2016-11-17.

New features:

* `#28 <https://github.com/Kozea/WeasyPrint/issues/28>`_:
  Support @font-face on Linux.
* Support CSS fonts level 3 almost entirely, including OpenType features.
* `#253 <https://github.com/Kozea/WeasyPrint/issues/253>`_:
  Support presentational hints (optional).
* Support break-after, break-before and break-inside for pages and columns.
* `#384 <https://github.com/Kozea/WeasyPrint/issues/384>`_:
  Major performance boost.

Bux fixes:

* `#368 <https://github.com/Kozea/WeasyPrint/issues/368>`_:
  Respect white-space for shrink-to-fit.
* `#382 <https://github.com/Kozea/WeasyPrint/issues/382>`_:
  Fix the preferred width for column groups.
* Handle relative boxes in column-layout boxes.

Documentation:

* Add more and more documentation about Windows installation.
* `#355 <https://github.com/Kozea/WeasyPrint/issues/355>`_:
  Add fonts requirements for tests.


Version 0.31
------------

Released on 2016-08-28.

New features:

* `#124 <https://github.com/Kozea/WeasyPrint/issues/124>`_:
  Add MIME sniffing for images.
* `#60 <https://github.com/Kozea/WeasyPrint/issues/60>`_:
  CSS Multi-column Layout.
* `#197 <https://github.com/Kozea/WeasyPrint/pull/197>`_:
  Add hyphens at line breaks activated by a soft hyphen.

Bux fixes:

* `#132 <https://github.com/Kozea/WeasyPrint/pull/132>`_:
  Fix Python 3 compatibility on Windows.

Documentation:

* `#329 <https://github.com/Kozea/WeasyPrint/issues/329>`_:
  Add documentation about installation on Windows.


Version 0.30
------------

Released on 2016-07-18.

WeasyPrint now depends on html5lib-0.999999999.

Bux fixes:

* Fix Acid2
* `#325 <https://github.com/Kozea/WeasyPrint/issues/325>`_:
  Cutting lines is broken in page margin boxes.
* `#334 <https://github.com/Kozea/WeasyPrint/issues/334>`_:
  Newest html5lib 0.999999999 breaks rendering.


Version 0.29
------------

Released on 2016-06-17.

Bug fixes:

* `#263 <https://github.com/Kozea/WeasyPrint/pull/263>`_:
  Don't crash with floats with percents in positions.
* `#323 <https://github.com/Kozea/WeasyPrint/pull/323>`_:
  Fix CairoSVG 2.0 pre-release dependency in Python 2.x.


Version 0.28
------------

Released on 2016-05-16.

Bug fixes:

* `#189 <https://github.com/Kozea/WeasyPrint/issues/189>`_:
  ``white-space: nowrap`` still wraps on hyphens
* `#305 <https://github.com/Kozea/WeasyPrint/issues/305>`_:
  Fix crashes on some tables
* Don't crash when transform matrix isn't invertible
* Don't crash when rendering ratio-only SVG images
* Fix margins and borders on some tables


Version 0.27
------------

Released on 2016-04-08.

New features:

* `#295 <https://github.com/Kozea/WeasyPrint/pull/295>`_:
  Support the 'rem' unit.
* `#299 <https://github.com/Kozea/WeasyPrint/pull/299>`_:
  Enhance the support of SVG images.

Bug fixes:

* `#307 <https://github.com/Kozea/WeasyPrint/issues/307>`_:
  Fix the layout of cells larger than their tables.

Documentation:

* The website is now on GitHub Pages, the documentation is on Read the Docs.
* `#297 <https://github.com/Kozea/WeasyPrint/issues/297>`_:
  Rewrite the CSS chapter of the documentation.
jperkin pushed a commit that referenced this issue Feb 1, 2017
Release 0.3.0 of Streamlink!

A lot of updates to each plugin (thank you @beardypig !), automated Windows releases, PEP8 formatting throughout Streamlink are some of the few updates to this release as we near a stable 1.0.0 release.

Main features are:

    Lot's of maintaining / updates to plugins
    General bug and doc fixes
    Major improvements to development (github issue templates, automatically created releases)

Agustín Carrasco <[email protected]> (1):
      Links on crunchy's rss no longer contain the show name in the url (#379)

Brainzyy <[email protected]> (1):
      Add basic tests for stream.me plugin (#391)

Javier Cantero <[email protected]> (2):
      plugins/twitch: use version v3 of the API
      plugins/twitch: use kraken URL

John Smith <[email protected]> (3):
      Added support for bongacams.com streams (#329)
      streamlink_cli.main: close stream_fd on exit (#427)
      streamlink_cli.utils.progress: write new line at finish (#442)

Max Riegler <[email protected]> (1):
      plugins.chaturbate: new regex (#457)

Michiel Sikma <[email protected]> (1):
      Update PLAYER_VERSION, as old one does not return data. Add ability to use streams with /embed/video in the URL, from embedded players. (#311)

Mohamed El Morabity <[email protected]> (6):
      Add support for pluzz.francetv.fr (#343)
      Fix ArteTV plugin (#385)
      Add support for Canal+ TV group channels (#416)
      Update installation instructions for Fedora (#443)
      Add support for Play TV (#439)
      Use token generator for HLS streams, as for HDS ones (#466)

RosadinTV <[email protected]> (1):
      --can-handle-url-no-redirect parameter added (#333)

Stefan Hanreich <[email protected]> (1):
      added chocolatey to the documentation (#380)

bastimeyer <[email protected]> (3):
      Automatically create Github releases
      Set changelog in automated github releases
      Add a github issue template

beardypig <[email protected]> (55):
      plugins.tvcatchup: site layout changed, updated the stream regex to accommodate the change (#338)
      plugins.streamlive: streamlive.to have added some extra protection to their streams which currently prevents us from capturing them (#339)
      cli: add command line option to specific logging path for subprocess errorlog
      plugins.trtspor: added support for trtspor.com (#349)
      plugins.kanal7: fixed page change in kanal7 live stream (#348)
      plugins.picarto: Remove the unreliable rtmp stream (#353)
      packaging: removed the built in backports infavour of including them as dependencies when required (#355)
      Boost the test coverage a bit (#362)
      plugins: all regex string should be raw (#361)
      ci: build and test on Python 3.6 (+3.7 on travis, with allowed failure) (#360)
      packages.flashmedia: fix bug in AMFMessage (#359)
      tests: use mock from unittest when available otherwise fallback to mock (#358)
      stream.hls: try to retry stream segments (#357)
      tests: add codecov config file (#363)
      plugins.picarto: updated plugin to use tech_switch divs to find the stream parameters
      plugins.mitele: support for live streams on mitele.es
      docs: add a note about python-devel needing to be installed in some cases
      docs/release: generate the changelog as rst instead of md
      plugins.adultswim: support https urls
      use iso 8601 date format for the changelog
      plugins.tf1: added plugin to support tf1.fr and lci.fr
      plugins.raiplay: added plugin to support raiplay.it
      plugins.vaughnlive: updated player version and info URL (#383)
      plugins.tv8cat: added support for tv8.cat live stream (#390)
      Fix TF1.fr plugin (#389)
      plugins.stream: fix a default scheme handling for urls
      Add support for some Bulgarian live streams (#392)
      rtmp: fix bug in redirect for rtmp streams
      plugins.sportal: added support for the live stream on sportal.bg
      plugins.bnt: update the user agent string for the http requests
      plugins.ssh101: update to support new site layout
      Optionally use FFMPEG to mux separate video and audio streams (#224)
      Support for 4K videos in YouTube (#225)
      windows-installer: add the version info to the installer file
      include CHANGELOG.rst instead of .md in the egg
      stream.hls: output duplicate streams for HLS when multiple streams of the same quality are available
      stream.ffmpegmux: fix support for avconv, avconv will be used if ffmpeg is not found
      Adultswin VOD support (#406)
      Move streamlink_cli.utils.named_pipe in to streamlink.utils
      plugins.rtve: update plugin to support new streaming method
      stream.hds: omit HDS streams that are protected by DRM
      Adultswin VOD fix for live show replays (#418)
      plugins.rtve: add support for legacy stream URLs
      installer: remove the streamlink bin dir from %PATH% before installing
      plugins.twitch: only check hosted channels when playing a live stream
      docs: tweaks to docs and docs build process
      Fix iframe detection for BTN/cdn.bg streams (#437)
      fix some regex that give deprecation warnings in python 3.6
      plugins.adultswim: correct behaviour for archived streams
      plugins.nineanime: add scheme to grabber api url if not present
      session: add an option to disable Diffie Hellman key exchange
      plugins.srgssr: added support for srg ssr sites: srf, rts and rsi
      plugins.srgssr: fixed bug in api URL and fixed akamai urls with authparams
      cli: try to terminate the player process before killing it (if terminate takes too long)
      plugins.swisstxt: add support for the SRG SSR sites sports sections

fozzy <[email protected]> (1):
      Add plugin for huajiao.com and zhanqi.tv (#334)

sqrt2 <[email protected]> (1):
      Fix swf_url in livestream.com plugin (#428)

stepshal <[email protected]> (1):
      Remove trailing.

stepshal <[email protected]> (2):
      Add blank line after class or function definition (#408)
      PEP8 (#414)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants