Support Python Versions
-
dbcummings
- Posts: 130
- Joined: Thu Dec 13, 2018 8:37 am
Re: Support Python Versions
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
The nagios user should just need read access into the files (and x on the directories)
-
dbcummings
- Posts: 130
- Joined: Thu Dec 13, 2018 8:37 am
Re: Support Python Versions
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
Great!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.
Locking thread