Support Python Versions

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Support Python Versions

Post by dbcummings »

Ok. Got it to "work". I had to change all the permission in the site-packages directory to 777 and then "su nagios". I ran python and then "import boto3". That worked. But, this isn't an elegant solution. So, I am trying to figure out the permissions problem.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Support Python Versions

Post by scottwilkerson »

The nagios user should just need read access into the files (and x on the directories)
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Support Python Versions

Post by dbcummings »

Thank you. This is solved. I installed PIP into another Python version and then moved and imported PIP into the default Python installation. I then installed boto3. Then, I su'd to the Nagios user and imported boto3 using the Nagios user. This resolved the issue.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Support Python Versions

Post by scottwilkerson »

dbcummings wrote:Thank you. This is solved. I installed PIP into another Python version and then moved and imported PIP into the default Python installation. I then installed boto3. Then, I su'd to the Nagios user and imported boto3 using the Nagios user. This resolved the issue.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked