Error with setup.py develop [2.2 Unstable]

39 views
Skip to first unread message

Mengu

unread,
May 22, 2012, 1:56:19 PM5/22/12
to TurboGears
hi,

i have created a fresh virtual environment and did a clean install via
http://unstable.tg.gy

i created a test project with "paster quickstart -n -s -j appname" and
then i ran a "python setup.py develop". this is the output:
http://pastebin.com/XaeVUqFP

Alessandro Molina

unread,
May 22, 2012, 3:14:21 PM5/22/12
to turbo...@googlegroups.com
That is sadly a know issue in Python2.7
multiprocessing and logging don't coexist well.

It should not cause any effect as it happens at interpreter shutdown
after everything has been done.
In the case of TurboGears2 it is caused by the setup script of
tw2.forms which imports multiprocessing and logging.

You can simply ignore it or quickstart with: "paster quickstart -n -s
-j --enable-tw1 quickstore"

I'll look for a workaround with ToscaWidgets guys as soon as possible,
in the mean time it can just be ignored.
> --
> You received this message because you are subscribed to the Google Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
>

Alessandro Molina

unread,
May 22, 2012, 3:41:11 PM5/22/12
to turbo...@googlegroups.com
It's just an hack, but release 20120522 provides a quickstart change
that avoids the crash.
Quickstarting again the project on a virtual environment created with
that release should cause the crash anymore when doing setup.py
develop.

For people that use 2.1.5 with ToscaWidgets2 they can work around the
issue by placing at the head of their project setup.py:

try:
import logging
import multiprocessing
except:
pass

Mengu

unread,
May 23, 2012, 8:49:56 AM5/23/12
to TurboGears
thanks alessandro.

this seems to be fixed.

On May 22, 10:41 pm, Alessandro Molina <alessandro.mol...@gmail.com>
wrote:
> It's just an hack, but release 20120522 provides a quickstart change
> that avoids the crash.
> Quickstarting again the project on a virtual environment created with
> that release should cause the crash anymore when doing setup.py
> develop.
>
> For people that use 2.1.5 with ToscaWidgets2 they can work around the
> issue by placing at the head of their project setup.py:
>
> try:
>     import logging
>     import multiprocessing
> except:
>     pass
>
> On Tue, May 22, 2012 at 9:14 PM, Alessandro Molina
>
>
>
>
>
>
>
> <alessandro.mol...@gmail.com> wrote:
> > That is sadly a know issue in Python2.7
> > multiprocessing and logging don't coexist well.
>
> > It should not cause any effect as it happens at interpreter shutdown
> > after everything has been done.
> > In the case of TurboGears2 it is caused by the setup script of
> > tw2.forms which imports multiprocessing and logging.
>
> > You can simply ignore it or quickstart with: "paster quickstart -n -s
> > -j --enable-tw1 quickstore"
>
> > I'll look for a workaround with ToscaWidgets guys as soon as possible,
> > in the mean time it can just be ignored.
>
Reply all
Reply to author
Forward
0 new messages