0
 docly-gen /Users/abhinandansharma/form_app
        ____             __     
       / __ \____  _____/ /_  __
      / / / / __ \/ ___/ / / / /
     / /_/ / /_/ / /__/ / /_/ / 
    /_____/\____/\___/_/\__, /  
                       /____/   
    
    Loading Engine. Please wait
    Engine Loaded. ✔
    Traceback (most recent call last):
      File "/usr/local/bin/docly-gen", line 8, in <module>
        sys.exit(main())
      File "/usr/local/lib/python3.10/site-packages/docly/cli/docly_gen.py", line 237, in main
        table_rows, docstr_loc, ipynb_files = _process(args, model, tokenizer, ts_lib_path, config)
      File "/usr/local/lib/python3.10/site-packages/halo/halo.py", line 132, in wrapped
        return f(*args, **kwargs)
      File "/usr/local/lib/python3.10/site-packages/docly/cli/docly_gen.py", line 116, in _process
        for code_tokens, params, start_index, function_name, ds in process_file(f, ts_lib_path, args.use_old_model):
      File "/usr/local/lib/python3.10/site-packages/docly/ioutils/__init__.py", line 125, in process_file
        result, parser_obj = py_parser.parse(file_path, ts_lib_path)
      File "/usr/local/lib/python3.10/site-packages/docly/parser/parser.py", line 11, in parse
        python_parser = PythonParser(library_loc=tslib_path)
      File "/usr/local/lib/python3.10/site-packages/tree_hugger/core/parser/python/python_parser.py", line 35, in __init__
        super(PythonParser, self).__init__('python', 'python_queries', PythonParser.QUERY_FILE_PATH, library_loc)
      File "/usr/local/lib/python3.10/site-packages/tree_hugger/core/code_parser.py", line 41, in __init__
        self.parser.set_language(self.language)
    ValueError: Incompatible Language version 11. Must be between 13 and 14

I am trying to generate docstring using docly on macos on python version 3.10 on my zsh shell, I have installed all the prerequiremnts pytorch and treehugger but it gives me error when i run docly-gen. Anybody knows how to fix this?

  • Please, read [How to ask a good question](https://stackoverflow.com/help/how-to-ask) and try to add more details to this. We cannot infer your environment, OS, current configs, and other essential information to help you. and. Welcome to SO! – morallito Sep 26 '22 at 11:54

0 Answers0