On 1/4/2010 4:49 AM, Timuçin Kızılay wrote:
> I'm getting some warning messages when running paster serve
> ------
> (tg2env)t...@uhura:~/tg2env/Helloworld$ paster serve --reload development.ini
> Starting subprocess with file monitor
> /home/tim/tg2env/lib/python2.6/site-packages/PEAK_Rules-0.5a1.dev_r2582-py2.6.egg/peak/rules/indexing.py:220:
> DeprecationWarning: object.__new__() takes no parameters
> /home/tim/tg2env/lib/python2.6/site-packages/ToscaWidgets-0.9.8-py2.6.egg/tw/core/view.py:223:
> DeprecationWarning: object.__new__() takes no parameters
>    obj = object.__new__(cls, *args, **kw)
> Starting server in PID 5946.
> serving on http://127.0.0.1:8080
> -----------
>
> I'm running Python 2.6 on ubuntu 9.10 and trying the helloworld
> tutorial... Should I worry about those warnings ? is there something
> wrong with my setup?
>
>
>    

I've noticed that warnings can cause problems with modwsgi (at least in 
my version of it).  Warnings are spit out to stderr and this creates an 
internal server error page for me.  So yes, it's at least possible that 
if you're planning to deploy for apache that this would be an annoyance 
there.

The fix is simple enough.  I believe you can just change that line to

obj = object.__new__()

and you're all set.  This really should be fixed in ToscaWidgets though.

--

You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.


Reply via email to