insights-client on Red Hat Enterprise Linux 6 sends cron email about python module warning

Solution Verified - Updated -

Issue

  • insights-client daily cron job sends below email

    /etc/cron.daily/insights-client:
    
    /var/lib/insights/last_stable.egg/insights/client/connection.py:11: UserWarning: Module insights was already imported from /var/lib/insights/last_stable.egg/insights/__init__.py, but /etc/insights-client/rpm.egg is being added to sys.path
    

Environment

  • Red Hat Insights
  • Red Hat Enterprise Linux 6.10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content