Skip to content

ver2.0 Build error "44: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead." may be caused by old pandas #257

@yoshinori-watanabe-nsitexe

Description

I tried to install UniAD ver. 2.0 by using uv.

uv venv .uniad
source .uniad/bin/activate

uv pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118
uv pip install -v mmcv-full==1.6.1 -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.0/index.html
uv pip install mmdet==2.26.0 mmsegmentation==0.29.1 mmdet3d==1.0.0rc6
uv pip install -r requirements.txt

But following compile error occurs

[stderr]
      <string>:44: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      pandas/_libs/tslibs/parsing.c: In function ‘__pyx_f_6pandas_5_libs_6tslibs_7parsing_parse_datetime_string_with_reso.constprop’:
      pandas/_libs/tslibs/parsing.c:9153:22: warning: array subscript ‘PyMethodObject[0]’ is partly outside array bounds of ‘PyObject[1]’ {aka ‘struct _object[1]’} [-Warray-bounds]
       9153 |           __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_2);
…
       292 | PyArray_SETITEM(PyArrayObject *arr, char *itemptr, PyObject *v)
            |                 ~~~~~~~~~~~~~~~^~~
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

      hint: This usually indicates a problem with the package or the build environment.

This seems to be caused by old version pandas.
So I replaced

-pandas==1.2.2
+pandas==2.0.3

Then, all dependent libraried can be installed successfilly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions