PathmindAI / nativerl

Train reinforcement learning agents using AnyLogic or Python-based simulations
Apache License 2.0
19 stars 4 forks source link

Training unable to find modules installed via requirements.txt #493

Closed slinlee closed 2 years ago

slinlee commented 3 years ago

I'm not sure what has changed but the logs look like the requirements are installed, but then the trainings fail with 'module not found'

@slinlee will check what changed since last week.

Originally posted by @ejunprung in #31 (review)

originally posted here https://github.com/PathmindAI/pathmind-api/issues/34

ejunprung commented 3 years ago

I think I got it working. I'm not sure if I understand but I think there is a conflicting version of ruamel from our conda environment maybe? Removing ruamel completely from the simulation fixed it.

slinlee commented 3 years ago

Yeah there was a newer version of it. I'd still like to find out how to install modules required. I'll lower the importance for now.

slinlee commented 3 years ago

These two simulations have the issue https://github.com/PathmindAI/pathmind-api/pull/32

ejunprung commented 3 years ago

Those two shouldn't work yet. I need to push up my fixes.

As for OR Gym examples, those won't work either because I think we don't upload a requirements.txt with those. That needs to fixed too.

slinlee commented 3 years ago

The updated rllibpack includes pathmind v0.4 which installs gym and or-gym as requirements

Edit: the new rllibpack is only on dev right now.