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

TypeError and AttributeError #3

Open
HarryChoi1108 opened this issue May 24, 2021 · 0 comments
Open

TypeError and AttributeError #3

HarryChoi1108 opened this issue May 24, 2021 · 0 comments

Comments

@HarryChoi1108
Copy link

  1. TypeError

Traceback (most recent call last):
File "/Users/harry/Documents/Notion Google calander intergration/notion2googlecal-master/main.py", line 326, in
main("request")
File "/Users/harry/Documents/Notion Google calander intergration/notion2googlecal-master/main.py", line 64, in main
events_result = service.events().list(calendarId=calendar_id,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/googleapiclient/discovery.py", line 1018, in method
raise TypeError('Missing required parameter "%s"' % name)
TypeError: Missing required parameter "calendarId"

The above error shows when line 64 is the following
events_result = service.events().list(calendarId=calendar_id,

The bug disappear when I replace the "calendar_id" to the actual calendar id found in Google Calendar.

  1. AttributeError
    The programme ask for the notion account and password, after typing it in the console, the following appears:

Traceback (most recent call last):
File "/Users/harry/Documents/Notion Google calander intergration/notion2googlecal-master/main.py", line 326, in
main("request")
File "/Users/harry/Documents/Notion Google calander intergration/notion2googlecal-master/main.py", line 79, in main
calendar = client.get_collection_view(notion_cal)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/notion/client.py", line 211, in get_collection_view
if url_or_id.startswith("http"):
AttributeError: 'NoneType' object has no attribute 'startswith'

I can't solve the problem, and hope you can help me.

Thank you very much. :) Harry

If you wanna contact me via email, [email protected]

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

1 participant