PathmindAI / pathmind-api

2 stars 1 forks source link

add support for gym environments #31

Closed maxpumperla closed 2 years ago

slinlee commented 2 years ago

@ejunprung I didn't have time to test this today, but it looks good. You should give it a spin!

ejunprung commented 2 years ago

I'm not sure if I'm doing this correctly but I'm getting the below.

>>> from pathmind.simulation import from_gym
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'from_gym' from 'pathmind.simulation' (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pathmind/simulation.py)
slinlee commented 2 years ago

It's likely your python env is using the installed pathmind package and not this local change. Try pip install . in this repo

maxpumperla commented 2 years ago

@ejunprung clone the repo and install like shown on the readme, or install from GitHub like I've indicated in Slack.

ejunprung commented 2 years ago

Ah, I had to pip uninstall pathmind first and then python setup.py install to update. It seems to work now.

slinlee commented 2 years ago

@ejunprung do you still need this branch now?

ejunprung commented 2 years ago

Nope, you can delete it