tg warnings.

1 view
Skip to first unread message

Timuçin Kızılay

unread,
Jan 4, 2010, 4:49:53 AM1/4/10
to turbo...@googlegroups.com
I'm getting some warning messages when running paster serve
------
(tg2env)tim@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?

Dan F

unread,
Jan 4, 2010, 10:36:20 AM1/4/10
to turbo...@googlegroups.com, Timuçin Kızılay

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.

Diez B. Roggisch

unread,
Jan 4, 2010, 3:05:46 PM1/4/10
to turbo...@googlegroups.com
Timuçin Kızılay schrieb:

Using python2.5 would be safer, the TG2-stack isn't guaranteed to run
under 2.6. The above warning is an indication of that.

Diez

Michael Pedersen

unread,
Jan 4, 2010, 4:11:40 PM1/4/10
to turbo...@googlegroups.com
On Mon, Jan 4, 2010 at 3:05 PM, Diez B. Roggisch <de...@web.de> wrote:
Using python2.5 would be safer, the TG2-stack isn't guaranteed to run
under 2.6. The above warning is an indication of that. 

Per the documentation and my own testing, TG2 runs just fine on Python 2.6. Why do you say that?
--
Michael J. Pedersen
My IM IDs: Jabber/pede...@icelus.tzo.com, ICQ/103345809, AIM/pedermj022171
         Yahoo/pedermj2002, MSN/pederm...@hotmail.com

Todd Blanchard

unread,
Jan 4, 2010, 5:38:35 PM1/4/10
to turbo...@googlegroups.com
Yep, seems good.

Diez B. Roggisch

unread,
Jan 5, 2010, 5:30:41 AM1/5/10
to turbo...@googlegroups.com
On Monday 04 January 2010 22:11:40 Michael Pedersen wrote:
> On Mon, Jan 4, 2010 at 3:05 PM, Diez B. Roggisch <de...@web.de> wrote:
> > Using python2.5 would be safer, the TG2-stack isn't guaranteed to run
> > under 2.6. The above warning is an indication of that.
>
> Per the documentation and my own testing, TG2 runs just fine on Python 2.6.
> Why do you say that?

I was under that impression, but I'm happy to hear I stand corrected. At least
then tw isn't py2.6 approved. I don't expect it to break, but the warning for
example can be annoying or even harmful.


Diez

Reply all
Reply to author
Forward
0 new messages