#89 error: could not delete 'dist\MSVCR71.dll': P

closed-fixed
None
5
2006-03-21
2006-03-06
No

I am trying to build a wxPython app, which previously
built fine using py2exe. I have updated the version of
pysqlite that I'm using, and pulled in threading
support. I think that's pulled in some new
dependencies, and now it's dying on me.

copying
c:\python24\lib\site-packages\pysqlite2\_sqlite.pyd ->
c:\mirror\work\dist
copying
c:\python24\lib\site-packages\wx-2.5.5-msw-ansi\wx\_controls_.pyd
-> c:\mirror\work\dist
copying
c:\python24\lib\site-packages\wx-2.5.5-msw-ansi\wx\_core_.pyd
-> c:\mirror\work\dist
copying
c:\python24\lib\site-packages\wx-2.5.5-msw-ansi\wx\_gdi_.pyd
-> c:\mirror\work\dist
copying
c:\python24\lib\site-packages\wx-2.5.5-msw-ansi\wx\_grid.pyd
-> c:\mirror\work\dist
copying
c:\python24\lib\site-packages\wx-2.5.5-msw-ansi\wx\_misc_.pyd
-> c:\mirror\work\dist
copying
c:\python24\lib\site-packages\wx-2.5.5-msw-ansi\wx\_windows_.pyd
-> c:\mirror\work\dist
*** copy dlls ***
copying c:\python24\w9xpopen.exe -> c:\mirror\work\dist
copying C:\WINDOWS\system32\MSVCR71.dll ->
c:\mirror\work\dist
copying c:\python24\MSVCR71.dll -> c:\mirror\work\dist
error: could not delete
'c:\mirror\work\dist\MSVCR71.dll': Permission denied

Suggestions welcome, thanks.

Discussion

  • Michael P. Soulier

    Logged In: YES
    user_id=470843

    From the py2exe mailing list.

    Jimmy Retzlaff wrote:
    >> copying C:\WINDOWS\system32\MSVCR71.dll ->
    c:\mirror\work\dist
    >> copying c:\python24\MSVCR71.dll -> c:\mirror\work\dist
    >> error: could not delete
    'c:\mirror\work\dist\MSVCR71.dll': Permission
    >
    > My only guess is that c:\python24\MSVCR71.dll has the Read
    Only
    > attribute set and it's being copied over with the DLL. If
    so you
    > wouldn't be able to overwrite it on subsequent runs. If
    that's the case,
    > try clearing the Read Only attribute in the Python24
    directory and in
    > your dist directory.

    It was the one in c:\WINDOWS\system32. I removed the
    read-only attrib from it, and the build worked.

    Now, it's not unreasonable for .dlls in system32 to be
    marked read-only, so should not py2exe change the attributes
    of the .dlls that it copies to prevent this from happening?

     
  • Jimmy Retzlaff

    Jimmy Retzlaff - 2006-03-21

    Logged In: YES
    user_id=101588

    Fixed in 0.6.5

     
  • Jimmy Retzlaff

    Jimmy Retzlaff - 2006-03-21
    • assigned_to: nobody --> jretz
    • status: open --> closed-fixed
     

Log in to post a comment.