import win32ui and import dde failed

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

import win32ui and import dde failed

Post by Pako » Thu Mar 25, 2010 9:01 am

I'm trying to do something and I need to import win32ui and dde.
Unfortunately it is not possible.
Please anyone knows why this is and how to fix it?
Thanks, Pako

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: import win32ui and import dde failed

Post by krambriw » Thu Mar 25, 2010 9:36 am

Hi Pako, similar search tells others also have problem (not only EG developers). Suggestion I found is:

Code: Select all

Did you install PyWin32? If so, which version? Here's a link:

http://sourceforge.net/projects/pywin32/


krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: import win32ui and import dde failed

Post by krambriw » Thu Mar 25, 2010 9:49 am

I tried this but it did not help me either, the import fails

Best regards, Walter

Code: Select all

10:48:51   Error while loading plugin-file C:\Program Files\EventGhost\plugins\NetHomeServer.
10:48:51   Traceback (most recent call last) (1397):
10:48:51     File "C:\Program Files\EventGhost\plugins\NetHomeServer\__init__.py", line 42, in <module>
10:48:51       import win32ui
10:48:51     File "win32ui.pyc", line 12, in <module>
10:48:51     File "win32ui.pyc", line 10, in __load
10:48:51   ImportError: DLL load failed: Det går inte att hitta den angivna modulen.

This thread has some interesting discussion. I tried this but it did not help me either

http://www.gossamer-threads.com/lists/p ... hon/771184

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: import win32ui and import dde failed

Post by Pako » Sat Sep 25, 2010 7:51 am

I did some work on this problem and I found the solution.
It turned out that the solution is very simple:
Into the folder where you installed EventGhost, put file Microsoft.VC90.MFC.manifest and files listed therein
(ie, mfc90.dll, mfc90u.dll, mfcm90.dll, mfcm90u.dll).
I found these files in my Python 2.6 installation folder ...\Python26\Lib\site-packages\pythonwin\.
However, that there were these files, you must first install Mark Hammond's PyWin32 add-on.
It's available from the pywin32 project on SourceForge. I used the setup file pywin32-214.win32-py2.6.exe.
I do not know whether someone in the future will do a new build of EG.
If so, it would be great if the necessary files installed automatically (like Microsoft.VC90.CRT).

Pako

stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: import win32ui and import dde failed

Post by stottle » Sat Sep 25, 2010 2:31 pm

I've got win32ui in my fork and had similar issues. When you build from source, py2exe gives a list of dll's that aren't included with the exe and are expected to be locatable on the target machine. I had to modify the build script to include the files necessary for win32ui. I haven't looked at backporting (partially because we have no place to put a new build), but hopefully that helps you.

Brett

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: import win32ui and import dde failed

Post by Pako » Sat Sep 25, 2010 4:09 pm

Thank you for the explanation.
But I still do not plan to create build from source.
Doing it for themselves is largely irrelevant, and for creating an official build I do not have sufficient permissions.
I do not plan to make another fork. I absolutely suits EventGhost concept.
It is a pity that Bitmonster gave up work on the project or at least finish a plan
to separate plugins from the installation file.
Pako

Post Reply