Hi, does anyone knows why my raspberry pi with ubuntu mate, and python 3.6.2 is giving me this error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi, does anyone knows why my raspberry pi with ubuntu mate, and python 3.6.2 is giving me this error?

I've done a pip install, of the wikipedia API, im learning, and i dont know why it gives me this error kucono@kucono-desktop:~$ python3 wikipedia.py Traceback(most recent call last): File "wikipedia.py", line 2, in <module> import wikipedia File "/home/kucono/wikipedia.py", line 4, in <module> page = wikipedia.summary("wikipedia") AttributeError: module 'wikipedia' has no attribute 'summary'

4th Oct 2020, 8:05 AM
Ismael Rojas
Ismael Rojas - avatar
1 Answer
+ 1
because wikipedia doesnt have a summary attribute. try printing print(dir(wikipedia)) thatll show ya what its got
4th Oct 2020, 8:18 AM
Slick
Slick - avatar