-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/26/2013 06:01 PM, Sergiy Tupchiy wrote: > Hi, Sorry if it's not related question, I am trying to use WebTest lib > with Jython and on the same beginning, during import, I'm getting this > error: > > Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06) [Java > HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_51 Type > "help", "copyright", "credits" or "license" for more information. >>>> import webtest > Traceback (most recent call last): File "<stdin>", line 1, in > <module> File > "/usr/share/java/jython2.5.2/Lib/site-packages/WebTest-2.0.7-py2.5.egg/webtest/__init__.py", > line 9, in <module> from webtest.app import TestApp File > "/usr/share/java/jython2.5.2/Lib/site-packages/WebTest-2.0.7-py2.5.egg/webtest/app.py", > line 331 boundary = b'----------a_BoUnDaRy' + boundary + b'$' ^ > SyntaxError: no viable alternative at input ''----------a_BoUnDaRy'' > > > Does the library actually supports the Jython? And can you help to > solve this particular trouble?
WebTest 2.0 dropped Python 2.5 support. You need to either use the Jython 2.7 beta, or else pin "WebTest < 2.0dev" in your project. Tres - -- =================================================================== Tres Seaver +1 540-429-0999 [email protected] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlIcwiIACgkQ+gerLs4ltQ7FXACfaxL1fXSVMERWDZmurNjGm1Kk TOUAnRFIfak+mjj2eCM+sTdL8RQ7aCbZ =D3h+ -----END PGP SIGNATURE----- -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/groups/opt_out.
