I'd really like to try and get this code to work so any help on the script errors would be appreciated:
PS C:\Users\Sam.xx\Meraki\meraki_scripts\v1\id_finder> python id_finder.py -p.* -s on
Searching for pattern .*
Organization "xxxx" - xxxx
Network "Tunbridge Wells 17" - L_595038100766331968
Network "Winchester 16" - L_595038100766332123
Network "Chichester 15" - L_595038100766332454
Network "Covent Garden 21 CCTV" - N_595038100766415284
Network "Guildford 09" - L_595038100766331970
Network "Bromley 01" - L_595038100766332124
Network "Bath 43" - L_595038100766332496
Network "Mondaine 39" - L_595038100766331981
Network "Brighton 13" - L_595038100766332125
Network "Glasgow 14" - L_595038100766332497
Network "Tottenham Court Road 42" - L_595038100766331983
Network "Harrogate 27" - L_595038100766332126
Network "Canterbury 37" - L_595038100766332504
Network "Mayfair 34" - L_595038100766331984
Network "Chelsea 35" - L_595038100766332236
Network "Birmingham 28" - L_595038100766332897
Network "Regent Street 32" - L_595038100766331985
Network "Brent Cross 08" - L_595038100766332237
Network "Feet Two 46" - L_595038100766332917
Network "Princes Street 22" - L_595038100766332122
Network "Brompton 40" - L_595038100766332239
Network "Kingston 23" - L_595038100766332918
Network "Oxford Circus 48" - L_595038100766331986
Network "Cambridge 10" - L_595038100766332240
Network "Salisbury 30" - L_595038100766332919
Network "Chester 07" - L_595038100766332440
Network "Southampton 33" - L_595038100766331505
Network "Stratford 26" - L_595038100766331987
Network "Covent Garden 21" - L_595038100766332242
Network "Richmond 05" - L_595038100766332920
Network "Test Site 55" - L_595038100766331656
Network "Manchester 25" - L_595038100766331988
Network "Exeter 20" - L_595038100766332243
Network "Marble Arch 45" - L_595038100766332921
Network "Bond Street 31" - L_595038100766331989
Network "High Street Kensington 12" - L_595038100766332244
Network "Oxford 38" - L_595038100766332922
Network "Press Office 80" - L_595038100766331990
Network "Jermyn 41" - L_595038100766332245
Network "Feet Four 49" - L_595038100766332923
Network "Trafford 24" - L_595038100766331991
Network "Newcastle 03" - L_595038100766332246
Network "Bromley_Head_Office" - L_595038100766335279
Network "Westfield 02" - L_595038100766332120
Network "Leeds 29" - L_595038100766332335
Network "Covent Garden 50" - L_595038100766347807
Network "Feet Three 47" - L_595038100766332121
Network "Bluewater 04" - L_595038100766332438
Network "System Manager" - N_595038100766375970
Network "Cheltenham 06" - L_595038100766331855
Finished 1 of 11 Organizations
Traceback (most recent call last):
File "C:\Users\Sam.xx\Meraki\meraki_scripts\v1\id_finder\id_finder.py", line 240, in <module>
asyncio.run(main())
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\Sam.xx\Meraki\meraki_scripts\v1\id_finder\id_finder.py", line 203, in main
result = await task
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 614, in _wait_for_one
return f.result() # May raise f.exception().
File "C:\Users\Sam.xx\Meraki\meraki_scripts\v1\id_finder\id_finder.py", line 91, in find_in_organization
networks = await aiomeraki.organizations.getOrganizationNetworks(
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\site-packages\meraki\aio\rest_session.py", line 242, in get_pages
async with await self.request(metadata, "GET", url, params=params) as response:
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\site-packages\meraki\aio\rest_session.py", line 94, in request
return await self._request(metadata, method, url, allow_redirects=False, **kwargs)
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\site-packages\meraki\aio\rest_session.py", line 223, in _request
raise AsyncAPIError(metadata, response, message)
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\site-packages\meraki\exceptions.py", line 42, in __init__
self.message += 'please wait a minute if the key or org was just newly created.'
TypeError: unsupported operand type(s) for +=: 'dict' and 'str'
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x00000293F922AE50>
Traceback (most recent call last):
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 746, in call_soon
self._check_closed()
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x00000293F922AE50>
Traceback (most recent call last):
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 746, in call_soon
self._check_closed()
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x00000293F922AE50>
Traceback (most recent call last):
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 746, in call_soon
self._check_closed()
File "C:\Users\Sam.xx\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
PS C:\Users\Sam.xx\Meraki\meraki_scripts\v1\id_finder>