ai4co / rl4co

A PyTorch library for all things Reinforcement Learning (RL) for Combinatorial Optimization (CO)
https://rl4.co
MIT License
455 stars 84 forks source link

[BUG] torchrl error #97

Closed aiguoli closed 1 year ago

aiguoli commented 1 year ago

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

fedebotu commented 1 year ago

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!

fedebotu commented 1 year ago

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