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

Monary() giving runtime error: ffi_prep_cif_var failed #3

Open
ShubhangG opened this issue Mar 15, 2022 · 0 comments
Open

Monary() giving runtime error: ffi_prep_cif_var failed #3

ShubhangG opened this issue Mar 15, 2022 · 0 comments

Comments

@ShubhangG
Copy link

ShubhangG commented Mar 15, 2022

Hello,
I have a mongo database that I want to explore using Monary(). The pymongo client works quite well and I am able to explore using the MongoClient in pymongo. But when I use Monary() I get the following runtime error

File "<stdin>", line 1, in <module> File "/home/shubhang/.local/lib/python3.9/site-packages/monary/monary.py", line 373, in __init__ self.connect(host, port, username, password, database, File "/home/shubhang/.local/lib/python3.9/site-packages/monary/monary.py", line 436, in connect self._connection = cmonary.monary_connect( RuntimeError: ffi_prep_cif_var failed
I tried Monary('localhost',27017) to explicitly identify the localhost as well but to no avail. I still get the same RuntimeError.

Here is the mongod status in case it helps

mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled> Active: active (running) since Mon 2022-03-14 08:40:33 CDT; 1 day 1h ago Docs: https://docs.mongodb.org/manual Main PID: 32645 (mongod) Memory: 2.9G CPU: 10min 32.377s CGroup: /system.slice/mongod.service └─32645 /usr/bin/mongod --config /etc/mongod.conf

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

1 participant