I have tried every online formatter, I could find and every which way to indent but I continuously am getting an error on from data.find_pending_records
. Here is my code:
"""Start Point"""
from data.find_pending_records
import FindPendingRecords
from vital.vital_entry
import VitalEntry
if __name__ == "__main__":
try:
# Instantiates FindPendingRecords then gets records to process
for PENDING_RECORDS = FindPendingRecords().get_excel_data()
# Reads excel to map data from excel to vital
MAP_DATA = FindPendingRecords().get_mapping_data()
# Configures Driver
for vital
VITAL_ENTRY = VitalEntry()
# Start chrome and navigate to vital website
VITAL_ENTRY.instantiate_chrome()
# Begin processing Records
VITAL_ENTRY.process_records(PENDING_RECORDS, MAP_DATA)
print(PENDING_RECORDS)
print("All done")
except Exception as exc:
print(exc)
The error in the Anaconda prompt isn't very informative. It's just giving:
SyntaxError: invalid syntax
(base) C:\Python>python main.py
File "main.py", line 4
from data.find_pending_records
Also, in Visual Studio Code it's just a red squiggly line under the same from
, no details either.
Any ideas?