Skip to content

Can't import on python >=3.13 #1

@g-kimbell

Description

@g-kimbell

Thank you for open sourcing this, I'm hoping we as a community get make an everything -> polars bdf converter.

When I try to install on 3.13 or 3.14 I get scary warnings and all scripts silently fail at import.

PS C:\dev\ionworks> uv venv --python=3.13

PS C:\dev\ionworks> .\.venv\Scripts\activate

(ionworks) PS C:\dev\ionworks> uv pip install ionworksdata

(ionworks) PS C:\dev\ionworks> python -c "import ionworksdata; print(ionworksdata)"

<frozen importlib._bootstrap>:488: Warning: Numpy built with MINGW-W64 on Windows 64 bits is experimental, and only available for
testing. You are advised not to use it for production.

CRASHES ARE TO BE EXPECTED - PLEASE REPORT THEM TO NUMPY DEVELOPERS
C:\dev\ionworks\.venv\Lib\site-packages\numpy\core\getlimits.py:225: RuntimeWarning: invalid value encountered in exp2
  epsneg_f128 = exp2(ld(-113))
C:\dev\ionworks\.venv\Lib\site-packages\numpy\core\getlimits.py:226: RuntimeWarning: invalid value encountered in exp2
  tiny_f128 = exp2(ld(-16382))
C:\dev\ionworks\.venv\Lib\site-packages\numpy\core\getlimits.py:240: RuntimeWarning: invalid value encountered in exp2
  eps=exp2(ld(-112)),
C:\dev\ionworks\.venv\Lib\site-packages\numpy\core\getlimits.py:41: RuntimeWarning: invalid value encountered in nextafter
  self._smallest_subnormal = nextafter(
C:\dev\ionworks\.venv\Lib\site-packages\numpy\core\getlimits.py:52: RuntimeWarning: invalid value encountered in log10
  self.precision = int(-log10(self.eps))

Note that it never prints anything, Python crashes at the import. It might be related to numpy pinned at <2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions