I restarted the entire process to ensure I did it right. I copied the config.ini file and changed the credentials info to mine and kept it in the same folder as python_payment. The following error showed up:
Process SpawnProcess-1:
Traceback (most recent call last):
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py”, line 314, in _bootstrap
self.run()
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py”, line 108, in run
self._target(*self._args, **self._kwargs)
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn_subprocess.py”, line 76, in subprocess_started
target(sockets=sockets)
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py”, line 59, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py”, line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py”, line 118, in run
return self.loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py”, line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py”, line 66, in serve
config.load()
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\config.py”, line 471, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\importer.py”, line 21, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1206, in _gcd_import
File “”, line 1178, in _find_and_load
File “”, line 1149, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “C:\Users\vickkram.ramarethina.QUANTA\gitrepos\connect-api-examples\connect-examples\v2\python_payment\main.py”, line 24, in
APPLICATION_ID = config.get(CONFIG_TYPE, “square_application_id”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\configparser.py”, line 797, in get
d = self._unify_values(section, vars)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\vickkram.ramarethina.QUANTA\AppData\Local\Programs\Python\Python311\Lib\configparser.py”, line 1168, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: ‘’