SAValidation & Python 3

84 views
Skip to first unread message

Foo Lim

unread,
May 18, 2016, 5:16:35 PM5/18/16
to BlazeLibs
Hi,

I'm trying to use SAValidation https://pypi.python.org/pypi/SAValidation/ for python 3. When I install it, I get these errors. Probably because python 3's syntax has changed. Any guidance on how to get it to install ok in Python 3?

Thanks.

Errors:

Running SAValidation-0.3.2/setup.py -q bdist_egg --dist-dir /var/folders/bm/7h35x10516xb5426fwm1z94r0000gn/T/easy_install-ml8q9nmh/SAValidation-0.3.2/egg-dist-tmp-krbtil1s

warning: no previously-included files matching '*.pyc' found under directory 'savalidation'

  File "build/bdist.macosx-10.6-intel/egg/savalidation/__init__.py", line 124

    except formencode.Invalid, e:

                             ^

SyntaxError: invalid syntax


  File "build/bdist.macosx-10.6-intel/egg/savalidation/tests/test_examples.py", line 38

    except ValidationError, e:

                          ^

SyntaxError: invalid syntax


  File "build/bdist.macosx-10.6-intel/egg/savalidation/tests/test_refactor.py", line 102

    except ValidationError, e:

                          ^

SyntaxError: invalid syntax


  File "build/bdist.macosx-10.6-intel/egg/savalidation/tests/test_unit.py", line 101

    except ValidationError, e:

                          ^

SyntaxError: invalid syntax


  File "build/bdist.macosx-10.6-intel/egg/savalidation/tests/test_validators.py", line 20

    except ValidationError, e:

                          ^

SyntaxError: invalid syntax


  File "build/bdist.macosx-10.6-intel/egg/savalidation/validators.py", line 175

    except ValueError, e:

                     ^

SyntaxError: invalid syntax


creating /Users/blah/dev/lease-platform-2/env/lib/python3.5/site-packages/SAValidation-0.3.2-py3.5.egg

Extracting SAValidation-0.3.2-py3.5.egg to /Users/blah/dev/lease-platform-2/env/lib/python3.5/site-packages

  File "/Users/blah/dev/lease-platform-2/env/lib/python3.5/site-packages/SAValidation-0.3.2-py3.5.egg/savalidation/__init__.py", line 124

    except formencode.Invalid, e:

                             ^

SyntaxError: invalid syntax


  File "/Users/blah/dev/lease-platform-2/env/lib/python3.5/site-packages/SAValidation-0.3.2-py3.5.egg/savalidation/validators.py", line 175

    except ValueError, e:

                     ^

SyntaxError: invalid syntax


  File "/Users/blah/dev/lease-platform-2/env/lib/python3.5/site-packages/SAValidation-0.3.2-py3.5.egg/savalidation/tests/test_examples.py", line 38

    except ValidationError, e:

                          ^

SyntaxError: invalid syntax


  File "/Users/blah/dev/lease-platform-2/env/lib/python3.5/site-packages/SAValidation-0.3.2-py3.5.egg/savalidation/tests/test_refactor.py", line 102

    except ValidationError, e:

                          ^

SyntaxError: invalid syntax


  File "/Users/blah/dev/lease-platform-2/env/lib/python3.5/site-packages/SAValidation-0.3.2-py3.5.egg/savalidation/tests/test_unit.py", line 101

    except ValidationError, e:

                          ^

SyntaxError: invalid syntax


  File "/Users/blah/dev/lease-platform-2/env/lib/python3.5/site-packages/SAValidation-0.3.2-py3.5.egg/savalidation/tests/test_validators.py", line 20

    except ValidationError, e:

                          ^

SyntaxError: invalid syntax

Reply all
Reply to author
Forward
0 new messages