pythonwin.exe broken

621 views
Skip to first unread message

gar...@gmail.com

unread,
Jul 16, 2013, 2:13:17 PM7/16/13
to portabl...@googlegroups.com
Hi,

pythonwin.exe from the pywin32 package (in App\Lib\site-packages\pythonwin) doesn't work - it immediately exits after being executed. 

If I run it from the command line, I get a dialog that says:

"Still can't get my hands on win32ui"

(if double-clicked in Explorer, it just silently exits.)

While poking around, I noticed that if I manually installed the python.org version and the latest version of pywin32, it (pywin32 installer) installs a couple DLLs in the system area:

C:\Windows\system32\python27.dll
C:\Windows\system32\pywintypes27.dll

But PortablePython installs those in the App\ directory, so I'm guessing that pythonwin.exe doesn't "know" where to load those DLLs from.
Anyone know how to fix this?

Perica Zivkovic

unread,
Jul 16, 2013, 3:26:41 PM7/16/13
to portabl...@googlegroups.com
You could try to copy exe to the Portable Python root folder (App) and run it from there. 

There are much better IDE's like IDLE and PyScripter shipped with Portable Python - I recommend that you use them instead.

keep pythoning !

gar...@gmail.com

unread,
Jul 17, 2013, 1:49:17 PM7/17/13
to portabl...@googlegroups.com
I did find that if I changed my CWD (from cmd prompt) to the App\ dir which contained the DLLs that pythonwin.exe would work.  It also worked if I added the App\ dir to my PATH (but don't want to do that permanently, as I test against multiple python versions).

In any case, since PP moves the DLLs from the pywin package into the App\ dir, I'd suggest it moves the pythonwin.exe file there too.
Reply all
Reply to author
Forward
0 new messages