symforce-org / symforce

Fast symbolic computation, code generation, and nonlinear optimization for robotics
https://symforce.org
Apache License 2.0
1.41k stars 145 forks source link

No module named 'cc_sym' #341

Closed BenedictChannn closed 1 year ago

BenedictChannn commented 1 year ago

Built with cmake, following the steps provided in the readme but somehow not able to import cc_sym.

aaron-skydio commented 1 year ago

You mean from symforce import cc_sym fails? What is the error you get?

BenedictChannn commented 1 year ago

In Line 18 of cc_sym.py,

from cc_sym import * # pylint: disable=wildcard-import

ModuleNotFoundError: No module named 'cc_sym'

BenedictChannn commented 1 year ago

When I built with cmake and executed the make -j $(nproc) command and did run into some errors. There seems to be some issue with my fmt library perhaps.

The error specifically mentions the inability to format an argument of type sym::Key& and std::vector&.

Can I ask what is the proper way to install fmt to be compatible with symforce?

Also, I keep having the 'TYPE_CHECKING' is not defined error. Is anyone also encountering the same issue? And knows how to resolve the issue?

aaron-skydio commented 1 year ago

I'm going to guess that the issue is that you haven't actually built cc_sym at all - let's resolve that at #340

aaron-skydio commented 1 year ago

This was resolved in discussion at #340