This change causes an error in paste.wsgiwrappers module.
>>> import paste.wsgiwrappers
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/foo/lib/python2.5/site-packages/Paste-1.7.3.1-
py2.5.egg/paste/wsgiwrappers.py", line 19, in <module>
from paste.util.mimeparse import desired_matches
ImportError: cannot import name desired_matches
I can't find the desired_matches function in original package (http://
code.google.com/p/mimeparse/).
It seems to be added in Paste, isn't it ?
Junya Hayashi
On 4月1日, 午前2:52, Ian Bicking <ianbick...@gmail.com> wrote:
> Updated in tip. (I also fixed the hg repo:http://bitbucket.org/ianb/paste/
> )
>
>
>
> On Mon, Mar 29, 2010 at 9:13 AM, GC <gtcopel...@gmail.com> wrote:
> > I recently have been running with TG2.1b2. After running I've noticed
> > some odd exceptions being recorded.
>
> > File "/home/gearsoft/webapps/tg2env/lib/python2.6/site-packages/
> > Paste-1.7.2-py2.6.egg/paste/util/mimeparse.py", line 108, in
> > best_match
> > parsed_header = [parse_media_range(r) for r in
> > header.split(",")]
> > File "/home/gearsoft/webapps/tg2env/lib/python2.6/site-
> > packages/Paste-1.7.2-py2.6.egg/paste/util/mimeparse.py", line 52, in
> > parse_media_range
> > (type, subtype, params) = parse_mime_type(range)
> > File "/home/gearsoft/webapps/tg2env/lib/python2.6/site-
> > packages/Paste-1.7.2-py2.6.egg/paste/util/mimeparse.py", line 35, in
> > parse_mime_type
> > (type, subtype) = parts[0].split("/")
> > ValueError: too many values to unpack
> > ----------------------------------------
>
> > So I looked for the author of mimeparse, Joe Gregorio, and reported
> > the issue to him. His response is as follows, "This looks like a
> > problem with an old version of mimeparse.py, there is now explicit
> > handling for a single "*" wildcard in mimeparse. I also tried the
> > accept header in the example below against trunk and it works fine. "
>
> > So it appears the readily provided paste package has a stale version
> > of mimeparse. I reported this to the TG guys and they suggested I
> > report it here so as a fixed paste package can be made available
> > whereby TG2.1 will then reference the latest package.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Paste Users" group.
> > To post to this group, send email to paste-users@???.
> > To unsubscribe from this group, send email to
> > paste-users+unsubscribe@???<paste-users%2Bunsubscribe@???>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/paste-users?hl=en.
>
> --
> Ian Bicking | http://blog.ianbicking.org | http://twitter.com/ianbicking
--
You received this message because you are subscribed to the Google Groups "Paste Users" group.
To post to this group, send email to paste-users@???.
To unsubscribe from this group, send email to paste-users+unsubscribe@???.
For more options, visit this group at http://groups.google.com/group/paste-users?hl=en.