Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Unable to open configuration file with Python Agent


#1

Hi guys,

  1. I’m using Python 3.7, Flask 1.0.2, and Newrelic Python Agent 4.4.1.104
  2. In my tests, I receive an error: Unable to open the configuration file
  3. But, the path of my newrelic.ini is correct.
  4. I don’t know the why I receive this error.

Any ideas?


#2

@riverfount Could you try running newrelic-admin validate-config LOCATION_OF_NEWRELIC.INI? You can read more about this here: https://docs.newrelic.com/docs/agents/python-agent/troubleshooting/testing-python-agent#connectivity-test.

Also, are you using a virtual environment? It’s important the agent is installed in the same environment as your application.