<div dir="ltr">dfr@cmake:~/m9k2/buildroot$ ll /usr/bin/python<br>lrwxrwxrwx 1 root root 7 Apr 15 06:45 /usr/bin/python -> python2*<div><br></div><div>I set the link back to python3 and now it works!</div><div><br></div><div>Thanks!!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 28, 2020 at 4:54 PM Thomas Petazzoni <<a href="mailto:thomas.petazzoni@bootlin.com">thomas.petazzoni@bootlin.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
Please use Reply-All when replying, to keep the mailing list in Cc,<br>
thanks.<br>
<br>
On Thu, 28 May 2020 16:49:11 -0400<br>
Todd Sampson <<a href="mailto:sampsonats@gmail.com" target="_blank">sampsonats@gmail.com</a>> wrote:<br>
<br>
> dfr@cmake:~/m9k2/buildroot$ sudo apt install python3-matplotlib<br>
> [sudo] password for dfr:<br>
> Reading package lists... Done<br>
> Building dependency tree<br>
> Reading state information... Done<br>
> python3-matplotlib is already the newest version (3.1.2-1ubuntu4).<br>
> 0 upgraded, 0 newly installed, 0 to remove and 84 not upgraded.<br>
> dfr@cmake:~/m9k2/buildroot$ make graph-size<br>
> *You need python-matplotlib to generate the size graph*<br>
> make[1]: *** [Makefile:904: graph-size] Error 1<br>
> make: *** [Makefile:84: _all] Error 2<br>
<br>
Then this means that your /usr/bin/python is pointing to<br>
/usr/bin/python2. The script being "make graph-size",<br>
support/scripts/size-stats, simply uses "/usr/bin/env python", which it<br>
assumes is your default interpreter, which should have matplotlib<br>
installed.<br>
<br>
Is is the standard Ubuntu 20.04 behavior to have python point to<br>
python2, but no longer provide python-matplotlib. This looks odd. Have<br>
you changed your /usr/bin/python perhaps ?<br>
<br>
Thomas<br>
-- <br>
Thomas Petazzoni, CTO, Bootlin<br>
Embedded Linux and Kernel engineering<br>
<a href="https://bootlin.com" rel="noreferrer" target="_blank">https://bootlin.com</a><br>
</blockquote></div>