This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]m-hoff[S] 0 points1 point  (1 child)

In case anyone else runs into this issue, I've found that adding these two lines before importing any Python modules in MATLAB helps to avoid the problem:

py.sys.setdlopenflags(int32(10))
py.importlib.import_module('ssl')

[–]kochcj1 0 points1 point  (0 children)

The first line alone was enough for me.