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

Tutorial plot failure #171

Closed
rtkg opened this issue Oct 9, 2023 · 3 comments
Closed

Tutorial plot failure #171

rtkg opened this issue Oct 9, 2023 · 3 comments

Comments

@rtkg
Copy link

rtkg commented Oct 9, 2023

The first Python example fails when trying to plot with following error:

AttributeError: type object 'Plotter' has no attribute 'plot_trajectory'

I'm running Ubuntu 22.04 with version 1.3.20 of the Python Plotter library.

@pantor
Copy link
Owner

pantor commented Oct 9, 2023

The plotter class refers to this file in the test directory, and not to a third-party package. For a quick solution, you could add this directory to your PYTHONPATH, set sys.path before import plotter, or just copy-paste the file into the examples directory.

I'll add a comment / fix to make this more clear and easy to use. Thanks for catching that!

@rtkg
Copy link
Author

rtkg commented Oct 9, 2023

Perfect, thanks. One small additional note: I think the Path class needs to be imported explicitly as well.

from pathlib import Path

@pantor
Copy link
Owner

pantor commented Oct 9, 2023

Should be fixed now.

@pantor pantor closed this as completed Oct 9, 2023
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