Skip to Content.
Sympa Menu

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

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] ps_remove_data.py


Chronological Thread 
  • From: Andrew Lake <>
  • To: Ian Gandon <>, "" <>
  • Subject: Re: [perfsonar-user] ps_remove_data.py
  • Date: Fri, 4 Oct 2019 06:21:11 -0700

Hi,

Before you run that command make sure you switch to the Esmond python virtualenv with the following commands:

cd /usr/lib/esmond
. bin/activate
python /usr/lib/esmond/util/ps_remove_data.py -c usr/lib/esmond/util/ps_remove_data.conf

Hope that helps,
Andy


On October 4, 2019 at 4:47:03 AM, Ian Gandon () wrote:

Good Morning All,

 

Looking at clearing the data from my measurement archive (test data) prior to going live with our perfsonar implementation.

 

When I run the script it errors immediately with the below:

 

[PERF-01 util]$ 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 86, in <module>

    django.setup()

  File "/usr/lib/python2.7/site-packages/django/__init__.py", line 22, in setup

    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)

  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__

   self._setup(name)

  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup

    self._wrapped = Settings(settings_module)

  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__

    mod = importlib.import_module(self.SETTINGS_MODULE)

  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module

    __import__(name)

ImportError: No module named esmond.settings

 

At a guess something is missing in the path which stops it seeing Esmond.settings but not sure where this would live? Can anyone help?

 

Thanks

 

 

 

https://www.onwave.com/wp-content/uploads/2016/07/onwave-signature.png

Ian Gandon

Network Infrastructure Systems Administrator

Direct Dial: +44(0)20 3434 2146

Office: 0844 775 0000
Email: 


www.onwave.com 
https://www.onwave.com/wp-content/uploads/2016/07/f2.png  https://www.onwave.com/wp-content/uploads/2016/07/t2.png  https://www.onwave.com/wp-content/uploads/2016/07/l2.png

 

 

CONFIDENTIALITY AND DISCLAIMER NOTICE:
This e-mail is intended only for the addressee named above and the contents should not be disclosed to any other person nor copies taken. Any views or opinions presented are solely those of the sender and do not necessarily represent those of Onwave UK Ltd unless otherwise specifically stated. As internet communications are not secure we do not accept legal responsibility for the contents of this message nor responsibility for any change made to this message after it was sent by the original sender. We advise you to carry out your own virus check before opening any attachment as we cannot accept liability for any damage sustained as a result of any software viruses.
Under the General Data Protection Regulations 2016/679, we have a legal duty to protect any information we collect from you. Onwave UK Ltd is committed to ensuring the security and protection of the personal information that we process. Any email and files/attachments transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If this message has been sent to you in error, you must not copy, distribute or disclose any of the information it contains. Please notify the sender immediately and delete the message from your email system.
Registered in England No: 7490613
--
To unsubscribe from this list: https://lists.internet2.edu/sympa/signoff/perfsonar-user



Archive powered by MHonArc 2.6.19.

Top of Page