Python uses old openssl version on OSX #52507

Closed
opened 6 years ago by phaseIV-3 · 17 comments

System Information
macOS Sierra 10.12.5

Blender Version
Works: Blender 2.79 RC2 WIN 10
Fails: Blender 2.79 RC2 OSX

Short description of error
The user script Blender-Navcam-Importer loads external data from the NASA PDS website. This website recently switched from http to https. Running the script on Windows works OK while the OSX version fails with error message: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure>.

This answer on StackOverflow suggests that the culprit is an outdated OpenSSL version. I tested this with both os's and found indeed that the Windows version of Blender uses OpenSSL 1.0.2h while the OSX version uses OpenSSL 0.9.8zh.

Exact steps for others to reproduce the error
Run 'import ssl' and 'print(ssl.OPENSSL_VERSION)' in Blender console. I believe that the failing script will work again on OSX once the OpenSSL version is updated.
Thank you!

**System Information** macOS Sierra 10.12.5 **Blender Version** Works: Blender 2.79 RC2 WIN 10 Fails: Blender 2.79 RC2 OSX **Short description of error** The user script [Blender-Navcam-Importer ](https://github.com/phaseIV/Blender-Navcam-Importer) loads external data from the NASA PDS website. This website recently switched from http to https. Running the script on Windows works OK while the OSX version fails with error message: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure>. This answer on [StackOverflow ](https://stackoverflow.com/questions/40257593/python-sslerror-sslv3-alert-handshake-failure-for-wallhaven-cc) suggests that the culprit is an outdated OpenSSL version. I tested this with both os's and found indeed that the Windows version of Blender uses OpenSSL 1.0.2h while the OSX version uses OpenSSL 0.9.8zh. **Exact steps for others to reproduce the error** Run 'import ssl' and 'print(ssl.OPENSSL_VERSION)' in Blender console. I believe that the failing script will work again on OSX once the OpenSSL version is updated. Thank you!
Poster

Changed status to: 'Open'

Changed status to: 'Open'
Poster

Added subscriber: @phaseIV-3

Added subscriber: @phaseIV-3

Added subscribers: @brecht, @ArtoKitula

Added subscribers: @brecht, @ArtoKitula

MacOS has indeed OpenSSL 0.9.8 @brecht what if we just add homebrew ssl to that 10.6 build? (and you do it or me?)

MacOS has indeed OpenSSL 0.9.8 @brecht what if we just add homebrew ssl to that 10.6 build? (and you do it or me?)
brecht commented 6 years ago
Owner

@ArtoKitula I'm not going to update 10.6 libraries anymore, but if you want to do it go ahead.

I'm not sure that a homebrew library will be compatible with 10.6 though, unless there's some homebrew option for deployment targets? I guess we need to build our own static OpenSSL library for Python to link to.

@ArtoKitula I'm not going to update 10.6 libraries anymore, but if you want to do it go ahead. I'm not sure that a homebrew library will be compatible with 10.6 though, unless there's some homebrew option for deployment targets? I guess we need to build our own static OpenSSL library for Python to link to.

@phaseIV-3 Seems that script isn't updated for a while on github, so I didn't try it. But you could try my build that has OpenSSL 1.0.2l, if it works.

@phaseIV-3 Seems that script isn't updated for a while on github, so I didn't try it. But you could try [my build ](https://www.dropbox.com/s/gif8gcgnr68wfr4/blender-master-170823-macOS-10.9.zip?dl=0) that has OpenSSL 1.0.2l, if it works.
Poster

Wow, thank you Arto! The script works perfectly with your build, no more handshake issues. Seems the Stackoverflow poster was right about the SSL versioning. Thanks for your efforts!

Wow, thank you Arto! The script works perfectly with your build, no more handshake issues. Seems the Stackoverflow poster was right about the SSL versioning. Thanks for your efforts!

@phaseIV-3 make note that that is build from today and might have some unexpected behavior. For official version you'll need to wait until 2.79 release.

@phaseIV-3 make note that that is build from today and might have some unexpected behavior. For official version you'll need to wait until 2.79 release.
Poster

No worries, I understand. The bug is solved and OpenSSL 1.0.2l is hopefully included in the upcoming OSX release, so the script will continue to work properly and that's the most important thing.
Thanks again!

No worries, I understand. The bug is solved and OpenSSL 1.0.2l is hopefully included in the upcoming OSX release, so the script will continue to work properly and that's the most important thing. Thanks again!
Poster

So the update to version OpenSSL 1.0.2l for Mac/OSX didn't make it in 2.79. That's too bad...
Hope this gets fixed in the next version of Blender.
Thank you.

So the update to version OpenSSL 1.0.2l for Mac/OSX didn't make it in 2.79. That's too bad... Hope this gets fixed in the next version of Blender. Thank you.
ArtoKitula self-assigned this 5 years ago
Poster

I found that the release candidate version of Blender (2.79a) is still using OpenSSL 0.9.8zh for Mac/OSX.
Maybe now it is the time to update OpenSSL to a newer version?
Thank you.

I found that the release candidate version of Blender (2.79a) is still using OpenSSL 0.9.8zh for Mac/OSX. Maybe now it is the time to update OpenSSL to a newer version? Thank you.
Sergey commented 5 years ago
Owner

Added subscriber: @Sergey

Added subscriber: @Sergey
Sergey commented 5 years ago
Owner

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey closed this issue 5 years ago
Sergey commented 5 years ago
Owner

We do not perform any libraries updates for corrective releases (such as 'a'). This is far too dangerous and often breaks compatibility with some platforms.

Those libraries are at their EOL, next major release will use 10.9 libraries. Buildbot is already moved to new libraries.

We do not perform any libraries updates for corrective releases (such as 'a'). This is far too dangerous and often breaks compatibility with some platforms. Those libraries are at their EOL, next major release will use 10.9 libraries. Buildbot is already moved to new libraries.
Poster

This comment was removed by @phaseIV-3

*This comment was removed by @phaseIV-3*
Poster

Removed subscriber: @phaseIV-3

Removed subscriber: @phaseIV-3
Poster

For future reference, if any, there is a workaround for downloading files through python on Blender 2.79/OSX.
See this forumpost for details.

For future reference, if any, there is a workaround for downloading files through python on Blender 2.79/OSX. See [this forumpost ](https://forums.autodesk.com/t5/fusion-360-api-and-scripts/python-outdated-version-of-openssl-on-mac/td-p/7827232) for details.
Sign in to join this conversation.
No Label
Interest/Alembic
Interest/Animation & Rigging
Interest/Asset Browser
Interest/Asset Browser Project Overview
Interest/Audio
Interest/Automated Testing
Interest/Blender Asset Bundle
Interest/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
Interest/Eevee & Viewport
Interest/Freestyle
Interest/Geometry Nodes
Interest/Grease Pencil
Interest/ID Management
Interest/Images & Movies
Interest/Import/Export
Interest/Line Art
Interest/Masking
Interest/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Nodes & Physics
Interest/Overrides
Interest/Performance
Interest/Performance
Interest/Physics
Interest/Pipeline, Assets & I/O
Interest/Platforms, Builds, Tests & Devices
Interest/Python API
Interest/Render & Cycles
Interest/Render Pipeline
Interest/Sculpt, Paint & Texture
Interest/Text Editor
Interest/Translations
Interest/Triaging
Interest/Undo
Interest/USD
Interest/User Interface
Interest/UV Editing
Interest/VFX & Video
Interest/Video Sequencer
Interest/Virtual Reality
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Datablocks and Libraries
legacy project/Eevee
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Nodes
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Pose Library Basics
legacy project/Retrospective
legacy project/Tracker Curfew
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
Module › Animation & Rigging
Module › Core
Module › Development Management
Module › Eevee & Viewport
Module › Grease Pencil
Module › Modeling
Module › Nodes & Physics
Module › Pipeline, Assets & IO
Module › Platforms, Builds, Tests & Devices
Module › Python API
Module › Render & Cycles
Module › Sculpt, Paint & Texture
Module › Triaging
Module › User Interface
Module › VFX & Video
Platform/FreeBSD
Platform/Linux
Platform/macOS
Platform/Windows
Priority › High
Priority › Low
Priority › Normal
Priority › Unbreak Now!
Status › Archived
Status › Confirmed
Status › Duplicate
Status › Needs Information from Developers
Status › Needs Information from User
Status › Needs Triage
Status › Resolved
Type › Bug
Type › Design
Type › Known Issue
Type › Patch
Type › Report
Type › To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#52507
Loading…
There is no content yet.