ivbeg / docx2csv

Extracts tables from .docx files and saves them as .csv or .xls files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bin/docx2csv is not executable

K4zuki opened this issue · comments

Condition

  • MacOS
  • Python 2.7, 3.6

Problem

  • docx2csv is not executable(a permission error occurs)
$ /usr/local/bin/docx2csv

bash: /usr/local/bin/docx2csv: Permission denied

How to confirm

$ ls -l `which docx2csv`

-rw-r--r--  1 yamamoto  admin  1177 Dec 13 21:13 /usr/local/bin/docx2csv

  • Simple chmod +x bin/docx2csv would fix the issue

Other way would be 'python3 /usb/local/bin/docx2csv $filepath'

Replaced docx2csv script to same name entry point in doc2csv/main.py. It could be called as docx2csv or python -m docx2csv