NameError |
Python 3.11.12: /usr/bin/python3 Tue Sep 2 03:59:20 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/httpdocs/cgi-bin/GetEventsForMobile.py in <module> |
436 CreateTable(thisMonth,thisYear,int(monthsAhead)) |
437 |
438 |
439 if __name__ == '__main__': |
=> 440 main() |
main = <function main> |
/httpdocs/cgi-bin/GetEventsForMobile.py in main() |
433 if not monthsAhead : |
434 monthsAhead=0 |
=> 435 (thisMonth,thisYear)=FillDatabase(monthsAhead) |
436 CreateTable(thisMonth,thisYear,int(monthsAhead)) |
437 |
thisMonth undefined, thisYear undefined, global FillDatabase = <function FillDatabase>, monthsAhead = '3' |
/httpdocs/cgi-bin/GetEventsForMobile.py in FillDatabase(monthsAhead='3') |
84 creds = store.get() |
85 if not creds or creds.invalid: |
=> 86 flow = client.flow_from_clientsecrets('credentials.json', SCOPES) |
87 creds = tools.run_flow(flow, store) |
88 service = build('calendar', 'v3', http=creds.authorize(Http())) |
flow undefined, global client = <module 'oauth2client.client' from '/httpdocs/cgi-bin/oauth2client/client.py'>, client.flow_from_clientsecrets = <function flow_from_clientsecrets>, SCOPES undefined |
NameError: name 'SCOPES' is not defined
add_note =
<built-in method add_note of NameError object>
args =
("name 'SCOPES' is not defined",)
name =
'SCOPES'
with_traceback =
<built-in method with_traceback of NameError object>