dhondta/python-codext

using Codext guess / Codext rank gives an error

GloriousMadness opened this issue · 3 comments

When I run it on linux and try to use "codext guess" or "codext rank" I get an error message saying:

# echo "3yZe7d" | codext rank
Traceback (most recent call last):
  File "/usr/local/bin/codext", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/dist-packages/codext/__init__.py", line 184, in main
    args.include, args.exclude = __format_list(args.include), __format_list(args.exclude, False)
AttributeError: 'Namespace' object has no attribute 'include'

Hi @GitSunburn !
Thank you for mentioning this.
This is typically due to a missing argument. This issue was fixed in a later version.
Please pip install --upgrade codext. Then you should see version 1.13.4 with pip show codext.

I'm getting the same error with v1.14.0

$ codext -i decode.txt guess                                                                                                                                                                                                            
Traceback (most recent call last):
  File "/home/me/.local/bin/codext", line 8, in <module>
    sys.exit(main())
  File "/home/me/.local/lib/python3.10/site-packages/codext/__init__.py", line 252, in main
    raise e
  File "/home/me/.local/lib/python3.10/site-packages/codext/__init__.py", line 228, in main
    s, lb = args.stop_function, args.lang_backend
AttributeError: 'Namespace' object has no attribute 'lang_backend'

@fluk33 Your issue is solved in #7