Open nissenyeh opened 4 years ago
I'm getting the same -- it works if I do the following in a python REPL, but not if I run the same commands in a script. I'm running both through Poetry, so I don't think it's a library path issue.
import notion
import notion.client
client = notion.client.NotionClient(token_v2=<TOKEN>)
notion-py: 0.0.25
Ah, you did the same thing that I did -- since your file is notion.py
, Python looks for the Notion client stuff in that file, instead of the library. Rename the file and it'll work
I did the same thing too 😂
Thanks @neildryan I did the same thing too before finding this issue. Probably the same for #253
I use
pip3 install notion
andpython3 <myscript>
but i got
ModuleNotFoundError: No module named 'notion.client'; 'notion' is not a package