NameError | Python 3.9.21: /usr/bin/python3 Wed Oct 22 19:35:34 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.
/home/epp/t2k/www/svi/GetEventsForMobile_Dev.py in <module> |
415 CreateTable(thisMonth,thisYear,int(monthsAhead)) |
416 |
417 |
418 if __name__ == '__main__': |
=> 419 main() |
main = <function main> |
/home/epp/t2k/www/svi/GetEventsForMobile_Dev.py in main() |
412 if not monthsAhead : |
413 monthsAhead=0 |
=> 414 (thisMonth,thisYear)=FillDatabase(monthsAhead) |
415 CreateTable(thisMonth,thisYear,int(monthsAhead)) |
416 |
thisMonth undefined, thisYear undefined, global FillDatabase = <function FillDatabase>, monthsAhead = 0 |
/home/epp/t2k/www/svi/GetEventsForMobile_Dev.py in FillDatabase(monthsAhead=0) |
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 '/usr/local/l.../python3.9/site-packages/oauth2client/client.py'>, client.flow_from_clientsecrets = <function flow_from_clientsecrets>, SCOPES undefined |
NameError: name 'SCOPES' is not defined
args =
("name 'SCOPES' is not defined",)
with_traceback =
<built-in method with_traceback of NameError object>