mbridak/WinterFieldDayLogger

Failing to create logs

Closed this issue · 6 comments

When I press "Generate Logs", I get the following and the adi file is missing most of the contacts.
I am running this on a MacBook Pro using Sonoma.

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/fdlogger/main.py", line 2450, in generate_logs
self.adif()
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/fdlogger/main.py", line 2225, in adif
state = self.get_state(hissection)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/fdlogger/main.py", line 2055, in get_state
state = self.secState[section]
~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'CA'
Abort trap: 6

Hi. What's the version number of the logger that you're using?

From the looks of it, I think you might have used the Field Day logger instead of the Winter Field Day logger.
The lines in the traceback all reference python3.12/site-packages/fdlogger/main.py and the line numbers line up with that code base.

I'm going to make changes to the Field Day logger code and update that package.

Let me know if you agree. You can double check the program name and version by looking at the top of logger window.

Oh, and would you be willing to email me your .db file?

I corrected the error in the FD logger.
My guess is one of your contacts has a bad arrl/rac section. This caused a key error in the lookup of the state.
You can update the Field Day logger and regenerate the ADI. Or correct the incorrect logged section. Or both.

Glad it worked. I'll close out this issue then. Thanks for reporting the problem. If you plan on operating in other contests, I'd point you too Not1MM. That's where 90% of my development time is directed.

73, Mike K6GTE.