-
Notifications
You must be signed in to change notification settings - Fork 104
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
Error in insert.py #54
Comments
Hi @jsandovalc, did the tests work for you, or did they also produce the error? |
Hi @trenton42. |
I have a feeling that there is a bson package already on your system, or a different version of pymongo. I am going to try to spin up a wheezy machine to have a closer look. Also, would it be possible to run your code in a virtual environment? |
Hi. I have another debian installation where I just tested and it worked. For now, I'll keep developing there and I'll clean everything related to pymongo and bson later. Thanks. |
Thank you for the feedback. And thanks @trenton42 for handling this. :) |
Hi.
When I try to execute the example "insert.py", I get the next exception (not sure if only in insert):
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
File "build/bdist.linux-i686/egg/txmongo/protocol.py", line 240, in handle
File "build/bdist.linux-i686/egg/txmongo/protocol.py", line 335, in handle_REPLY
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 382, in callback
self._startRunCallbacks(result)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 490, in _startRunCallbacks
self._runCallbacks()
--- ---
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks
current.result = callback(current.result, _args, *_kw)
File "build/bdist.linux-i686/egg/txmongo/connection.py", line 91, in _configureCallback
File "/usr/local/lib/python2.7/dist-packages/bson/init.py", line 624, in decode
self, as_class, tz_aware, uuid_subtype, compile_re)
exceptions.TypeError: function takes exactly 4 arguments (5 given)
I got this error in my application, so I decided to try with the examples.
I'm on de Debian Wheezy machine, with python 2.7 and Mongo 2.4.10.
Thanks for any help.
The text was updated successfully, but these errors were encountered: