Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to create logs #26

Closed
dbrianhendrix opened this issue Feb 11, 2024 · 6 comments
Closed

Failing to create logs #26

dbrianhendrix opened this issue Feb 11, 2024 · 6 comments
Assignees

Comments

@dbrianhendrix
Copy link

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

@mbridak
Copy link
Owner

mbridak commented Feb 11, 2024

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.

@mbridak
Copy link
Owner

mbridak commented Feb 11, 2024

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

@mbridak
Copy link
Owner

mbridak commented Feb 11, 2024

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.

@mbridak mbridak self-assigned this Feb 11, 2024
@dbrianhendrix
Copy link
Author

dbrianhendrix commented Feb 11, 2024 via email

@mbridak
Copy link
Owner

mbridak commented Feb 12, 2024

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.

@mbridak mbridak closed this as completed Feb 12, 2024
@dbrianhendrix
Copy link
Author

dbrianhendrix commented Feb 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants