-
Notifications
You must be signed in to change notification settings - Fork 40
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
Python bindings #24
Comments
Not yet, feel free to submit a pull request for it |
I've been tinkering with Python bindings for this library. I'm getting an ImportError due to a missing symbol. This missing symbol also seems to be missing from Here's the ImportError I'm getting:
If I run
I get nothing. Is there something obvious that I'm missing? If it's useful to you, I can fork and open a PR with what I've got so far. |
Unfortunately I don't know much about Python bindings and how to create them. I tried creating a small test program and linking it to #include <velocypack/Slice.h>
#include <velocypack/Builder.h>
#include <iostream>
int main() {
using namespace arangodb::velocypack;
Builder b;
b.openObject();
b.add("foo", Value("bar"));
b.close();
std::cout << b.slice().toJson() << ", " << b.slice().byteSize() << "\n";
} I compiled & linked it with g++ (g++-11.4) via
and executed it with So at least for me the generated As mentioned before, I am not really aware of how Python bindings work, but do they actually supported using static libraries? Just wondering (random guess) if they may require using a dynamic library instead. |
My understanding is limited as well, but the bindings file produced in this case is a |
Spent some time hacking around on it this morning and discovered that I have to define everything just so-so in Cython, or we are going to have a bad time. So much for remaining ignorant of advanced C++ templating in Cython. |
Is there a Python binding to this library?
If not, can we add one?
The text was updated successfully, but these errors were encountered: