-
-
Notifications
You must be signed in to change notification settings - Fork 598
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: "ImportError: arg(): could not convert default argument into a Python object [...]" #256
Comments
Hi, Hmm, I remember getting this exact error a few weeks ago with a different module, actually. I don't remember what the solution was though, but I do remember that I think it had nothing to do with the code itself. It was perhaps an issue with caching, the compiler, Python versions, something like that. I think after I cleared all build caches and did a clean Release/RelWithDebInfo build, it worked fine again. I don't think this has anything to do with eos specifically. I think you'll just need to play around a bit with the compilation process, start from a clean build directory, perhaps try a different (64-bit) Python version, perhaps clone eos from GitHub and try installing from there. Perhaps even follow the suggestion in the error message, compile in debug mode, and see what happens. Sorry that I don't remember more or can't be of more direct help. If you find out more, please let us know here. |
Thanks for the quick response Patrik, Thanks again for sharing this awesome package |
I get the error too. I compiled in debug mode and tried to import the eos library (inside python): I need your kind help. Thank you so much. |
I change my default g++/gcc version to g++-7/gcc-7 and rebuild it. |
@huntkao Interesting! What was the previous gcc version that you used that didn't work? Another idea I had was to completely remove the build directory, and then rebuild with I remember now that I think I got this error in a similar scenario, and it also went away once I used a clean build directory, made sure @barhilleli, this should also help you. |
My previous gcc version was gcc-6 (6.5.0 actually). Thanks for your quick response. |
@huntkao Thanks! It is indeed still a bit of a mystery. But I think if one makes sure to have a clean build directory and to build with |
Hi, Does anybody have more update on this ? Thank you |
Anyone encountering this, please specify more information, otherwise it's not helpful. At the very least:
|
Hi,
Many thanks |
Hi @BenjBarral, Okay, I think on macOS/XCode, you will need to make sure that the If you self-compile, also make sure to do a In any case just make sure it uses the C++17 branch in those files and it should be okay. I hope XCode by now supports these C++17 features (it still didn't fully half a year or a year ago). If in doubt, make sure you got the very latest XCode version. |
Hi Patrik, Thanks a lot, this was indeed the problem. Thanks again ! Benjamin |
Hi @patrikhuber i am able to pip install but not able to import it. My system info:
the error persists, could you please tell me what other things should be checked. |
Hey @BenjBarral, aah great! That's fantastic, and I'm sure it'll help other people as well! Thanks. @vineethbabu, if you get any error with |
Thank you @patrikhuber for your super quick reply. I changed my default gcc version to gcc 7.4 and installed a newer version of python, now the error is gone. could you please tell me if there is a way to obtain .obj, mesh and texture from the python code?. |
@vineethbabu Great! For your question, this is very off-topic here. Please have a look at |
Hi,
I have the following problem with using eos-py.
After successfully installing eos-py with:
pip install eos-py
I get the following error while trying to import the eos library (inside python):
I would appreciate your help
The text was updated successfully, but these errors were encountered: