LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem running a .py file (https://www.linuxquestions.org/questions/linux-newbie-8/problem-running-a-py-file-4175571877/)

chris_crunch 02-10-2016 07:34 AM

Problem running a .py file
 
I'm trying to execute a python script from the command line, the file name is "download_model_binary.py". I've been told via google browsing to execute/run it, I just type

Code:

python download_model_binary.py
However I'm getting this error message
Code:

chris@chris-crunch:~/apps/caffe-master/scripts$ python download_model_binary.py
usage: download_model_binary.py [-h] dirname
download_model_binary.py: error: too few arguments

So I'm assuming my codes wrong, but I can't find out why...

schneidz 02-10-2016 07:36 AM

not sure what the program does but it seems to be complaining that you are not telling it what directory you want it to do something with ?

chris_crunch 02-10-2016 07:40 AM

Aha, never mind I was being completely stupid and copy-pasted half a command wrong. (facepalm) Good spot...


All times are GMT -5. The time now is 05:35 AM.