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

Java 8 + Maven Javadoc plugin: Error fetching URL -

java - POJO with list of POJO to JSON display size and index -

objective c - Deep Linking for iOS Apps which are not installed yet? -