Back in August I was able to build a working web2py_no_console.exe 
following your instructions, but not anymore.
Now the build is still successful but the resulting web2py_no_console.exe 
errors out when option -t (taskbar) is passed on the command line

start "" web2py_no_console.exe -i 127.0.0.1 -a "<recycle>" -f "%CD%" -t

web2py_no_console.exe.log
Traceback (most recent call last):
  File "web2py.py", line 33, in <module>
  File "gluon\widget.pyc", line 1220, in start
  File "gluon\widget.pyc", line 323, in __init__
NameError: global name 'contrib' is not defined

gluon\widget.py line 322-323
        if options.taskbar:
            import gluon.contrib.taskbar_widget

library.zip does include gluon\contrib\taskbar_widget.py
I noticed a comment on line 17 of gluon\main.py, uncommented the line and 
rebuilt with py2exe to no avail, I still get the same error message.
Any ideas of how to fix this issue? I need to run web2py_no_console.exe -t
TIA

On Friday, August 16, 2013 8:55:20 AM UTC+2, Niphlod wrote:
>
>
> You download py2exe, go to the web2py source folder, issue python 
> setup_exe.py py2exe and wait.
>
> With python 2.5, there are no "subtle" issues with the archive that 
> results.
> However, with python >= 2.6, you should ship MSVCR90.dll with it to make 
> it work (that's true for every python binary you'll ever build): make sure 
> that you have rights to redistribute it if you're planning to make your own 
> binary.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to