You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue with the following example "02-ExposingClasses". After a successful compilation when I executing the classes.py I have the following error:
Traceback (most recent call last):
File "classes.py", line 5, in <module>
t = classes.World()
TypeError: __init__() should return None, not 'NoneType'
I am using:
osx 10.13
python 3.6 anaconda
boost 1.65.1
in the build.sh I configured the following variables
I checked that the classes.so was linked correctly
> otool -L classes.so
classes.so:
@rpath/libboost_python3.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libpython3.6m.dylib (compatibility version 3.6.0, current version 3.6.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
Thank
Best regards,
Vincent
The text was updated successfully, but these errors were encountered:
vgauthier
changed the title
02-ExposingClasses
Execution error in 02-ExposingClasses example
Oct 21, 2017
I came across this problem again and this time I could solve it: make sure that you use exactly matching python interpreter, python library and boost library.
It's not easy to get that working on OSX, but that's the key. I'll try to improve build.sh, but feel free to set the necessary variabled yourself.
Hello,
Thank you for making public this repository
I have an issue with the following example "02-ExposingClasses". After a successful compilation when I executing the
classes.py
I have the following error:I am using:
in the
build.sh
I configured the following variablesI checked that the
classes.so
was linked correctly> otool -L classes.so classes.so: @rpath/libboost_python3.dylib (compatibility version 0.0.0, current version 0.0.0) @rpath/libpython3.6m.dylib (compatibility version 3.6.0, current version 3.6.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
Thank
Best regards,
Vincent
The text was updated successfully, but these errors were encountered: