-
Notifications
You must be signed in to change notification settings - Fork 42
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
WinError 10013 when trying to create calendar object #49
Comments
I think the problem is that Try class GoogleCalendarOnAnotherPort(GoogleCalendar):
def _get_credentials(self):
_credentials_path = os.path.join(self._credentials_dir, self._credentials_file)
credentials = None
if os.path.exists(self._token_path):
with open(self._token_path, 'rb') as token:
credentials = pickle.load(token)
if not credentials or not credentials.valid:
if credentials and credentials.expired and credentials.refresh_token:
credentials.refresh(Request())
else:
flow = InstalledAppFlow.from_client_secrets_file(_credentials_path, self._scopes)
credentials = flow.run_local_server(port=8090) # note the port parameter. Change to any free port
with open(self._token_path, 'wb') as token:
pickle.dump(credentials, token)
return credentials It is a workaround and should be fixed in the future version of the Thank you for the issue submission. |
Perfect! That was exactly the issue, I set it to use a different port and everything is working great. Thanks so much. |
I'll leave the issue open until it is fixed in the implementation |
I think this is potentially due to either attempting to run this on a computer that's managed by my organization or something, but when I try to just run the first line to instantiate a "calendar" object, I get this error:
The text was updated successfully, but these errors were encountered: