cefpython compiled an exe and need to run with admin on win7 otherwise it will fail and say msvcr90.dll error

92 views
Skip to first unread message

XinWang

unread,
Nov 15, 2016, 3:32:45 AM11/15/16
to CEF Python
I embedded cefpython to my qt program. 
I have add all files in path C:\Python27\Lib\site-packages\cefpython3  to my build folder and finally I run the exe on win7 fail and show msvcr90.dll error.
But when I run it with admin it is ok. Please help me and told me how to run the exe without admin.

Kevin Chen

unread,
Nov 16, 2016, 9:51:30 PM11/16/16
to CEF Python

XinWang

unread,
Nov 16, 2016, 10:44:31 PM11/16/16
to CEF Python
Now the situation is that I build an desktop application and install it in C:/Program files.It crashed when execuate without admin and say MSVCR90.DLL module error.But when I install it in C:/Program files (x86) it would be ok and run very well. Can you help me?How to make it run when install it in C:/Program files? I have tried that in py2exe setup options add "dll_excludes":[MSVCR90.DLL] and it is useless

dwi...@gmail.com

unread,
Nov 17, 2016, 9:16:15 PM11/17/16
to CEF Python
Hi there, I've been in your situation many weeks ago.
The problem is not in your python script , but the exe builder.

It seems to me that you are using the py2exe, from my exe building experience, the py2exe often cause lots of trouble and so many random factor error.

Try the pyinstaller module , which is preferred than py2exe due to its active development.

It is much better than py2exe in terms of detecting requirement for some python package, so it can produce a better executable package system and all of its requirement

XinWang

unread,
Nov 23, 2016, 3:24:29 AM11/23/16
to CEF Python
Thanks very much! Actually the problem is caused by py2exe as you say. For some reason I would not instead py2exe by pyinstaller recently.But the problem have been fixed throuth this:https://groups.google.com/d/msg/cefpython/KNT-OsY9evQ/O7wCVhFFAQAJ. I need to set the py2exe ExcludingDlls to exclude these dlls shown in above url and fixed the problem.
Reply all
Reply to author
Forward
0 new messages