akarri2001 / Notion-and-Google-Calendar-2-Way-Sync

2 Way Sync Between Notion Database and Google Calendar
GNU General Public License v3.0
354 stars 51 forks source link

Notion client #4

Open HarryChoi1108 opened 3 years ago

HarryChoi1108 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

HarryChoi1108 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

ali-rasheed commented 3 years ago

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