I'm unit-testing a python c module in Eclipse using PyDev unit-testing.
The development steps are: I first write the python tests in Eclipse and
then the c code that passes the tests for the module in Codeblocks.
Here is where a script is called to create a dll and ctypes bindings for it.
After that the “dll” and the “py” code is copied to a directory where the
module can be easily imported. But sometimes I get the error:
IOError: Permission denied: 'C:\…\pyCModule.dll'
I’ve haven’t found the reason for that (deactivating code analysis and
code completion haven’t helped). I’ve checked with the Process Explorer
(from sysinternals) and it shows that the eclipse process has python.exe
as child (I suppose that’s from PyDev) and that one is using my
pyCModule.dll (and not always releasing it).
Does someone have and idea of want could be done here?
or what is wrong?
Thanks in advance !
Francis
PS: I've just copied the question from stackoverflow
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm unit-testing a python c module in Eclipse using PyDev unit-testing.
The development steps are: I first write the python tests in Eclipse and
then the c code that passes the tests for the module in Codeblocks.
Here is where a script is called to create a dll and ctypes bindings for it.
After that the “dll” and the “py” code is copied to a directory where the
module can be easily imported. But sometimes I get the error:
IOError: Permission denied: 'C:\…\pyCModule.dll'
I’ve haven’t found the reason for that (deactivating code analysis and
code completion haven’t helped). I’ve checked with the Process Explorer
(from sysinternals) and it shows that the eclipse process has python.exe
as child (I suppose that’s from PyDev) and that one is using my
pyCModule.dll (and not always releasing it).
Does someone have and idea of want could be done here?
or what is wrong?
Thanks in advance !
Francis
PS: I've just copied the question from stackoverflow
Answered you at: http://stackoverflow.com/questions/7007635/dll-from-python-module-is-not-released-in-eclipse-pydev/7011545
Cheers,
Fabio