Pylons broken dependency

113 views
Skip to first unread message

Mike Orr

unread,
Mar 12, 2013, 5:22:31 PM3/12/13
to pylons-...@googlegroups.com
Interesting that we've just been discussing making a frozen Pylons
release with all its dependencies because something new has just
broken. When I deployed an application to a new server and it raised
an exception, a second exception occurred in WebError and masked the
first one. It may not be in WebError itself but in
distribute/setuptools, because the secondary error was "KeyError:
setuptools". It broke the interactive traceback completely; I just get
the low-level Paste "Internal Server Error" (in teletype font).

So I made a requirements.txt from the slightly-older versions on my
workstation ("pip freeze >requirements.txt"), installed that on the
server ("pip install -r requirements.txt"), and the problem went away.

I'm leaving for PyCon tomorrow morning so I won't be able to follow up
on this until I get back, but I wanted to let people know in case it
happens to you in the meantime.

And maybe somebody who's currently using Pylons can try to reproduce
this. Make a new virtualenv, install an existing Pylons application
into it, and trigger an exception in one of the actions. The specific
exception I had was trying to access a PostgreSQL table that didn't
exist in the reflected metadata (because the table in fact was
missing). But I think it would happen with any exception that would
normally trigger the interactive traceback.

--
Mike Orr <slugg...@gmail.com>

Michael Merickel

unread,
Mar 12, 2013, 5:38:20 PM3/12/13
to Pylons
Maybe you can just publish a working requirements.txt file and recommend that people upgrade packages from there at their own peril.



--
Mike Orr <slugg...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To post to this group, send email to pylons-...@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



Mike Orr

unread,
Mar 12, 2013, 11:36:40 PM3/12/13
to pylons-...@googlegroups.com
OK, here it is.
--
Mike Orr <slugg...@gmail.com>
requirements.txt
Reply all
Reply to author
Forward
0 new messages