py2exe error: 2.4.2.4: No such file or directory

L

Larry Bates

I had occasion to look back at a project I did over a year ago
and needed to make one small change. I use py2exe to package
it for distribution via Inno Setup. After making my change
I tried to run my setup script that worked fine before and
get the following message:

F:\SYSCON\WTS\HTMLmenu>python HTMLmenuSetup.py py2exe -w
running py2exe
running build
running build_scripts
not copying HTMLmenu.py (up-to-date)
running install_scripts
not copying build\scripts-2.2\HTMLmenu.py (output up-to-date)
+----------------------------------------------------
| Processing script HTMLmenu.py with py2exe-0.3.3
+----------------------------------------------------
Searching modules needed to run 'HTMLmenu.py' on path:
['F:\\SYSCON\\WTS\\HTMLmenu\\build\\bdist.win32\\winexe\\lib\\Python22\\Lib\\sit
e-packages', '', 'F:\\Larry\\Python', 'C:\\Python22\\Lib\\site-packages\\Pythonw
in', 'C:\\Python22\\Lib\\site-packages\\win32', 'C:\\Python22\\Lib\\site-package
s\\win32\\lib', 'C:\\Python22\\Lib\\site-packages', 'C:\\Python22\\DLLs', 'C:\\P
ython22\\lib', 'C:\\Python22\\lib\\lib-tk', 'C:\\Python22', 'C:\\Python22\\lib\\
site-packages\\HTMLgen', 'F:\\Larry\\Python\\Library', 'C:\\Python22\\lib\\site-
packages\\PIL', 'C:\\Python22\\lib\\site-packages\\dynwin', 'C:\\Python22\\lib\\
site-packages\\npstruct', 'C:\\Python22\\lib\\site-packages\\wxPython']
error: 2.4.2.4: No such file or directory

The only thing that I can think of is that perhaps I've upgraded my
wxWindows version. I checked and 2.4.2.4 is the version, but I don't
know why py2exe is looking for such a directory.

Anybody out there have a clue?

Thanks in advance,
Larry Bates
 
S

Stephen Thorne

I had occasion to look back at a project I did over a year ago
and needed to make one small change. I use py2exe to package
it for distribution via Inno Setup. After making my change
I tried to run my setup script that worked fine before and
get the following message:

F:\SYSCON\WTS\HTMLmenu>python HTMLmenuSetup.py py2exe -w
running py2exe
running build
running build_scripts
not copying HTMLmenu.py (up-to-date)
running install_scripts
not copying build\scripts-2.2\HTMLmenu.py (output up-to-date)
+----------------------------------------------------
| Processing script HTMLmenu.py with py2exe-0.3.3
+----------------------------------------------------
Searching modules needed to run 'HTMLmenu.py' on path:
['F:\\SYSCON\\WTS\\HTMLmenu\\build\\bdist.win32\\winexe\\lib\\Python22\\Lib\\sit
e-packages', '', 'F:\\Larry\\Python', 'C:\\Python22\\Lib\\site-packages\\Pythonw
in', 'C:\\Python22\\Lib\\site-packages\\win32', 'C:\\Python22\\Lib\\site-package
s\\win32\\lib', 'C:\\Python22\\Lib\\site-packages', 'C:\\Python22\\DLLs', 'C:\\P
ython22\\lib', 'C:\\Python22\\lib\\lib-tk', 'C:\\Python22', 'C:\\Python22\\lib\\
site-packages\\HTMLgen', 'F:\\Larry\\Python\\Library', 'C:\\Python22\\lib\\site-
packages\\PIL', 'C:\\Python22\\lib\\site-packages\\dynwin', 'C:\\Python22\\lib\\
site-packages\\npstruct', 'C:\\Python22\\lib\\site-packages\\wxPython']
error: 2.4.2.4: No such file or directory

The only thing that I can think of is that perhaps I've upgraded my
wxWindows version. I checked and 2.4.2.4 is the version, but I don't
know why py2exe is looking for such a directory.

Anybody out there have a clue?

it could have something to do ./site-packages/wx.pth

Stephen
 
T

Thomas Heller

Larry Bates said:
I had occasion to look back at a project I did over a year ago
and needed to make one small change. I use py2exe to package
it for distribution via Inno Setup. After making my change
I tried to run my setup script that worked fine before and
get the following message:

F:\SYSCON\WTS\HTMLmenu>python HTMLmenuSetup.py py2exe -w
running py2exe
running build
running build_scripts
not copying HTMLmenu.py (up-to-date)
running install_scripts
not copying build\scripts-2.2\HTMLmenu.py (output up-to-date)
+----------------------------------------------------
| Processing script HTMLmenu.py with py2exe-0.3.3
+----------------------------------------------------
Searching modules needed to run 'HTMLmenu.py' on path:
['F:\\SYSCON\\WTS\\HTMLmenu\\build\\bdist.win32\\winexe\\lib\\Python22\\Lib\\sit
e-packages', '', 'F:\\Larry\\Python', 'C:\\Python22\\Lib\\site-packages\\Pythonw
in', 'C:\\Python22\\Lib\\site-packages\\win32', 'C:\\Python22\\Lib\\site-package
s\\win32\\lib', 'C:\\Python22\\Lib\\site-packages', 'C:\\Python22\\DLLs', 'C:\\P
ython22\\lib', 'C:\\Python22\\lib\\lib-tk', 'C:\\Python22', 'C:\\Python22\\lib\\
site-packages\\HTMLgen', 'F:\\Larry\\Python\\Library', 'C:\\Python22\\lib\\site-
packages\\PIL', 'C:\\Python22\\lib\\site-packages\\dynwin', 'C:\\Python22\\lib\\
site-packages\\npstruct', 'C:\\Python22\\lib\\site-packages\\wxPython']
error: 2.4.2.4: No such file or directory

The only thing that I can think of is that perhaps I've upgraded my
wxWindows version. I checked and 2.4.2.4 is the version, but I don't
know why py2exe is looking for such a directory.

Old versions of wxWindows put an entry in the registry under the
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.x\Modules key. This
registry entry is (was) used to extend the Python path, but wxWindows
used it to register it's version number. You should try to remove this
entry and run py2exe again.

Thomas
 
L

Larry Bates

Thomas,

Right on the mark. Thanks for the help.

Larry Bates


Thomas said:
I had occasion to look back at a project I did over a year ago
and needed to make one small change. I use py2exe to package
it for distribution via Inno Setup. After making my change
I tried to run my setup script that worked fine before and
get the following message:

F:\SYSCON\WTS\HTMLmenu>python HTMLmenuSetup.py py2exe -w
running py2exe
running build
running build_scripts
not copying HTMLmenu.py (up-to-date)
running install_scripts
not copying build\scripts-2.2\HTMLmenu.py (output up-to-date)
+----------------------------------------------------
| Processing script HTMLmenu.py with py2exe-0.3.3
+----------------------------------------------------
Searching modules needed to run 'HTMLmenu.py' on path:
['F:\\SYSCON\\WTS\\HTMLmenu\\build\\bdist.win32\\winexe\\lib\\Python22\\Lib\\sit
e-packages', '', 'F:\\Larry\\Python', 'C:\\Python22\\Lib\\site-packages\\Pythonw
in', 'C:\\Python22\\Lib\\site-packages\\win32', 'C:\\Python22\\Lib\\site-package
s\\win32\\lib', 'C:\\Python22\\Lib\\site-packages', 'C:\\Python22\\DLLs', 'C:\\P
ython22\\lib', 'C:\\Python22\\lib\\lib-tk', 'C:\\Python22', 'C:\\Python22\\lib\\
site-packages\\HTMLgen', 'F:\\Larry\\Python\\Library', 'C:\\Python22\\lib\\site-
packages\\PIL', 'C:\\Python22\\lib\\site-packages\\dynwin', 'C:\\Python22\\lib\\
site-packages\\npstruct', 'C:\\Python22\\lib\\site-packages\\wxPython']
error: 2.4.2.4: No such file or directory

The only thing that I can think of is that perhaps I've upgraded my
wxWindows version. I checked and 2.4.2.4 is the version, but I don't
know why py2exe is looking for such a directory.


Old versions of wxWindows put an entry in the registry under the
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.x\Modules key. This
registry entry is (was) used to extend the Python path, but wxWindows
used it to register it's version number. You should try to remove this
entry and run py2exe again.

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top