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

Running errors #3

Open
roanhope opened this issue Oct 9, 2022 · 2 comments
Open

Running errors #3

roanhope opened this issue Oct 9, 2022 · 2 comments

Comments

@roanhope
Copy link

roanhope commented Oct 9, 2022

Hi Felix,
I have these questions.
I run inverted_pendulum.ipynb and got an error like this.
TypeError: slice indices must be integers or None or have an index method
error
Could you please help to fix it?

@befelix
Copy link
Owner

befelix commented Oct 10, 2022

This code is ancient and unfortunately not actively supported. If I had to guess, then somehow n ended up being an ndarray when it should be an integer. I'm guessing installing an old version of numpy would fix the issue too.

@roanhope
Copy link
Author

This code is ancient and unfortunately not actively supported. If I had to guess, then somehow n ended up being an ndarray when it should be an integer. I'm guessing installing an old version of numpy would fix the issue too.

Thanks for the reply! I will try your advice.

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

2 participants