Score:0

Code works in Spyder3 but gives no attribute errors in Geany

zw flag

I am running Ubuntu 20.04, and Python 3.8.1. I have a piece of code that runs fine in Spyder3 but does not run in Geany. It says there are missing attributes in matplotlib. This code runs perfectly on a second computer I have in the room with me running Ubuntu 16 and 3.6.

I have changed the build section in Geany to python3 rather than just python. I have also changed the symbolic link for python to python3 but get the same behavior.

I am running out of ideas other than reinstalling Ubuntu (again) or downgrading to python 3.6, which is where it works on my other computer.

Anybody better versed have some ideas?

The error I get is:

line 271, in init f = matplotlib.figure.Figure(self.figsize) File "/usr/local/lib/python3.8/dist-packages/matplotlib/_api/init.py", line 224, in getattr raise AttributeError( AttributeError: module 'matplotlib' has no attribute 'figure'

freezed avatar
cn flag
Welcome to Ask Ubuntu. Please [take the tour](https://askubuntu.com/tour) to learn how Ask Ubuntu works. Read [how to ask](https://askubuntu.com/questions/how-to-ask) to improve the quality of your question. Then take a look to [the help center](https://askubuntu.com/help/on-topic) to see if some _on-topic questions_ are already asked.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.