jamalex / notion-py

Unofficial Python API client for Notion.so
MIT License
4.28k stars 476 forks source link

Unable to import 'Notion.client' #253

Open spctrm404 opened 3 years ago

spctrm404 commented 3 years ago
  1. Working evironment
    • Win10 64bit
    • Python 3.8.7 32-bit
    • write script and run on VSCODE
  2. Symptom
    • pylint pointed out that from notion.client import NotionClient is having a problem: Unable to import 'Notion.Client'
    • Obviously, when I run the code, I get ModuleNotFoundError: No module named'Notion'
  3. What I`ve tried
    • Remove all packages that were installed with pip, and did pip install notion => DOES NOT WORK
    • pip install "notion==0.0.25" => DOES NOT WORK
    • Using venv => DOES NOT WORK (Despite confirming that a folder named 'notion' was created inside venv)

All other packages work without any problems. Only this notion-py causes the problem.

TatamoChang commented 3 years ago

@spctrm404 I get this problem because I create notion.py in project folder. Solve that after rename notion.py.

ketra21 commented 2 years ago

maybe you have not install notion successfully,i have get the same problem,and tryto replace "pip install notion" with "pip install notion --user" ,after that there is no error with run "import notion". good luck!

liuxk99 commented 1 year ago

source file name should be different with notion.py, because the package is notion too!