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

Error in insert.py #54

Closed
jsandovalc opened this issue Apr 21, 2014 · 5 comments
Closed

Error in insert.py #54

jsandovalc opened this issue Apr 21, 2014 · 5 comments

Comments

@jsandovalc
Copy link

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.

@trenton42
Copy link
Contributor

Hi @jsandovalc, did the tests work for you, or did they also produce the error?

@jsandovalc
Copy link
Author

Hi @trenton42.
The tests return exactly the same error.

@trenton42
Copy link
Contributor

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?

@jsandovalc
Copy link
Author

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.

@fiorix
Copy link
Collaborator

fiorix commented Apr 21, 2014

Thank you for the feedback. And thanks @trenton42 for handling this. :)

@fiorix fiorix closed this as completed Apr 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants