Home

import of uuid module causes error on windows
Closed, InvalidPublic

Description
just type "import uuid" at python console.

Error pops up:

"An application has made an attempt to load the C runtime
library incorrectly. Please contact the application's support
team for more information"
briggs (Geoffrey Bantle) set Type to Bug.Via Old WorldSep 23 2011, 10:27 PM
jesterking (Nathan Letwory) added a comment.Via Old WorldSep 25 2011, 10:43 PM
This was also reported in [#27666], there it is suggested to remove ctypes code from the python uuid module to prevent the popup from showing. Note that the module keeps on functioning properly even after the popup.
sergey (Sergey Sharybin) added a comment.Via Old WorldDec 1 2011, 1:33 PM
Strange, it happens with recent 2.61beta build but not happen with build from buildbot. Maybe it's some differences in build configurations which are pretty simple to change? :)
jesterking (Nathan Letwory) added a comment.Via Old WorldMay 10 2012, 9:39 AM
The difference with official vs buildbot is that the buildbot builds don't have the msvc runtime dlls included. This may be the cause for the error. If the user has the runtime dlls installed themselves the bundled onces could be deleted after which this error won't happen anymore.
artfunkel (Tom Edwards) added a comment.Via Old WorldAug 12 2012, 7:56 PM
Copying the system DLLs over from C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57 also fixes this problem. Seems like a simple fix for the official builds.

Both msvcr90.dll files have the same version number and creation timestamp, but the system's one is 11KB larger than Blender's and was signed three hours later...
dingto (Thomas Dinges) added a comment.Via Old WorldOct 2 2012, 9:40 AM
Hi,
I am not sure how to fix this. I have several msvcr90.dll files on my computer, and they indeed have different sizes. The ones I bundle with releases and the recent RC builds for 2.64 come from the Visual Studio redist folder (example C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT).
ton (Ton Roosendaal) added a comment.Via Old WorldOct 21 2012, 6:43 PM
No idea what to do with this? Would campbell know? What is this uuid thing, is that officially supported?
no idea :S, but `uuid` module is standard python, so it should work.

I gather this is more a windows linking issue, python dynamic loads a C python module (just dynamic loading a library)
which happens to cause a conflict with with the DLL blender is running (and shows a popup), probably to do fix this would need to rebuild python or change the DLL blender is used with.
IIRC we can't distribute MSVCRT so we rely on the user having it, but this means its hard for us to fix on our side.
jesterking (Nathan Letwory) added a comment.Via Old WorldNov 15 2012, 1:05 PM
The MSVCRT DLLs are already bundled (as Thomas D already mentions). I think this is a problem with that the DLLs *are* in the directory. Perhaps some side-by-side or similar error? Note that the uuid module works otherwise fine, despite the error message.
dingto (Thomas Dinges) added a comment.Via Old WorldNov 20 2012, 7:05 PM
I am closing this, its unclear why there are different .dll versions of these files. The ones we bundle seem to work for regular Blender work.
dingto (Thomas Dinges) closed this task as "Invalid".Via Old WorldNov 20 2012, 7:05 PM

Add Comment