Skip to Content.
Sympa Menu

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

Subject: perfSONAR User Q&A and Other Discussion

List archive

AW: [perfsonar-user] Using ps_remove_data.py


Chronological Thread 
  • From: "Garnizov, Ivan" <>
  • To: David Cohen <>, Andrew Lake <>
  • Cc: "" <>
  • Subject: AW: [perfsonar-user] Using ps_remove_data.py
  • Date: Thu, 4 Jun 2020 14:25:03 +0000

Hi David,

 

Please also tell what pS software are you running and what version on which OS.

We can only assume here about pS Toolkit on CentOS 7.x.

 

Please check if you have the required package:

 

‘yum list python-dateutil’

 

 

Regards,

Ivan Garnizov

 

GEANT WP6T3: pS development team

GEANT WP7T1: pS deployments GN Operations

GEANT WP9T2: Software governance in GEANT

 

 

 

Von: [mailto:] Im Auftrag von David Cohen
Gesendet: Donnerstag, 4. Juni 2020 14:58
An: Andrew Lake <>
Cc:
Betreff: Re: [perfsonar-user] Using ps_remove_data.py

 

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