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
{{ message }}
Repository navigation
Error in Node.load when node contains an inline comment #161
Attempting to read these Example files with pycollada and I'm getting an error because an inline comment is treated as if it is a subnode:
COLLADA file excerpt that errors, the subnode that is the problem has subnode.text equal to the comment text " We instantiate the rack model "
<library_nodes>
<!-- We define the model for a table with 1 rack -->
<node id="TableModel1">
<!-- We instantiate the rack model -->
<instance_geometry url="#Rack1Model">
<bind_material>
File D:\python\pycollada\pycollada\collada\__init__.py:248, in Collada.handleError(self, error)
244 # use `isinstance` to check this error which will
245 # correctly identify subclasses, i.e. if `DaeError`
246 # is passed as the ignore it will ignore everything
247 if not any(isinstance(error, mask) for mask in self.maskedErrors):
--> 248 raise
RuntimeError: No active exception to reraise
What's the suggested workaround besides deleting comments from the COLLADA file? I don't follow the importer sufficiently or I would submit a PR to fix.
Activity
jterrace commentedon May 23, 2026
Those look like collada 1.5 files? That could be part of the problem (see #25)
cwhanse commentedon May 25, 2026
I removed that one comment line from the file to get past the error. The rest of the file appears to load correctly.
I didn't see that pycollada was specific to COLLADA version so thanks for pointing out that branch for 1.5.
cwhanse commentedon Oct 19, 2026
Many thanks!