-
Notifications
You must be signed in to change notification settings - Fork 797
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
Matlab wrapper uses python 3 #519
Comments
Ahh. Should be compatible with Python 2.7... #TODO |
I disagree that it should be compatible with Python 2.x. Python 2 has officially reached EOL, so I recommend @mfinean upgrade his Python to 3.6+. |
Actually disregard my previous comment. This issue doesn't seem to have anything to do with Python 2. |
My apologies that it cut off! First error encountered was: [ 56%] Generating wrap/gtsam/gtsam_wrapper.cpp This should have been my warning but I used [ 58%] Building CXX object examples/CMakeFiles/Pose3SLAMExampleExpressions_BearingRangeWithTransform.dir/Pose3SLAMExampleExpressions_BearingRangeWithTransform.cpp.o I wasn't suggesting for it be made Python 2 compatible but rather that there could be a catch for this to ensure Python 3 is used. In my case, the default was still Python 2. |
Ah thanks a lot! So you're right, in that I guess the issue really is that we need to somehow enforce Python 3+ in the wrapper. @ProfFan |
Problem:
[ 56%] Generating wrap/gtsam/gtsam_wrapper.cpp
Ignoring classes: ['gtsam::Point2', 'gtsam::Point3']
Traceback (most recent call last):
File "/path/gtsam/wrap/matlab_wrapper.py", line 1770, in
cc_content = wrapper.wrap()
File "/path/gtsam/wrap/matlab_wrapper.py", line 1657, in wrap
self.wrap_namespace(self.module)
File "/path/gtsam/wrap/matlab_wrapper.py", line 1096, in wrap_namespace
self.wrap_namespace(element, namespaces)
File "/path/gtsam/wrap/matlab_wrapper.py", line 1101, in wrap_namespace
class_text = self.wrap_instantiated_class(element, "".join(namespace.full_namespaces()))
File "/path/gtsam/wrap/matlab_wrapper.py", line 1037, in wrap_instantiated_class
).splitlines()) + '\n'
File "/path/gtsam/wrap/matlab_wrapper.py", line 698, in wrap_class_constructors
methods_wrap = textwrap.indent(textwrap.dedent("""\
To generate the Matlab wrapper it requires python 3. I fixed by changing "Default" to my python 3 version.
gtsam/CMakeLists.txt
Line 104 in de75367
The text was updated successfully, but these errors were encountered: