Ticket #561 (closed defect: fixed)
Failed to import pywin32 under portable python
| Reported by: | Julien D. | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | PyInstaller 2.1 |
| Component: | Platform Windows | Version: | develop |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I try to run pyinstaller with portable python 2.7.2.1 under windows. It fails with the message "Error: PyInstaller? for Python2.6+ needs pywin32..."
In order to make pywin32 works with portable python pywintypes must be loaded before any win32 library (bug? http://www.voidspace.org.uk/python/movpy/reference/win32ext.html#problems-with-win32api).
Swapping the two lines "import win32api" and "import pywintypes" in bindepend.py (line 44 and 45 on commit 0837e8a....) fixes the issue.
Attachments
Change History
comment:1 Changed 9 months ago by matysek
- Status changed from new to closed
- Resolution set to fixed
- Milestone set to PyInstaller 2.1
comment:2 Changed 9 months ago by jumpjack@…
Can you please explain how to use pyInstaller with Portable Python 2.7.x? I downloaded latest DEV version of pyInstaller so it should work now. PortablePython? is "installed".... but I can't install required pyWin32 as it complains about missing registry informations for python! (of course, being it portable! :-) )

It is done in latest dev version. Thanks.