ai4co / rl4co

A PyTorch library for all things Reinforcement Learning (RL) for Combinatorial Optimization (CO)

Home Page:https://rl4.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] torchrl error

aiguoli opened this issue · comments

Describe the bug

When running the code in the quickstart, an error occurs:

ImportError: /usr/local/lib/python3.10/dist-packages/torchrl/_torchrl.so: undefined symbol: _ZN5torch8autograd13_wrap_outputsERKSt6vectorIN2at6TensorESaIS3_EERKSt13unordered_setIPN3c1010TensorImplESt4hashISB_ESt8equal_toISB_ESaISB_EESJ_NS9_8ArrayRefINS9_8optionalIS3_EEEERKSt10shared_ptrINS0_4NodeEESt8functionIFS5_S5_S5_EESJ_

I tested it locally, and the same issue occurs.
My environment:

python 3.11
rl4co 0.2.0
pytorch 2.0.1

To Reproduce

Just open your link

Additional context

I remember that the code could still run in the older version.

Checklist

  • I have checked that there is no similar issue in the repo (required)
  • I have provided a minimal working example to reproduce the bug (required)

Hi @aiguoli
That is a currently known bug, you should install rl4co with Python < 3.11. You may follow the installation instructions here for now.
We will have a major release in which the problem above should be solved, so stay tuned!

@aiguoli we solved the problem with the latest release 🚀
Please do let us know if you find any other problem