Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
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'
1 Antwort
+ 1
because wikipedia doesnt have a summary attribute.
try printing
print(dir(wikipedia))
thatll show ya what its got