| NameError | Python 3.9.21: /usr/bin/python3 Sat Nov 1 18:13:27 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.py in <module> |
| 427 CreateTable(thisMonth,thisYear,int(monthsAhead)) |
| 428 |
| 429 |
| 430 if __name__ == '__main__': |
| => 431 main() |
| main = <function main> |
| /home/epp/t2k/www/svi/GetEventsForMobile.py in main() |
| 424 if not monthsAhead : |
| 425 monthsAhead=0 |
| => 426 (thisMonth,thisYear)=FillDatabase(monthsAhead) |
| 427 CreateTable(thisMonth,thisYear,int(monthsAhead)) |
| 428 |
| thisMonth undefined, thisYear undefined, global FillDatabase = <function FillDatabase>, monthsAhead = '-1' |
| /home/epp/t2k/www/svi/GetEventsForMobile.py in FillDatabase(monthsAhead='-1') |
| 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>