Skip to content

TypingError with Numba: Cannot determine type of _logger in spi() #580

@tugce-b

Description

@tugce-b

How to craft a useful, minimal bug report

Describe the bug
When calling the indices.spi() function, I receive a Numba TypingError related to _logger. This happens even after upgrading Numba.

Error message

To Reproduce
Steps to reproduce the behavior:

  1. Use climate_indices==1.0.12 (or latest)
  2. Run indices.spi() on 1D numpy array
  3. See error

Expected behavior

  1. OS: Windows 10
  2. Python version: 3.11
  3. Numba version: 0.61.2
  4. climate_indices version: 1.0.12

Additional context
I am trying to compute SPI using the climate_indices package, but the function fails due to a Numba TypingError. I have already tried updating Numba and Python, but the issue persists. Any help or guidance is appreciated!

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