petermr / amilib

Python library of `ami` software especially NLP, HTML, downloading and related convenience utilities
Apache License 2.0
1 stars 0 forks source link

amilib 0.0.8 installation #12

Closed xenophiliamee closed 18 hours ago

xenophiliamee commented 6 months ago

System: Windows11 Gen 64-bit operating system Python Version: Python 3.11.9


PYAMI
***** PYAMI VERSION 0.0.8 *****
command: ['--help']
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\dhana\anaconda3\envs\amilib\Scripts\amilib.exe\__main__.py", line 7, in <module>
  File "C:\Users\dhana\anaconda3\envs\amilib\Lib\site-packages\amilib\amix.py", line 1301, in main
    amix.run_command(sys.argv[1:])
  File "C:\Users\dhana\anaconda3\envs\amilib\Lib\site-packages\amilib\amix.py", line 273, in run_command
    self.parse_and_run_args(args)
  File "C:\Users\dhana\anaconda3\envs\amilib\Lib\site-packages\amilib\amix.py", line 287, in parse_and_run_args
    parser = self.create_arg_parser()
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dhana\anaconda3\envs\amilib\Lib\site-packages\amilib\amix.py", line 214, in create_arg_parser
    amilib_parser = AmiLibArgs().make_sub_parser(subparsers)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dhana\anaconda3\envs\amilib\Lib\site-packages\amilib\util.py", line 829, in make_sub_parser
    self.parser = subparsers.add_parser(self.subparser_arg)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dhana\anaconda3\envs\amilib\Lib\argparse.py", line 1197, in add_parser
    raise ArgumentError(self, _('conflicting subparser: %s') % name)
argparse.ArgumentError: argument command: conflicting subparser: HTML```
petermr commented 6 months ago

Thank you. This is a bug that I have to mend. HTML is not used as an argument and I will remove it. Not sure what the problem is :-)

petermr commented 6 months ago

Can you please report your operating system and the actual command/s you issued? Then we can see if others have the same problem. There is a similar bug at https://github.com/Azure/azure-cli/issues/27025 which suggests upgrading Azure.

Thanks