django - Error when running a python script - invalid syntax -


i keep getting error when running python script

sudo python net-creds.py   file "net-creds.py", line 75     ipr = popen([‘/usr/local/bin/ip’, 'route'], stdout=pipe, stderr=dn)                  ^ syntaxerror: invalid syntax 

you using " ` " instead of '.so try this

ipr = popen(['/usr/local/bin/ip', 'route'], stdout=pipe, stderr=dn) 

Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -