Ouch, ok thank you!  I saw it says on the website "Supports Python 2.6, 2.7 and 
3.3." perhaps add an "only" to the end here to emphasize that statement?

Jens


On Wed, May 21, 2014 at 07:06:43AM +0200, Markus Unterwaditzer wrote:
>  Werkzeug, Flask and Jinja don't support any Python 3 versions lower than 
> 3.3. In other words, they only support 2.x, 3.3 and 3.4.
> 
> -- Markus
> 
> On 21 May 2014 06:48:16 CEST, [email protected] wrote:
> >I've got a working Python 3.2 installation using MacPorts, and have
> >used 
> >Pip successfully in the past.  However, when I tried to install
> >Werkzeug 
> >the list of errors was impressive. I'm sure sure what failed, and how
> >to 
> >being to fix this...
> >
> >Any suggestions?
> >
> >
> >savage@tigger ~ > sudo pip-3.2 install Werkzeug
> >Downloading/unpacking Werkzeug
> >  Downloading Werkzeug-0.9.4.tar.gz (1.1MB): 1.1MB downloaded
> > Running setup.py (path:/private/tmp/pip_build_root/Werkzeug/setup.py) 
> >egg_info for package Werkzeug
> >    
> >    warning: no files found matching '*' under directory 
> >'werkzeug/debug/templates'
> >    warning: no files found matching '*' under directory 'tests'
> >    warning: no previously-included files matching '*.pyc' found under 
> >directory 'docs'
> >    warning: no previously-included files matching '*.pyo' found under 
> >directory 'docs'
> >    warning: no previously-included files matching '*.pyc' found under 
> >directory 'tests'
> >    warning: no previously-included files matching '*.pyo' found under 
> >directory 'tests'
> >    warning: no previously-included files matching '*.pyc' found under 
> >directory 'examples'
> >    warning: no previously-included files matching '*.pyo' found under 
> >directory 'examples'
> >    no previously-included directories found matching 'docs/_build'
> >Installing collected packages: Werkzeug
> >  Running setup.py install for Werkzeug
> >    
> >    warning: no files found matching '*' under directory 
> >'werkzeug/debug/templates'
> >    warning: no files found matching '*' under directory 'tests'
> >    warning: no previously-included files matching '*.pyc' found under 
> >directory 'docs'
> >    warning: no previously-included files matching '*.pyo' found under 
> >directory 'docs'
> >    warning: no previously-included files matching '*.pyc' found under 
> >directory 'tests'
> >    warning: no previously-included files matching '*.pyo' found under 
> >directory 'tests'
> >    warning: no previously-included files matching '*.pyc' found under 
> >directory 'examples'
> >    warning: no previously-included files matching '*.pyo' found under 
> >directory 'examples'
> >    no previously-included directories found matching 'docs/_build'
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/_internal.py",
> >
> >line 31
> >        u"!#$%&'*+-.^_`|~:").encode('ascii')
> >                          ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/contrib/atom.py",
> >
> >line 37
> >        return u'<%s type="xhtml"><div xmlns="%s">%s</div></%s>\n' % \
> >                                                                 ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/contrib/iterio.py",
> >
> >line 56
> >        return first_item + u''.join(iterator)
> >                              ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/contrib/jsrouting.py",
> >
> >line 27
> >        result = u''
> >                   ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/datastructures.py",
> >
> >line 1092
> >        if u'\n' in value or u'\r' in value:
> >               ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/debug/repr.py",
> >
> >line 130
> >        return _add_subclass_info(u''.join(buf), obj, base)
> >                                    ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/debug/tbtools.py",
> >
> >line 60
> >        HEADER = u'''\
> >    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> >      "http://www.w3.org/TR/html4/loose.dtd";>
> >    <html>
> >      <head>
> >        <title>%(title)s // Werkzeug Debugger</title>
> >        <link rel="stylesheet" 
> >href="?__debugger__=yes&amp;cmd=resource&amp;f=style.css"
> >type="text/css">
> >     <!-- We need to make sure this has a favicon so that the debugger 
> >does not by
> >         accident trigger a request to /favicon.ico which might change 
> >the application
> >             state. -->
> >        <link rel="shortcut icon" 
> >href="?__debugger__=yes&amp;cmd=resource&amp;f=console.png">
> >        <script type="text/javascript" 
> >src="?__debugger__=yes&amp;cmd=resource&amp;f=jquery.js"></script>
> >        <script type="text/javascript" 
> >src="?__debugger__=yes&amp;cmd=resource&amp;f=debugger.js"></script>
> >        <script type="text/javascript">
> >          var TRACEBACK = %(traceback_id)d,
> >              CONSOLE_MODE = %(console)s,
> >              EVALEX = %(evalex)s,
> >              SECRET = "%(secret)s";
> >        </script>
> >      </head>
> >      <body>
> >        <div class="debugger">
> >    '''
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >       ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/exceptions.py",
> >
> >line 111
> >        return u'<p>%s</p>' % escape(self.description)
> >                          ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/routing.py",
> >
> >line 659
> >        u''.join(regex_parts),
> >          ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testapp.py",
> >
> >line 133
> >        TEMPLATE = u'''\
> >    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> >      "http://www.w3.org/TR/html4/loose.dtd";>
> >    <title>WSGI Information</title>
> >    <style type="text/css">
> >      @import url(http://fonts.googleapis.com/css?family=Ubuntu);
> >    
> >     body       { font-family: 'Lucida Grande', 'Lucida Sans Unicode', 
> >'Geneva',
> >                'Verdana', sans-serif; background-color: white; color: 
> >#000;
> >                   font-size: 15px; text-align: center; }
> >      #logo      { float: right; padding: 0 0 10px 10px; }
> >    div.box    { text-align: left; width: 45em; margin: auto; padding: 
> >50px 0;
> >                   background-color: white; }
> >     h1, h2     { font-family: 'Ubuntu', 'Lucida Grande', 'Lucida Sans 
> >Unicode',
> >                'Geneva', 'Verdana', sans-serif; font-weight: normal; }
> >      h1         { margin: 0 0 30px 0; }
> >      h2         { font-size: 1.4em; margin: 1em 0 0.5em 0; }
> >     table      { width: 100%%; border-collapse: collapse; border: 1px 
> >solid #AFC5C9 }
> >      table th   { background-color: #AFC1C4; color: white; font-size: 
> >0.72em;
> >                 font-weight: normal; width: 18em; vertical-align: top;
> >                   padding: 0.5em 0 0.1em 0.5em; }
> > table td   { border: 1px solid #AFC5C9; padding: 0.1em 0 0.1em 0.5em; 
> >}
> >  code       { font-family: 'Consolas', 'Monaco', 'Bitstream Vera Sans 
> >Mono',
> >                   monospace; font-size: 0.7em; }
> >      ul li      { line-height: 1.5em; }
> >     ul.path    { font-size: 0.7em; margin: 0 -30px; padding: 8px 30px;
> >                   list-style: none; background: #E8EFF0; }
> >      ul.path li { line-height: 1.6em; }
> >      li.virtual { color: #999; text-decoration: underline; }
> >      li.exp     { background: white; }
> >    </style>
> >    <div class="box">
> >      <img src="?resource=logo" id="logo" alt="[The Werkzeug Logo]" />
> >      <h1>WSGI Information</h1>
> >      <p>
> >    This page displays all available information about the WSGI server 
> >and
> >        the underlying Python interpreter.
> >      <h2 id="python-interpreter">Python Interpreter</h2>
> >      <table>
> >        <tr>
> >          <th>Python Version
> >          <td>%(python_version)s
> >        <tr>
> >          <th>Platform
> >          <td>%(platform)s [%(os)s]
> >        <tr>
> >          <th>API Version
> >          <td>%(api_version)s
> >        <tr>
> >          <th>Byteorder
> >          <td>%(byteorder)s
> >        <tr>
> >          <th>Werkzeug Version
> >          <td>%(werkzeug_version)s
> >      </table>
> >      <h2 id="wsgi-environment">WSGI Environment</h2>
> >      <table>%(wsgi_env)s</table>
> >      <h2 id="installed-eggs">Installed Eggs</h2>
> >      <p>
> >        The following python packages were installed on the system as
> >        Python eggs:
> >      <ul>%(python_eggs)s</ul>
> >      <h2 id="sys-path">System Path</h2>
> >      <p>
> >    The following paths are the current contents of the load path.  The
> >    following entries are looked up for Python packages.  Note that not
> >     all items in this path are folders.  Gray and underlined items are
> >   entries pointing to invalid resources or used by custom import hooks
> >        such as the zip importer.
> >      <p>
> >       Items with a bright background were expanded for display from a 
> >relative
> >    path.  If you encounter such paths in the output you might want to 
> >check
> >        your setup as relative paths are usually problematic in 
> >multithreaded
> >        environments.
> >      <ul class="path">%(sys_path)s</ul>
> >    </div>
> >    '''
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >    
> >       ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/contrib/iterio.py",
> >
> >line 87
> >        io = IterIO([u"Hello", u"World", u"1", u"2", u"3"])
> >                            ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/contrib/wrappers.py",
> >
> >line 82
> >        resp.set_data(u'Hällo Wörld')
> >                                    ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/datastructures.py",
> >
> >line 610
> >        h[:] = [(k, v) for k, v in h if k.startswith(u'X-')]
> >                                                         ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/debug.py",
> >
> >line 25
> >        self.assert_equal(debug_repr([]), u'[]')
> >                                              ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/formparser.py",
> >
> >line 56
> >        self.assert_strict_equal(req.form['foo'], u'Hello World')
> >                                                               ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/http.py",
> >
> >line 218
> >        self.assert_equal(headers2, datastructures.Headers([(u'Date', 
> >now)]))
> >                                                                   ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/internal.py",
> >
> >line 57
> >        response = Response([u'Hällo Wörld'])
> >                                            ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/routing.py",
> >
> >line 88
> >        environ = create_environ(u'/лошадь')
> >                                           ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/security.py",
> >
> >line 28
> >        hash2 = generate_password_hash(u'default', method='sha1')
> >                                                ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/test.py",
> >
> >line 143
> >        self.assert_strict_equal(req.url, u'http://localhost/')
> >                                                             ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/urls.py",
> >
> >line 30
> >        self.assert_strict_equal(urls.url_quote(u'\xf6\xe4\xfc'), 
> >'%C3%B6%C3%A4%C3%BC')
> >                                                              ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/utils.py",
> >
> >line 31
> >        resp = utils.redirect(u'/füübär')
> >                                        ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/wrappers.py",
> >
> >line 83
> >        self.assert_strict_equal(response['args'], MultiDict([('foo', 
> >u'bar'), ('foo', u'hehe')]))
> >                                                                      ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/testsuite/wsgi.py",
> >
> >line 36
> >    with open(path.join(test_dir, to_native(u'äöü', 'utf-8')), 'w') as 
> >test_file:
> >                                                        ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/urls.py",
> >
> >line 475
> >        s = s.replace(u'+', u' ')
> >                         ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/utils.py",
> >
> >line 334
> >        return u''
> >                 ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/wrappers.py",
> >
> >line 541
> >        return self.path + u'?' + to_unicode(self.query_string, 
> >self.url_charset)
> >                              ^
> >    SyntaxError: invalid syntax
> >    
> >      File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/wsgi.py",
> >
> >line 367
> >        parts = netloc.split(u'@', 1)[-1].split(u':', 1)
> >                                ^
> >    SyntaxError: invalid syntax
> >    
> >Successfully installed Werkzeug
> >Cleaning up...
> >savage@tigger ~ > python
> >Python 3.2.5 (default, May 25 2013, 05:42:14) 
> >[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> >Type "help", "copyright", "credits" or "license" for more information.
> >>>> from werkzeug.wrappers import Request, Response
> >Traceback (most recent call last):
> >  File "<stdin>", line 1, in <module>
> >  File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/__init__.py",
> >
> >line 154, in <module>
> >    __import__('werkzeug.exceptions')
> >  File 
> >"/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/werkzeug/exceptions.py",
> >
> >line 111
> >    return u'<p>%s</p>' % escape(self.description)
> >                      ^
> >SyntaxError: invalid syntax
> >
> >-- 
> >You received this message because you are subscribed to the Google
> >Groups "pocoo-libs" group.
> >To unsubscribe from this group and stop receiving emails from it, send
> >an email to [email protected].
> >To post to this group, send email to [email protected].
> >Visit this group at http://groups.google.com/group/pocoo-libs.
> >For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "pocoo-libs" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/pocoo-libs/fTdmVCAOAOg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pocoo-libs.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to