GarminDB icon indicating copy to clipboard operation
GarminDB copied to clipboard

pip install compile error with python 3.13 and Jupyter requirements.txt file

Open raydnichols opened this issue 11 months ago • 1 comments

Describe the bug You cannot pip install the Jupyter requirements.txt file in python version 3.13. Version 3.12 is fine.

To Reproduce Steps to reproduce the behavior:

GarminDB/Jupyter$ pip install -r ./requirements.txt

Expected behavior

...
Successfully built pandas
...

Additional context The error with 3.13 is

     pandas/_libs/algos.c: In function ‘__Pyx_PyInt_As_char’:
      pandas/_libs/algos.c:179228:27: error: too few arguments to function ‘_PyLong_AsByteArray’
      179228 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
             |                           ^~~~~~~~~~~~~~~~~~~
      In file included from /home/rnichols/.pyenv/versions/3.13.0/include/python3.13/longobject.h:107,
                       from /home/rnichols/.pyenv/versions/3.13.0/include/python3.13/Python.h:81,
                       from pandas/_libs/algos.c:46:
      /home/rnichols/.pyenv/versions/3.13.0/include/python3.13/cpython/longobject.h:111:17: note: declared here
        111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
            |                 ^~~~~~~~~~~~~~~~~~~
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pandas
Failed to build pandas
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pandas)

raydnichols avatar Feb 08 '25 16:02 raydnichols

@raydnichols any luck with this, or find a workaround? it seemed that I needed >3.13 to run make setup, but then can't use 3.13 for the juptyer notebooks, getting same error as you.

welew204 avatar Aug 27 '25 04:08 welew204