Menu

Dll python module is not released in Eclipse

Francis
2011-08-10
2013-03-15
  • Francis

    Francis - 2011-08-10

    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

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.