On 11 Nov, 2012, at 23:26, Alex Honeywell <alex.honeyw...@gmail.com> wrote:

> I've got my app successfully bundled and built, but when I try to launch it 
> from Finder I get "snakewatch: Error" and nothing else except "exited with 
> error: 255" in Console.
> 
> When I run the binary from Terminal instead, I get
> 
> Traceback (most recent call last):
>   File 
> "/Volumes/Data/Development/snakewatch/dist/snakewatch.app/Contents/Resources/__boot__.py",
>  line 7, in <module>
>     _reset_sys_path()
>   File 
> "/Volumes/Data/Development/snakewatch/dist/snakewatch.app/Contents/Resources/__boot__.py",
>  line 4, in _reset_sys_path
>     resources = os.environ['RESOURCEPATH']
>   File "UserDict.pyc", line 23, in __getitem__
> KeyError: 'RESOURCEPATH'
> 2012-11-11 17:18:07.567 snakewatch[92013:707] snakewatch Error
> 
> If I run "RESOURCEPATH=$(pwd)/Resources MacOS/snakewatch" I get
> 
> Traceback (most recent call last):
>   File 
> "/Volumes/Data/Development/snakewatch/dist/snakewatch.app/Contents/Resources/__boot__.py",
>  line 316, in <module>
>     _run()
>   File 
> "/Volumes/Data/Development/snakewatch/dist/snakewatch.app/Contents/Resources/__boot__.py",
>  line 304, in _run
>     argv0 = os.path.basename(os.environ['ARGVZERO'])
>   File "UserDict.pyc", line 23, in __getitem__
> KeyError: 'ARGVZERO'
> 
> and if I run "RESOURCEPATH=$(pwd)/Resources ARGVZERO='' MacOS/snakewatch" it 
> launches fine.

This appears to be the same problem as 
<https://bitbucket.org/ronaldoussoren/py2app/issue/81/env-var-argvzero-resourcepath-not-defined>.
  

Do you use a framework build of python or a basic shared library build 
("--enable-shared")?

Ronald
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to