On Thu, Feb 28, 2013 at 12:16 PM, Andrew Pollock <apoll...@debian.org>wrote:
> > This smells like a problem with your Python installation. What does "python > -msite" do? > > rrs@web1:~$ python -msite Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] 'import site' failed; use -v for traceback python: module site not found Works fine when run as root. rrs@web1:~$ dstat Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] 'import site' failed; use -v for traceback Traceback (most recent call last): File "/usr/bin/dstat", line 17, in ? from __future__ import generators ImportError: No module named __future__ rrs@web1:~$ sudo dstat [sudo] password for rrs: You did not select any stats, using -cdngy by default. ----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system-- usr sys idl wai hiq siq| read writ| recv send| in out | int csw 0 0 97 2 0 0| 404k 235k| 0 0 | 30B 439B| 185 62 0 0 100 0 0 0| 0 0 | 198B 162B| 0 0 | 147 20 0 0 100 0 0 0| 0 0 | 66B 850B| 0 0 | 77 20 ^C Traceback (most recent call last): File "/usr/bin/dstat", line 2557, in <module> sys.stdout.write('\n') KeyboardInterrupt -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention."