-
Notifications
You must be signed in to change notification settings - Fork 202
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
nullptr as default argument results in unreported exception during import #60
Comments
i am getting the same or a similar unhelpful error using python3 when i
literally all i add is a
my python3 line to compile your example is
with boost and boost.python installed from homebrew, and some anaconda install on the path. to check my sanity, i compiled your above test example, and get the same problem, 22 months later. pretty sure it is the same problem as i am experiencing. if i compile my code with python2 installed at /usr/local/bin which resolves to version 2.7.13 installed from brew using this
i get the following much better error message:
in fact, compiling your example using python2 yields this error:
why does python2 yield much better error reporting? |
i again encountered this just now (feb 10 2018). i got
upon |
I think the lack of precise error reporting was fixed in #280. |
The code at the bottom can be compiled like so:
When importing the resulting module in Python I see the following error:
If I replace
nullptr
withNULL
, then there is no error. This is with Boost 1.59 installed via MacPorts on the latest version of OS X with the latest version of Xcode.The text was updated successfully, but these errors were encountered: