ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> py2exe-users
py2exe-users
Re: [Py2exe-users] GUI for py2exe
by Bruno THOORENS other posts by this author
Aug 1 2006 5:45PM messages near this date
Re: [Py2exe-users] GUI for py2exe | Re: [Py2exe-users] GUI for py2exe
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
<head> 
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> 
</head> 
<body bgcolor="#ffffff" text="#000000"> 
<tt> Ray Schumacher a &eacute;crit&nbsp;:</tt>
<blockquote cite="mid6.2.3.4.2.20060801153626.058e8538@blue-cove.com"
 type="cite"> 
  <pre wrap=""> Hi Bruno,

The App starts but when I added the target "pyBuilder.pyw" to build an exe for pyBuilder, I 
got:

C:\Python24\Tools\pyBuilder&gt;python pyBuilder.pyw
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python24\lib\lib-tk\Tkinter.py", line 1345, in __call__
    return self.func(*args)
  File "pyBuilder.pyw", line 378, in buildAll
    os.chdir(os.path.split(__file__)[0])
OSError: [Errno 22] Invalid argument: ''

I attach the generated files. What should I try?

Cheers,
Ray</pre> 
  <pre wrap=""> 
<hr size="4" width="90%"> 
# -*- coding:utf-8 -*-
from distutils.core import setup
import sys,os
sys.argv.append('py2exe')
sys.path.append('C:/Python24/Tools/pyBuilder')
sys.path.append('')

import myPy2exe
setup(
    cmdclass={'py2exe':myPy2exe.MyPy2exe},
    options={
        'py2exe':{

            'dist_dir':os.path.abspath(os.path.join(os.getcwd(),'Builder-Dist')),
            'includes':[],
            'packages':[],
            'excludes':[],
             'tcl_pkg':[],

            'skip_archive':0,
            'compressed':1,
            'optimize':2,
            'ascii':1,
             'bundle_files':3,

             'strip_tcl':0,
        }
    },
    zipfile=None,
    windows=[{'icon_resources': [(0, 'C:\\Python24\\Tools\\pyBuilder\\python.ico')], 'script
': 'C:/Python24/Tools/pyBuilder/pyBuilder.pyw'}],
    console=[],
)
  </pre> 
</blockquote> 
<tt> Try to launch pyBuilder without command-line. Double-click directly
on pyBuilder.py icon.<br> 
Actually I never use command line, I just have tried it and I got this
error.<br> 
<br> 
I'm going to fix it in a while...<br> 
<br> 
thanks<br> 
</tt> 
</body> 
</html> 
Thread:
Bruno THOORENS
Bruno THOORENS
Bruno THOORENS
Bruno THOORENS

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved