[Tutor] Trying to read dBase files

Alan Gauld alan.gauld at btinternet.com
Wed Mar 12 10:13:14 CET 2014


On 11/03/14 20:09, Dave Angel wrote:
>   Alan Gauld <alan.gauld at btinternet.com> Wrote in message:

>>> I am using Python 3.3.  I did some google searches and found something
>>> called dbfpy to read dbase, so I downloaded and installed it.
>>>
>>>     File "C:\Python33\lib\site-packages\dbfpy\dbf.py", line 260
>>>       print repr(_rec)
>>>                ^
>>> SyntaxError: invalid syntax
>>
>
> Which is in the dbfpy code.

Oops, good catch Dave, I didn't notice the file name...

So yes it looks like the OP needs a v3 version of
the dbfpy package. Or a different approach.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list