vita-epfl / openpifpaf

Official implementation of "OpenPifPaf: Composite Fields for Semantic Keypoint Detection and Spatio-Temporal Association" in PyTorch.
https://arxiv.org/abs/2103.02440
Other
80 stars 22 forks source link

Cannot install with Torch 2.1.1, cpp extension undefined symbol #20

Closed kikohs closed 8 months ago

kikohs commented 8 months ago

I'm trying to install with Torch 2.1.1, I remember it working with the nightly. Here is the error:

OSError: /home/kirell/.cache/pypoetry/virtualenvs/emv-IgKv7S_O-py3.10/lib/python3.10/site-packages/openpifpaf/_cpp.so: undefined symbol: _ZN3c104impl12PyObjectSlotD1Ev
b
taylormordan commented 8 months ago

What commands did you run? If you've updated PyTorch, you should recompile (pip install) OpenPifPaf.

kikohs commented 8 months ago

I've spent the past 3 hours on this:

The issue is that the wheel online is broken. First install pytorch (works with 2.1.1 now).

Then: pip uninstall -y openpifpaf-vita && pip install --no-build-isolation --no-binary=openpifpaf-vita openpifpaf-vita

For poetry users:

poetry config --local installer.no-binary openpifpaf-vita
poetry add openpifpaf-vita