Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ptan cannot be used properly #55

Open
Lyric233-QS opened this issue Aug 16, 2024 · 0 comments
Open

ptan cannot be used properly #55

Lyric233-QS opened this issue Aug 16, 2024 · 0 comments

Comments

@Lyric233-QS
Copy link

hello,
I'm a reinforcement learning novice, recently I'm studying your Deep Reinforcement Learning in Practice 2nd Edition, in the chapter 7 part, I need to use ptan, I install the tutorial on gitub, and I use pip install ptan in the anaconda environment, and I successfully install ptan==0.8, and when I import ptan in a python file, it reports the error :
file “ptan\agent.py”,line 14,in States = tt.List[np.ndarray] | np.ndarray TypeError: unsupported operand type(s) for |: '_GenericAlias' and 'type'
My system configuration environment is exactly as requested in your requirements.txt.
gymnasium[atari]>=0.29.0
gymnasium[classic-control]>=0.29.0
moviepy==1.0.3
numpy==1.26.3
opencv-python==4.9.0.80
torch==2.3.1
torchvision==0.18.1
pytorch-ignite==0.4.13
stable-baselines3==2.2.1
pyarrow==15.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant