Skip to content

next thing faced #15

@vsuh

Description

@vsuh
Docx plain text mirror...................................................Failed                                                             
- hook id: docxplain                                                                                                                        
- exit code: 1                                                                                                                              
                                                                                                                                            
See http://johnmacfarlane.net/pandoc/installing.html                                                                                        
for installation options                                                                                                                    
---------------------------------------------------------------                                                                             
                                                                                                                                            
Traceback (most recent call last):                                                                                                          
  File "c:\program files\python38\lib\runpy.py", line 194, in _run_module_as_main                                                           
    return _run_code(code, main_globals, None,                                                                                              
  File "c:\program files\python38\lib\runpy.py", line 87, in _run_code                                                                      
    exec(code, run_globals)                                                                                                                 
  File "C:\Users\UserName\.cache\pre-commit\repovcfqg7md\py_env-python3.8\Scripts\docxplain.EXE\__main__.py", line 7, in <module>            
  File "c:\users\UserName\.cache\pre-commit\repovcfqg7md\py_env-python3.8\lib\site-packages\docxplain\cli.py", line 13, in main              
    changed = convert_file(args.source, suffix=args.suffix, header=args.header)                                                             
  File "c:\users\UserName\.cache\pre-commit\repovcfqg7md\py_env-python3.8\lib\site-packages\docxplain\converter.py", line 44, in convert_file
    pypandoc.convert_file(str(docx_path), "plain", outputfile=str(plain_path))                                                              
  File "c:\users\UserName\.cache\pre-commit\repovcfqg7md\py_env-python3.8\lib\site-packages\pypandoc\__init__.py", line 137, in convert_file 
    return _convert_input(source_file, format, 'path', to, extra_args=extra_args,                                                           
  File "c:\users\UserName\.cache\pre-commit\repovcfqg7md\py_env-python3.8\lib\site-packages\pypandoc\__init__.py", line 256, in _convert_inpu
t                                                                                                                                           
    _ensure_pandoc_path()                                                                                                                   
  File "c:\users\UserName\.cache\pre-commit\repovcfqg7md\py_env-python3.8\lib\site-packages\pypandoc\__init__.py", line 548, in _ensure_pando
c_path                                                                                                                                      
    raise OSError("No pandoc was found: either install pandoc and add it\n"                                                                 
OSError: No pandoc was found: either install pandoc and add it                                                                              
to your PATH or or call pypandoc.download_pandoc(...) or                                                                                    
install pypandoc wheels with included pandoc.                                                                                               
                                                                                                                                            

pypandoc already installed

pip install pypandoc
Requirement already satisfied: pypandoc in c:\program files\python38\lib\site-packages (1.5)
Requirement already satisfied: wheel>=0.25.0 in c:\program files\python38\lib\site-packages (from pypandoc) (0.36.2)
Requirement already satisfied: setuptools in c:\program files\python38\lib\site-packages (from pypandoc) (41.2.0)
Requirement already satisfied: pip>=8.1.0 in c:\program files\python38\lib\site-packages (from pypandoc) (21.1.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions