Open bgenchel opened 7 months ago
Thank you for bringing this issue to our attention. It seems like there might be a missing dependency in the installation process for mirdata. Our apologies for any inconvenience this has caused. @guillemcortes
We'll look into this immediately to ensure that all necessary dependencies, including 'smart_open', are properly included in the installation process.
I'm also having this problem.
Also this, after manually installing smart_open
.
python3.11/site-packages/jams/schema.py:193
187 print('{:30s}\t{:40s}'.format(sch, desc))
190 # Mapping of js primitives to numpy types
191 __TYPE_MAP__ = dict(integer=np.int_,
192 boolean=np.bool_,
--> 193 number=np.float_,
194 object=np.object_,
195 array=np.object_,
196 string=np.object_,
197 null=np.float_)
200 def __get_dtype(typespec):
201 '''Get the dtype associated with a jsonschema type definition
202
203 Parameters
(...)
211 The associated dtype
212 '''
python3.11/site-packages/numpy/__init__.py:397, in __getattr__(attr)
394 raise AttributeError(__former_attrs__[attr])
396 if attr in __expired_attributes__:
--> 397 raise AttributeError(
398 f"`np.{attr}` was removed in the NumPy 2.0 release. "
399 f"{__expired_attributes__[attr]}"
400 )
402 if attr == "chararray":
403 warnings.warn(
404 "`np.chararray` is deprecated and will be removed from "
405 "the main namespace in the future. Use an array with a string "
406 "or bytes dtype instead.", DeprecationWarning, stacklevel=2)
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
2024 Macbook Pro M3 Max MacOS Sonoma 14.1 Python 3.10.4 via pyenv virtualenv
I installed mirdata via pip through a pyproject.toml file, and after installation, calling mirdata.initialize for any dataset generates the following error message:
I can install it separately, after which the call works, but that doesn't seem right. If it's necessary for the package to run it should be installed as a dependency.