Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > unexpected syntax errors

Thread Tools

unexpected syntax errors

Robin Becker
Posts: n/a
A user is getting this error

> New issue 8: bad raise syntax
> ........
> File "/usr/lib/python2.7/site-packages/", line 16, in <module>
> from import renderPDF
> File "/usr/lib64/python2.7/site-packages/reportlab/graphics/", line 168
> raise ValueError, 'bad value for textAnchor '+str(text_anchor)
> ^
> SyntaxError: invalid syntax

however, I believe that this older syntax is allowed in python 2.7. We've had
other issues like this raised from various distros which are apparently making
changes to 2.7 which change the external behaviour eg spelling corrections to
attribute names. Could this be one of those?
Robin Becker

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: bash: syntax error near unexpected token Benjamin Kaplan Python 1 08-17-2010 06:59 PM
why does catching errors that aren't thrown give syntax errors? yawnmoth Java 97 02-27-2009 12:07 AM
syntax error near unexpected token `TO_CHAR(L' aemi Java 2 03-02-2007 06:31 AM
syntax error near unexpected token `<bigaf>' - AIX C++ Application Porting from 32 bit to 64 bit C++ 5 12-01-2005 08:03 PM
Errors, errors, errors Mark Goldin ASP .Net 2 01-17-2004 08:05 PM