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

Attribute error running CLI #14

Closed
drl2 opened this issue May 7, 2024 · 4 comments
Closed

Attribute error running CLI #14

drl2 opened this issue May 7, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@drl2
Copy link

drl2 commented May 7, 2024

Windows 11, using the 0.4.1 version of the windows executable; unable to start CLI executable.

D:\Projects\RPG\Traveller Mg2\TravData>travdata_cli.exe listbooks
Traceback (most recent call last):
File "travdata\cli\cli.py", line 18, in
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "travdata\cli\cliutil.py", line 13, in
File "travdata\cli\cliutil.py", line 16, in UsageError
AttributeError: module 'os' has no attribute 'EX_USAGE'
[15556] Failed to execute script 'cli' due to unhandled exception!

@huin
Copy link
Owner

huin commented May 7, 2024

Thanks for the report. I've reproduced it on my end, and found the cause and an easy fix.

Yet another case of me not testing on Windows, oops.

No trivial mitigation on this one I'm afraid, the fix will have to wait for a new release (I'll aim for v0.4.2), which will hopefully fix #15 as well.

@huin
Copy link
Owner

huin commented May 7, 2024

Filed #16 to avoid this type of thing in future.

@huin
Copy link
Owner

huin commented May 7, 2024

This will be fixed by c76b6ff - but I'll keep this issue open until a new release is out with the fix.

@huin huin self-assigned this May 7, 2024
@huin huin added the bug Something isn't working label May 7, 2024
@huin huin closed this as completed May 7, 2024
@huin
Copy link
Owner

huin commented May 7, 2024

Release v0.4.2 should fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants