Skip to content

Numpy error on import #30

Description

@rachase

Using the supplied csv

rror: Python: Traceback (most recent call last):
  File "/home/----/.config/blender/4.4/extensions/user_default/csv_importer/ops.py", line 54, in invoke
    return self.execute(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/----/.config/blender/4.4/extensions/user_default/csv_importer/ops.py", line 40, in execute
    bob = load_csv(filepath=self.filepath)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/----/.config/blender/4.4/extensions/user_default/csv_importer/csv.py", line 14, in load_csv
    bob = polars_df_to_bob(df, name=f"CSV_{file_name_without_ext}")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/----config/blender/4.4/extensions/user_default/csv_importer/parsers.py", line 12, in polars_df_to_bob
    update_bob_from_polars_df(bob, df, string_limit=string_limit)
  File "/home/----config/blender/4.4/extensions/user_default/csv_importer/parsers.py", line 42, in update_bob_from_polars_df
    bob.store_named_attribute(data, col)
  File "/home/----/.config/blender/4.4/extensions/.local/lib/python3.11/site-packages/databpy/object.py", line 319, in store_named_attribute
  File "/home/----/.config/blender/4.4/extensions/.local/lib/python3.11/site-packages/databpy/attribute.py", line 402, in store_named_attribute
  File "/home/----/.config/blender/4.4/extensions/.local/lib/python3.11/site-packages/databpy/attribute.py", line 213, in guess_atype_from_array
  File "/home/----/Data/Software/blender-4.4.3-linux-x64/4.4/python/lib/python3.11/site-packages/numpy/__init__.py", line 781, in __getattr__
    raise AttributeError(
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions