Running Python script with oauth2 via matlab

2 ビュー (過去 30 日間)
Evan
Evan 2015 年 8 月 15 日
編集済み: Robert Snoeberger 2015 年 8 月 17 日
I'm trying to run a Python script that updates a Google spreadsheet with values calculated with Matlab. I'm using the gspread API, which uses oauth2. Running straight Python, I'm able to download and modify spreadsheets without a problem. When I try to run the script in Matlab, I get the following error when I try to authorize the credentials:
Python Error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
Any ideas about what I could do to solve this? I suppose the workaround would be to just save the data from Matlab and import the .mat file into Python.
  1 件のコメント
Robert Snoeberger
Robert Snoeberger 2015 年 8 月 17 日
編集済み: Robert Snoeberger 2015 年 8 月 17 日
I'm curious, which version of Python are you using? Certificate verification was turned on by default in 2.7.9 and 3.4.3 [1, 2, 3]. Also, are you using the same Python version when you run the script in MATLAB and when running straight Python?
References
  1. PEP 476
  2. verify HTTPS certificates by default
  3. python2.7.9 [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by