SyntaxError on python 3.5

133 views
Skip to first unread message

Sandro Tosi

unread,
Aug 16, 2016, 3:31:44 PM8/16/16
to Python dBase
Hey there,
i got this error when installing dbf on python 3.5:

running install_scripts
File "/usr/lib/python3.5/dist-packages/dbf/_index.py", line 14
'\x00'*500) # and no indices
^
SyntaxError: invalid syntax

File "/usr/lib/python3.5/dist-packages/dbf/ver_2.py", line 7598
exec function in g
^
SyntaxError: Missing parentheses in call to 'exec'

Ethan Furman

unread,
Aug 16, 2016, 3:33:24 PM8/16/16
to python...@googlegroups.com
Those a Python 2 files; you can ignore the errors (dbf should still be installed).

--
~Ethan~

Sandro Tosi

unread,
Aug 16, 2016, 3:56:30 PM8/16/16
to Python dBase
i guess then they should not be installed when running setup.py install with python3

Sandro Tosi

unread,
Aug 16, 2016, 4:15:45 PM8/16/16
to Python dBase
actually the _index.py issue applies also to python2:

  File "/usr/lib/python2.7/dist-packages/dbf/_index.py", line 14

   '\x00'*500)                             # and no indices
        ^
SyntaxError: invalid syntax

Ethan Furman

unread,
Aug 16, 2016, 4:19:38 PM8/16/16
to python...@googlegroups.com
On 08/16/2016 12:56 PM, Sandro Tosi wrote:

> i guess then they should not be installed when running setup.py install with python3

I'm working on a single code-base version so these types of issues go away.

--
~Ethan~

Ethan Furman

unread,
Aug 16, 2016, 4:20:23 PM8/16/16
to python...@googlegroups.com
On 08/16/2016 01:15 PM, Sandro Tosi wrote:

> actually the _index.py issue applies also to python2:
>
> File "/usr/lib/python2.7/dist-packages/dbf/_index.py", line 14
> '\x00'*500) # and no indices
> ^
> SyntaxError: invalid syntax

This file isn't used. I'll make sure it's removed in the next release.

--
~Ethan~

Sandro Tosi

unread,
Aug 16, 2016, 6:04:10 PM8/16/16
to python...@googlegroups.com
that's good news, thanks!! May i ask when do you foresee to release a
new version? that's just because I'm in the process of updating the
debian package so i'd like to understand if i can wait for a new
release

>
>
> --
> ~Ethan~
>
> --
>
> --- You received this message because you are subscribed to a topic in the
> Google Groups "Python dBase" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-dbase/96rx2xmCG4w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-dbase...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi

Ethan Furman

unread,
Aug 16, 2016, 6:13:37 PM8/16/16
to python...@googlegroups.com
On 08/16/2016 03:03 PM, Sandro Tosi wrote:
> On Tue, Aug 16, 2016 at 9:20 PM, Ethan Furman wrote:

>> This file isn't used. I'll make sure it's removed in the next release.
>
> that's good news, thanks!! May i ask when do you foresee to release a
> new version? that's just because I'm in the process of updating the
> debian package so i'd like to understand if i can wait for a new
> release

Depends. How much time do I have? ;)

--
~Ethan~

Sandro Tosi

unread,
Aug 16, 2016, 6:20:04 PM8/16/16
to python...@googlegroups.com
hehe there's really no rush here :)
Reply all
Reply to author
Forward
0 new messages