'Error: The syntax of the command is incorrect
I'm trying to run this on windows https://github.com/brian-yang/table-parser-opencv
It says I should run it as follows: python main.py <filepath>
When I try to run it like this:
python main.py <C:\Users\blabla\files\filename.jpg>
It gives that error
I also tried like this:
python main.py <'C:\Users\blabla\files\filename.jpg'>
and like this:
python main.py <"C:\Users\blabla\files\filename.jpg">
and like this:
python main.py <r"C:\Users\blabla\files\filename.jpg">
and like this:
python main.py <r'C:\Users\blabla\files\filename.jpg'>
I also tried it with a pdf.
and it still gives the error "The syntax of the command is incorrect"
Can anyone offer any advice? I tried in python interpreter and that seemed to be wrong as well, considering the line of code is already calling python.
Solution 1:[1]
You should try this:
python main.py C:\Users\blabla\files\filename.jpg
It is basically a way of passing the parameters using command line
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sunil Solanki |
