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

Traceback error #13

Open
Leerensucher opened this issue Jan 31, 2023 · 1 comment
Open

Traceback error #13

Leerensucher opened this issue Jan 31, 2023 · 1 comment

Comments

@Leerensucher
Copy link

Whenever I try to start fcmacros.exe I get a traceback error:

Traceback (most recent call last):
File "fcmacros.py", line 938, in
File "fcmacros.py", line 934, in run_main
File "fcmacros.py", line 919, in run_ui
File "fcmacros.py", line 778, in setup_ui
File "fcmacros.py", line 122, in get_latest_log_file
ValueError: max() arg is an empty sequence

Can anybody help, please?

@pilotso11
Copy link
Owner

It can't find your latest log file.
It's a bit dumb, so if you're E:D logs are not on your C: drive it might fail.
Its just doing:

def get_latest_log_file():
list_of_files = glob.glob(
f"C:\Users\{getpass.getuser()}\Saved Games\Frontier Developments\Elite Dangerous\Journal.*")
return max(list_of_files, key=os.path.getmtime)

If you are running from source, you can just change that to the drive your logs are on.
It would be nice if this was smarter about finding the logs.

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