LoginSignup
0
0

More than 1 year has passed since last update.

Pythonからのdll読み込みでOSError: [WinError 126]が出た話

Posted at

現象

ThorLab株式会社様が作られたdllライブラリを使って
電動フリップマウントを動かしていた時です.
Python3.10では問題なく動いていたのが,
Python3.6で実行するとOSError: [WinError 126]が起きました.

解決策

大事なのはos.chdir()でした.
dllの入っているディレクトリに移動してから
cdll.LoadLibraryで読み込めば問題なく動きました.

原因は?

わかる方いらっしゃったらご教示願います。

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