Permission denied on dl.open() with ipython but not with python

前端 未结 3 2039
梦谈多话
梦谈多话 2021-02-19 11:16

My initial goal is to open a dll file on Cygwin using ctypes. However I found some issues with it. I dug up to sys.dl which returns an unk

3条回答
  •  野性不改
    2021-02-19 11:25

    Two ideas:

    1) in the next cell, type %pdb, and then interactively "print self._name" to see what it is.

    2) Use a full path to cdll.LoadLibrary("foo.dll") to see if that works.

    Once you know what the issue is, then you can decide whose bug it is, and report it (could be a ctypes issue, but probably ipython)

提交回复
热议问题