Comments (5)
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.
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.
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.
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.
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)
- Proposal: a compact fixext field, replacing fixext 1~16 HOT 7
- Property name and ctor parameter name mismatch causes data loss HOT 1
- Proposal: support little-endian (strongly recommended) HOT 23
- Wrong timestamp first byte identifier HOT 1
- Installing msgpack on Solaris 10 with errors.. HOT 1
- Show: Papers covering MessagePack HOT 2
- Encoding order for hashmaps HOT 2
- Enable padding HOT 3
- `Last modified` in `spec.md` is out of date
- multiple formats for same int value allowed? HOT 4
- Best way to append multiple messages to file HOT 2
- Clarification: floating point minimal representation
- How to use u32? HOT 1
- Clarification on future extension of 2-byte type information HOT 1
- Edit: wrong repo
- Is navigating/transforming messagepack data possible? HOT 1
- Official website try! tab is not right for int64 HOT 2
- Why does compressed JSON usually smaller than compressed Msgpack? HOT 5
- Memory allocation in EXT32
- Proposal: Addition of 4 Predefined Extension Types to MessagePack to improve on-demand forward reading and storage efficiency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msgpack.