Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 0.4.4 regression of issue #32 #52

Closed
kguilbert opened this issue Feb 15, 2017 · 7 comments
Closed

version 0.4.4 regression of issue #32 #52

kguilbert opened this issue Feb 15, 2017 · 7 comments
Labels

Comments

@kguilbert
Copy link

bson seems to have a regression from 0.4.3 to 0.4.4 which was originally reported in issue #32. Dumping/loading binary data doesn't work anymore. I'm able to reproduce this in python 3.4.3 (seen below) and python 3.5.1.

(venv343) kguilbert@kg-ubuntu:~$ pip install -q bson==0.4.3 && echo ok
ok
(venv343) kguilbert@kg-ubuntu:~$ python
Python 3.4.3 (default, Nov 17 2016, 01:08:31) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import bson
>>> bson.loads(bson.dumps({'d':b'qwerty'}))
{'d': b'qwerty'}
>>> 
(venv343) kguilbert@kg-ubuntu:~$ pip install -q bson==0.4.4 && echo ok
ok
(venv343) kguilbert@kg-ubuntu:~$ python
Python 3.4.3 (default, Nov 17 2016, 01:08:31) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import bson
>>> bson.loads(bson.dumps({'d':b'qwerty'}))
{'d': b''}
>>> 
@Parkayun Parkayun added the bug label Feb 16, 2017
@Parkayun
Copy link
Member

Thanks for your report!

Curzy added a commit to Curzy/bson that referenced this issue Feb 16, 2017
This error caused by increasing index of bytes data
before getting value increase index, then overflow
@Parkayun Parkayun mentioned this issue Feb 16, 2017
Parkayun pushed a commit that referenced this issue Feb 17, 2017
This error caused by increasing index of bytes data
before getting value increase index, then overflow
@Parkayun
Copy link
Member

It fixed and released on 0.4.5!

@kguilbert
Copy link
Author

Thanks! Has the new release been uploaded to pypi? I'm not able to update it with pip.
Also the listing http://pypi.python.org/simple/bson/ (where pip downloads from, i think) is missing 0.4.5.

@Parkayun
Copy link
Member

@kguilbert I uploaded again with bson__0.4.5.tar.gz.

@kguilbert
Copy link
Author

$ pip3 download bson==0.4.5
Collecting bson==0.4.5
  Could not find a version that satisfies the requirement bson==0.4.5 (from versions: 0.3.4, 0.3.5, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4)
No matching distribution found for bson==0.4.5

Am I doing this wrong?

@Parkayun
Copy link
Member

@kguilbert I think there some version issue with pypi. so I re-released with 0.4.6.
Have a try pip download bson==0.4.6

@kguilbert
Copy link
Author

@Parkayun that did it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants