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

InputSizeLimit error regardless of options #10

Closed
ror6ax opened this issue Jan 5, 2025 · 2 comments
Closed

InputSizeLimit error regardless of options #10

ror6ax opened this issue Jan 5, 2025 · 2 comments
Assignees
Labels
failure Something does not work as expected

Comments

@ror6ax
Copy link

ror6ax commented Jan 5, 2025

Hi.
I've just installed codext by means pipx. Both running the main command:

[~]$ codext
Traceback (most recent call last):
  File "/Users/ror6ax/.local/bin/codext", line 5, in <module>
    from codext.__init__ import main
  File "/Users/ror6ax/.local/pipx/venvs/codext/lib/python3.13/site-packages/codext/__init__.py", line 5, in <module>
    from .__common__ import *
  File "/Users/ror6ax/.local/pipx/venvs/codext/lib/python3.13/site-packages/codext/__common__.py", line 205, in <module>
    _set_exc("InputSizeLimitError")
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ror6ax/.local/pipx/venvs/codext/lib/python3.13/site-packages/codext/__common__.py", line 204, in _set_exc
    setattr(builtins, name, locals()[name])
                            ~~~~~~~~^^^^^^

...and the other bundled ones:

[~]$ echo "Test string"  | base91           

Traceback (most recent call last):
  File "/Users/ror6ax/.local/bin/base91", line 5, in <module>
    from codext.base.base91 import main91
  File "/Users/ror6ax/.local/pipx/venvs/codext/lib/python3.13/site-packages/codext/__init__.py", line 5, in <module>
    from .__common__ import *
  File "/Users/ror6ax/.local/pipx/venvs/codext/lib/python3.13/site-packages/codext/__common__.py", line 205, in <module>
    _set_exc("InputSizeLimitError")
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ror6ax/.local/pipx/venvs/codext/lib/python3.13/site-packages/codext/__common__.py", line 204, in _set_exc
    setattr(builtins, name, locals()[name])
                            ~~~~~~~~^^^^^^
KeyError: 'InputSizeLimitError'

...seem to produce the same error.

@dhondta dhondta self-assigned this Jan 5, 2025
@dhondta
Copy link
Owner

dhondta commented Jan 5, 2025

Hi @ror6ax thanks for reporting.
What's your Python version ?
You should get respectively :

$ codext
usage: codext [-h] [-i INFILE] [-o OUTFILE] [-s] {encode,decode,guess,rank,search,list,add-macro,remove-macro} ...
codext: error: the following arguments are required: command
$ echo "Test string"  | base91
"ONK;WDZM%Z%xE

@dhondta dhondta added the failure Something does not work as expected label Jan 5, 2025
@ror6ax
Copy link
Author

ror6ax commented Jan 5, 2025

3.13.1

@dhondta dhondta closed this as completed in 06d7ca5 Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failure Something does not work as expected
Projects
None yet
Development

No branches or pull requests

2 participants