colinhowe / monner

monner
Apache License 2.0
270 stars 18 forks source link

Errors running example - import: unable to open X server `'. #5

Closed theresia closed 12 years ago

theresia commented 12 years ago

I tried running it:

tre@local [/home/tre/monner]# ./monner.py --target-output /dev/null wget http://www.google.com import: unable to open X server '. import: unable to open X server'. ./monner.py: line 4: KILOBYTES: command not found ./monner.py: line 5: MEGABYTES: command not found ./monner.py: line 7: syntax error near unexpected token (' ./monner.py: line 7:def _get_cpu_stats():'

colinhowe commented 12 years ago

try:

python manage.py  --target-output /dev/null wget http://www.google.com

Also, did you run setup.py?

theresia commented 12 years ago

my bad, just realized that I omitted the call to python interpreter :-/.

this works:

tre@local [/home/tre/monner]# python ./monner.py --target-output /dev/null wget http://www.google.com

rouge8 commented 12 years ago

Installed from pip, ran the example, get the following error:

$ monner.py --target-output /dev/null wget http://www.google.com

/home/andy/.local/bin/monner.py: line 4: KILOBYTES: command not found
/home/andy/.local/bin/monner.py: line 5: MEGABYTES: command not found
/home/andy/.local/bin/monner.py: line 7: syntax error near unexpected token `('
/home/andy/.local/bin/monner.py: line 7: `def _get_cpu_stats():'

Doh I understand. Same problem.

colinhowe commented 12 years ago

Hello! Latest version (as of about 2 minutes ago) just uses monner:

monner --target-output /dev/null wget http://www.google.com