List Info

Thread: "An unexpected error has occurred during execution of the main script"




"An unexpected error has occurred during execution of the main script"
user name
2006-08-08 20:11:17
On Aug 8, 2006, at 6:57 AM, Michael Glassford wrote:

> I get this error running a py2app alias build (one
built with option
> alias=True) of an application, with the additional
information
> "AttributeError: 'NoneType' object has no
attribute 'endswith'; See  
> the
> Console for a detailed traceback." However, no
additional  
> information is
> written to the console.

There will be a full traceback on the console. This means
either the  
terminal it was started from, or console.log.

> This alias build had been working for a long time. As
far as I know,
> there have been no recent configuration changes that
should cause this
> problem. If I make a non-alias build, it runs as it
should.
>
> As far as I can tell, this error happens before
site.py,  
> __boot.py__ are
> executed: if I put print statements at the top of these
files, nothing
> is printed. I suppose that's what "during
execution of the main  
> script"
> means?

No that's not what it means. Chances are, you just aren't
looking for  
the print output in the right place.

> So my question is, how do I debug what's causing this
problem?

Figure out where the stdout is going. I can't help you
without a  
reproducible example or at least a traceback to look at.
Also,  
versions are useful information too (OS, Python, py2app).

-bob

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIGpython.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
"An unexpected error has occurred during execution of the main script"
user name
2006-08-08 20:42:59
Bob Ippolito wrote:
> On Aug 8, 2006, at 6:57 AM, Michael Glassford wrote:
> 
>> I get this error running a py2app alias build (one
built with option
>> alias=True) of an application, with the additional
information
>> "AttributeError: 'NoneType' object has no
attribute 'endswith'; See  
>> the
>> Console for a detailed traceback." However,
no additional  
>> information is
>> written to the console.
> 
> There will be a full traceback on the console. This
means either the  
> terminal it was started from, or console.log.

I figured out my problem. I was opening the Console
application, but 
somehow I had switched it to look at the wrong log file
without 
realizing it (it almost always opens automatically to
console.log, since 
that's the log file I'm almost always interested in).

As I expected, once I was able to look at the traceback it
was easy to 
fix the problem.

Thanks for the reply,

Mike
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIGpython.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
"An unexpected error has occurred during execution of the main script"
user name
2006-08-08 20:42:59
Bob Ippolito wrote:
> On Aug 8, 2006, at 6:57 AM, Michael Glassford wrote:
> 
>> I get this error running a py2app alias build (one
built with option
>> alias=True) of an application, with the additional
information
>> "AttributeError: 'NoneType' object has no
attribute 'endswith'; See  
>> the
>> Console for a detailed traceback." However,
no additional  
>> information is
>> written to the console.
> 
> There will be a full traceback on the console. This
means either the  
> terminal it was started from, or console.log.

I figured out my problem. I was opening the Console
application, but 
somehow I had switched it to look at the wrong log file
without 
realizing it (it almost always opens automatically to
console.log, since 
that's the log file I'm almost always interested in).

As I expected, once I was able to look at the traceback it
was easy to 
fix the problem.

Thanks for the reply,

Mike

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIGpython.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )