[BangPypers] py2exe with pmw...help needed

sudhakar s ssquery at gmail.com
Fri Jun 26 06:37:03 CEST 2009


Hi Everyone,   This is sudhakar,i want to covert my pmw application
   into an executable on Windows and ".dmg or .app" on Mac.
   while i was trying i am able to convert but unable to run my application.

   After coverting Menubar.py into Menubar.exe using py2exe and when i run
it i get the ERROR:

     C:\Python25\dist>MenuBar.exe
 Traceback (most recent call last):
  File "MenuBar.py", line 160, in <module>
  File "Pmw\Pmw_1_3\lib\PmwLoader.pyc", line 134, in __getattr__

  File "Pmw\Pmw_1_3\lib\PmwLoader.pyc", line 113, in _initialise

 IOError: [Errno 2] No such file or directory:
'C:\\Python25\\dist\\.\\Pmw\\Pmw_1_3\\lib\\Pmw.def'

Please help me how to solve the error and make an executable...

I was using the setup.py script as below:

from distutils.core import setup
import py2exe


setup(
console=['MenuBar.py'],
options={
'py2exe': {
'packages':['Pmw', 'Pmw.Pmw_1_3',
                                  'Pmw.Pmw_1_3.lib',],
'skip_archive': True,
'dll_excludes': ['MSVCR71.dll']
}
}
)


  With Regards
  S Sudhakar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20090626/f4c4382e/attachment.htm>


More information about the BangPypers mailing list