LoginSignup
0
0

【備忘録】初めてさくらサーバを触ってぶつかった壁

Posted at

はじめに

所用でさくらサーバを使って色々していた間にぶつかった壁の備忘録です。
都度更新します。

SSH接続方法

ssh アカウント名@初期ドメイン(xxx.sakura.ne.jp)

Pythonで使われるopensslの問題

仮想環境をつくってみたのでとりあえず何か動かそうとimport requestsをする際に,

ImportError: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2-chacha (1.0.2k-dev)'. See: https://github.com/urllib3/urllib3/issues/2168

というエラーが出た。
urllib3のバージョンが新しく、サーバ環境のopensslに合わないらしい。

調べたところ、サーバのopensslは1.1.1であるが、

% openssl version
OpenSSL 1.1.1k-freebsd  24 Aug 2021

pythonにコンパイルされているopensslは1.0.2となっていた。

>>> import ssl
>>> print(ssl.OPENSSL_VERSION)
OpenSSL 1.0.2-chacha (1.0.2k-dev)

解決策

とりあえずurllib3をダウングレードして解決。

% pip install urllib3==1.25.11
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0