【概要】pythonによるsql処理のプログラムの改良
【目的】すでにあるプログラムの解釈と改良をサポートして欲しい
【依頼背景】10行程度のpythonによるsql処理のプログラムがあり、処理内容を少し変えたいが、pythonとphpの知識不足のため、解釈と改良のサポートをお願いしたい。
具体的に下記プログラム
yahoo_sel_sql = "SELECT id FROM sell_on_yahoo_ifs WHERE status = 'new' and sale_id is not null and sale_id != '' and priority >= 20 group by sale_id having count(id) > 1 "
if cur.execute(yahoo_sel_sql) > 0:
yahoo_results = cur.fetchall()
for yahoo_result in yahoo_results:
yahoo_upd_sql = "UPDATE sell_on_yahoo_ifs set status = 'done' WHERE id = " + str(yahoo_result[0])
cur.execute(yahoo_upd_sql)
con.commit()
https://dev.classmethod.jp/articles/aws-lambda-python-selenium-make-env/
こちらのサイトの通りに進めていたら
urllib3のバージョン違いがダウンロードされて実行すると以下のエラーが起こった
"errorMessage": "Unable to import module 'lambda_function': urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.0.2k-fips 26 Jan 2017. See: https://github.com/urllib3/urllib3/issues/2168",
"errorType": "Runtime.ImportModuleError",
"stackTrace": []
どのように修正すればいいかアドバイスが欲しい