Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notion client #4

Open
HarryChoi1108 opened this issue May 31, 2021 · 6 comments
Open

Notion client #4

HarryChoi1108 opened this issue May 31, 2021 · 6 comments

Comments

@HarryChoi1108
Copy link

When I run the code.
It shows the following

ModuleNotFoundError: No module named 'notion_client'

I have installed notion and also no other file named notion.py, so I don't know how to solve that.

The second error is that "GCalTokenLocation is not defined"
I have put my notion token string in the NOTION_TOKEN(line 15)

@Sjaakie-stud
Copy link

The first error can be solved by installing this module using pip: https://pypi.org/project/notion-client/

Not sure about the second one, cause I don't have a variable called GCalTokenLocation in my code.

@HarryChoi1108
Copy link
Author

The second error occurs on line 95 and 15. (indicated by VSCode)

@HarryChoi1108
Copy link
Author

HarryChoi1108 commented May 31, 2021

After solving the first problem.

Another problem occurs.

credentials = pickle.load(open(credentialsLocation, "rb"))
_pickle.UnpicklingError: invalid load key, '{'.

(line82)

Thanks a lot for your help :)

@idislikebrian
Copy link

The second error is that "GCalTokenLocation is not defined"

@HarryChoi1108 I'm getting that issue as well

Curious if this was what is now credentialsLocation variable??

Same thing is happening to me with ExtraInfo_Notion_Name variable as well (Line 431, 575, 1048, 1165 in example code here)

@akarri2001
Copy link
Owner

Hey! Could you try this out with the new code that I uploaded and tell me if the problem is still there?

@ali-rasheed
Copy link

I get this error when I run the BAT file
File "C:\Users\alias\Documents\Notion-and-Google-Calendar-2-Way-Sync\Notion-GCal-2WaySync-Public.py", line 100, in <module> credentials = pickle.load(open(credentialsLocation, "rb")) FileNotFoundError: [Errno 2] No such file or directory: 'token.pkl'
Though it works fine if I run the python file manually in the terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants