79443076

Date: 2025-02-16 11:47:37
Score: 0.5
Natty:
Report link

`import skfda._utils

See if getattr exists on the module:

print("Module getattr:", getattr(skfda._utils, "getattr", None))

Try to retrieve the attribute via dict directly:

print("In dict:", skfda._utils.dict.get("_check_array_key"))

Attempt a direct getattr and catch any exception:

try: func = getattr(skfda._utils, "_check_array_key") print("Retrieved _check_array_key:", func) except Exception as e: print("Error when calling getattr:", e)

`

results in

Module __getattr__: <function attach.<locals>.__getattr__ at 0x000001152722B7E0> In __dict__: None Error when calling getattr: np.float_was removed in the NumPy 2.0 release. Usenp.float64 instead.

Indicating that it needs e.g. numpy 1.24 This is not compatible with python 3.13

This should be looked at by the developers

lazy-loading implementation problem with getattr

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Max