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
AttributeError: 'NoneType' object has no attribute 'plot' #42
Comments
Yes. Main readme:
|
I forgot to mention in the post above that I've tried the command mentioned in the readme, I get the same error related to attribute 'plot':
|
Yeah, that is really weird, never seen this before. I cannot reproduce it either, so you'll have to do some debugging. The line
should return an axis object, not |
I am getting the same error here:
I am running on a RasPi 4 with 4GB RAM, with the latest Raspbian updates applied. |
I should add that the stressberry-run portion runs without issue. just the plot portion fails. |
Can this issue be re-opened? I just checked this on a raspberry pi zero running buster, and get the same issue. I also installed stressberry on a different pi zero running raspbian strech and the same error happens there too. |
|
Can you confirm that you've tried the latest raspbian release, followed the readme instructions alone and it works? (I've tried on a raspberry pi 4 and the plot function does not work, giving the error mentioned above) |
I would be curious about this too. If nschloe was to start from the current raspbian release image (buster) on a fresh install, do the instructions above work? I am thinking that there may be something that the dev has set up that may have changed with some recent updates (even updates to stretch - not just buster). When I set this up last night on my Pi Zero with Stretch installed, I ran into a few more glitches in the process (namely the numpy issue mentioned elsewhere in this closed thread). I solved this by following the recommendation in that thread to install:
I didn't run into the numpy issue when installing on buster (either on Raspi 4 or Raspi Zero - both clean installs). I only had to fix my path so the .local/bin and local/bin were included. |
For me help,
|
Oh snap - that worked! Thanks lagurus! What does the -U option do in this case? EDIT: just figured out it is 'upgrade' |
I was having the "AttributeError: 'NoneType' object has no attribute 'plot'" error on a fresh install of Raspbian on my new Pi 4. I ran the "pip3 install -U matplotlib" command (thanks @lagurus), which helped, but I still got this error:
I'm a noob, so don't know what that means, but running the command "stressberry-plot stressberry.dat" (without the "MPLBACKEND=Agg" prefix) seems to work. |
@moose4lord That's not an error, it's a just warning (that you won't see a window with the plot, as you would expect on a desktop.) |
I can confirm this fixes the problem for me too. Thanks! |
A freshly installed and updated Raspbian install running https://matplotlib.org/3.1.0/api/api_changes.html#figure-add-subplot-with-no-arguments
|
I'm having trouble plotting data while running on the raspberry pi 4 itself, command line. (Raspbian 10 buster).
Any idea what might be wrong here?
The text was updated successfully, but these errors were encountered: