mdickinson / bigfloat

Python wrapper for MPFR, providing high-precision floating-point arithmetic
GNU Lesser General Public License v3.0
41 stars 11 forks source link

doesn't work on python3 #66

Closed keithbriggs closed 9 years ago

keithbriggs commented 10 years ago

kbriggs:~/Downloads/bigfloat-0.3.0a2> sudo python3 setup.py install running install running build running build_py running build_ext running install_lib copying build/lib.linux-x86_64-3.3/bigfloat/mpfr.cpython-33m.so -> /usr/local/lib/python3.3/dist-packages/bigfloat byte-compiling /usr/local/lib/python3.3/dist-packages/bigfloat/test/test_all_.py to testall__.cpython-33.pyc File "/usr/local/lib/python3.3/dist-packages/bigfloat/test/test_all.py", line 7 exec "from bigfloat import *" ^ SyntaxError: invalid syntax

byte-compiling /usr/local/lib/python3.3/dist-packages/bigfloat/test/test_mpfr.py to test_mpfr.cpython-33.pyc File "/usr/local/lib/python3.3/dist-packages/bigfloat/test/test_mpfr.py", line 378 y = Mpfr(20L) ^ SyntaxError: invalid syntax

byte-compiling /usr/local/lib/python3.3/dist-packages/bigfloat/test/test_bigfloat.py to test_bigfloat.cpython-33.pyc File "/usr/local/lib/python3.3/dist-packages/bigfloat/test/test_bigfloat.py", line 194 values = [2, 3L, 1.234, BigFloat('0.678'), BigFloat('nan'), ^ SyntaxError: invalid syntax

running install_egg_info Removing /usr/local/lib/python3.3/dist-packages/bigfloat-0.3.0a2.egg-info Writing /usr/local/lib/python3.3/dist-packages/bigfloat-0.3.0a2.egg-info

mdickinson commented 10 years ago

Thanks for the report! Python 3 support was added quite recently (within the last couple of months). From your traceback, it looks as though you have an ancient version of bigfloat. Can I ask where you got it from? It looks as though I might still have some out-of-date links somewhere.

The version from PyPI should be up to date: https://pypi.python.org/pypi/bigfloat/

keithbriggs commented 10 years ago

Thanks - a new download of the most version does does work. I had assumed 0.3.0a2 was newer than 0.3.0.

K


From: Mark Dickinson [notifications@github.com] Sent: 08 August 2014 13:17 To: mdickinson/bigfloat Cc: Briggs,KM,Keith,TUB2 R Subject: Re: [bigfloat] doesn't work on python3 (#66)

Thanks for the report! Python 3 support was added quite recently (within the last couple of months). From your traceback, it looks as though you have an ancient version of bigfloat. Can I ask where you got it from? It looks as though I might still got some out-of-date links somewhere.

The version from PyPI should be up to date: https://pypi.python.org/pypi/bigfloat/

— Reply to this email directly or view it on GitHubhttps://github.com/mdickinson/bigfloat/issues/66#issuecomment-51593566.