Giter Site home page Giter Site logo

Comments (5)

methane avatar methane commented on June 15, 2024

What version of python-msgpack and Cython do you use?
In my environment (newest Cython and development version of python-msgpack), it raises OverflowError:

In [3]: s=msgpack.dumps(45234928034723904723906)

OverflowError Traceback (most recent call last)
/home/inada-n/work/msgpack/msgpack2/python/ in ()
/home/inada-n/work/msgpack/msgpack2/python/msgpack/_msgpack.so in msgpack._msgpack.packb (msgpack/_msgpack.c:2407)()
/home/inada-n/work/msgpack/msgpack2/python/msgpack/_msgpack.so in msgpack._msgpack.Packer.pack (msgpack/_msgpack.c:2041)()
/home/inada-n/work/msgpack/msgpack2/python/msgpack/_msgpack.so in msgpack._msgpack.Packer._pack (msgpack/_msgpack.c:1351)()
OverflowError: long too big to convert

from msgpack.

facundobatista avatar facundobatista commented on June 15, 2024

methane wrote (el 23/06/11 12:17):

What version of python-msgpack and Cython do you use?
In my environment (newest Cython and development version of python-msgpack), it raises OverflowError:

In [3]: s=msgpack.dumps(45234928034723904723906)

OverflowError Traceback (most recent call last)
/home/inada-n/work/msgpack/msgpack2/python/ in ()
/home/inada-n/work/msgpack/msgpack2/python/msgpack/_msgpack.so in msgpack._msgpack.packb (msgpack/_msgpack.c:2407)()
/home/inada-n/work/msgpack/msgpack2/python/msgpack/_msgpack.so in msgpack._msgpack.Packer.pack (msgpack/_msgpack.c:2041)()
/home/inada-n/work/msgpack/msgpack2/python/msgpack/_msgpack.so in msgpack._msgpack.Packer._pack (msgpack/_msgpack.c:1351)()
OverflowError: long too big to convert

I just installed it through easy_install... now, checking the library installed, I have:

msgpack_python-015final-py2.6-linux-i686.egg

Is that enough for you? If not, feel free to tell me how to get the version info you need.

Regarding the specific bug, I found that the behaviour is inconsistent:

import msgpack
msgpack.unpackb(msgpack.packb(45234928034723904723906L))
18446744073709551615L
msgpack.unpackb(msgpack.packb(45234928034723904723906L))
OverflowError: long too big to convert
msgpack.unpackb(msgpack.packb(45234928034723904723906L))
18446744073709551615L
msgpack.unpackb(msgpack.packb(45234928034723904723906L))
OverflowError: long too big to convert
msgpack.unpackb(msgpack.packb(45234928034723904723906L))
18446744073709551615L
msgpack.unpackb(msgpack.packb(45234928034723904723906L))
OverflowError: long too big to convert

. Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/

from msgpack.

methane avatar methane commented on June 15, 2024

msgpack_python-015 is old release.
I organized PyPI to fix easy-install installs old msgpack-python.
Please try 'easy-install -U msgpack-python' (or 'pip install -U msgpack-python') again.

from msgpack.

facundobatista avatar facundobatista commented on June 15, 2024

methane wrote (el 24/06/11 10:07):

msgpack_python-015 is old release.
I organized PyPI to fix easy-install installs old msgpack-python.
Please try 'easy-install -U msgpack-python' (or 'pip install -U msgpack-python') again.

Mmm... you sure PyPI is updated?

$ sudo easy_install -U msgpack-python
...
Searching for msgpack-python
Reading http://pypi.python.org/simple/msgpack-python/
Reading http://msgpack.sourceforge.net/
Reading http://msgpack.sourceforge.jp/
Best match: msgpack-python 015final
Processing msgpack_python-015final-py2.6-linux-i686.egg
msgpack-python 015final is already the active version in easy-install.pth
...

It seems it's bringing me the same version I have installed...

. Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/

from msgpack.

methane avatar methane commented on June 15, 2024

msgpack-python-015final is removed as you can see in
http://pypi.python.org/simple/msgpack-python/
In my environment, both pip and easy_install installs 0.1.9.

Could you try to remove old msgpack-python and install?

On Fri, Jun 24, 2011 at 10:20 PM, facundobatista
[email protected]
wrote:

methane wrote (el 24/06/11 10:07):

msgpack_python-015 is old release.
I organized PyPI to fix easy-install installs old msgpack-python.
Please try 'easy-install -U msgpack-python' (or 'pip install -U msgpack-python') again.

Mmm... you sure PyPI is updated?

$ sudo easy_install -U msgpack-python
...
Searching for msgpack-python
Reading http://pypi.python.org/simple/msgpack-python/
Reading http://msgpack.sourceforge.net/
Reading http://msgpack.sourceforge.jp/
Best match: msgpack-python 015final
Processing msgpack_python-015final-py2.6-linux-i686.egg
msgpack-python 015final is already the active version in easy-install.pth
...

It seems it's bringing me the same version I have installed...

.   Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/

Reply to this email directly or view it on GitHub:
#64 (comment)

INADA Naoki  [email protected]

from msgpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.