Comments you submit will be routed for moderation. If you have an account, please log in first.
Modify

Ticket #561 (closed defect: fixed)

Opened 12 months ago

Last modified 9 months ago

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

It is done in latest dev version. Thanks.

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! :-) )

comment:3 Changed 9 months ago by matysek

I don't know how to make pyinstaller working with portablepython. This ticket is about swapping import lines and that's done. For any issues with portable python create new reports.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.