Dessia-tech / volmdlr

A python VOLume MoDeLeR computations-oriented with STEP support for import/export
GNU Lesser General Public License v2.1
28 stars 10 forks source link

Error: Read Step #1115

Closed younesdessia closed 11 months ago

younesdessia commented 12 months ago

I read step (Assembly) on the platform and locally with dev volmdlr, and I got this error:

volume_model._check_platform()
Traceback (most recent call last):
  File "/home/younes/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3442, in run_code
    exec(obj_code, self.user_global_ns, self.user_ns)
  File "<ipython-input-6-b3d15af50e47>", line 1, in <module>
    volume_model._check_platform()
  File "/home/younes/Bureau/DESSIA_WORK/dessia_common/dessia_common/core.py", line 555, in _check_platform
    return self.check_platform().raise_if_above_level(level=level)
  File "/home/younes/Bureau/DESSIA_WORK/dessia_common/dessia_common/core.py", line 567, in check_platform
    deserialized_object = self.dict_to_object(decoded_json)
  File "/home/younes/Bureau/DESSIA_WORK/dessia_common/dessia_common/serialization.py", line 68, in dict_to_object
    obj = dict_to_object(dict_=dict_, force_generic=force_generic, global_dict=global_dict,
  File "/home/younes/Bureau/DESSIA_WORK/dessia_common/dessia_common/serialization.py", line 310, in dict_to_object
    global_dict, pointers_memo = update_pointers_data(global_dict=global_dict, current_dict=dict_,
  File "/home/younes/Bureau/DESSIA_WORK/dessia_common/dessia_common/serialization.py", line 629, in update_pointers_data
    pointers_memo.update(dereference_jsonpointers(current_dict))
  File "/home/younes/Bureau/DESSIA_WORK/dessia_common/dessia_common/serialization.py", line 670, in dereference_jsonpointers
    order = deserialization_order(dict_)
  File "/home/younes/Bureau/DESSIA_WORK/dessia_common/dessia_common/serialization.py", line 643, in deserialization_order
    raise NotImplementedError('Cycles in jsonpointers not handled')
NotImplementedError: Cycles in jsonpointers not handled

I did check_platform, when I save in json it goes through but when I open the json I get the same error

knowing that the platform, checks the to_dict (which passed) and the dict_to_object which triggers an error no problem on volmdlr 0.13

AxelRinghausen commented 11 months ago

Solved in dessia_common 0.13.6 and 0.14.2