Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Using ps_remove_data.py

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Using ps_remove_data.py


Chronological Thread 
  • From: David Cohen <>
  • To: Andrew Lake <>
  • Cc:
  • Subject: Re: [perfsonar-user] Using ps_remove_data.py
  • Date: Thu, 4 Jun 2020 15:57:36 +0300

Hi Andrew,
. bin/activate
is now working but dateutil is still missing,
thee is also a typo in the instructions, a missing "/" in the beginning of conf file path.

[root@tech-ps ~]# cd /usr/lib/esmond/
[root@tech-ps esmond]# . bin/activate
(esmond)[root@tech-ps esmond]# python /usr/lib/esmond/util/ps_remove_data.py -c usr/lib/esmond/util/ps_remove_data.conf
Traceback (most recent call last):
  File "/usr/lib/esmond/util/ps_remove_data.py", line 94, in <module>
    import dateutil.parser
ImportError: No module named dateutil.parser
(esmond)[root@tech-ps esmond]#

Cheers,
David



On Thu, Jun 4, 2020 at 3:47 PM Andrew Lake <> wrote:
What happens when you change your current working directory to  /usr/lib/esmond/ before running the script (i.e. cd  /usr/lib/esmond/)? Possible it is making assumptions about the python path relative to the current directory.



On June 4, 2020 at 5:53:20 AM, David Cohen () wrote:

Hi,
Recently, I observed that the PerfSonar root partition is close to full.
Trying to use ps_remove_data.py as documented at:

Produced some django and dateutils couldn't be found errors.
That worked for me though:

source /usr/lib/esmond/bin/activate
export PYTHONPATH=/usr/lib/python2.7/site-packages
python /usr/lib/esmond/util/ps_remove_data.py -c /usr/lib/esmond/util/ps_remove_data.conf


Best regards,
David
--
To unsubscribe from this list: https://lists.internet2.edu/sympa/signoff/perfsonar-user



Archive powered by MHonArc 2.6.19.

Top of Page