Skip to content

Getting error: TypeError: Unsupported type <class 'ifcopenshell.entity_instance.entity_instance'> in write() #18

Description

@DimitriosThe

When trying to run the example (see attached) I get the error:

Error: Python: Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 4.3\4.3\python\Lib\site-packages\xlsxwriter\worksheet.py", line 562, in _write
    f = float(token)
        ^^^^^^^^^^^^
TypeError: float() argument must be a string or a real number, not 'entity_instance'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 4.3\4.3\python\Lib\site-packages\xlsxwriter\worksheet.py", line 567, in _write
    raise TypeError(f"Unsupported type {type(token)} in write()")
TypeError: Unsupported type <class 'ifcopenshell.entity_instance.entity_instance'> in write()
--------------------------------------------------------------------------------

xlsxwriter-3.2.9

mvd_example.py
bonsai_log.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions