Pelican Parts
Parts Catalog Accessories Catalog How To Articles Tech Forums
Call Pelican Parts at 888-280-7799
Shopping Cart Cart | Project List | Order Status | Help



Go Back   Pelican Parts Forums > Miscellaneous and Off Topic Forums > Off Topic Discussions


Reply
 
LinkBack Thread Tools Rate Thread
Author
Thread Post New Thread    Reply
Back in the saddle again
 
masraum's Avatar
 
Join Date: Oct 2001
Location: Central TX west of Houston
Posts: 56,335
MacOS error after install, likely permissions (Unix, Linux, Mac folks)

IT/Tech savvy folks, I've got a question.

I've got a Mac. My regular account is a User account (not admin). I have a separate admin account when I need it.

I used my admin account to install HomeBrew (package installer).

I then used HomeBrew via my admin account to install Ansible which was successful.

Now, after the install I have 2 terminal windows, one under the admin account and one under the user account.

When I run "ansible --version" from the admin account, there are no issues.

When I run "ansible --version" from the user account, I get the following.

Quote:
ERROR! Unexpected Exception, this is probably a bug: [Errno 13] Permission denied: '/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/textfsm-1.1.2-py3.9.egg-info/PKG-INFO'
the full traceback was:

Traceback (most recent call last):
File "/usr/local/bin/ansible", line 92, in
mycli = getattr(__import__("ansible.cli.%s" % sub, fromlist=[myclass]), myclass)
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/ansible/cli/__init__.py", line 33, in
from ansible.vars.manager import VariableManager
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/ansible/vars/manager.py", line 43, in
from ansible.template import Templar
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/ansible/template/__init__.py", line 30, in
from distutils.version import LooseVersion
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 565, in module_from_spec
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/_distutils_hack/__init__.py", line 88, in create_module
return importlib.import_module('setuptools._distutils')
File "/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/setuptools/__init__.py", line 17, in
import setuptools.version
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/setuptools/version.py", line 1, in
import pkg_resources
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3257, in
def _initialize_master_working_set():
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3231, in _call_aside
f(*args, **kwargs)
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3269, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 564, in _build_master
ws = cls()
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 557, in __init__
self.add_entry(entry)
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 613, in add_entry
for dist in find_distributions(entry, True):
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2068, in find_on_path
for dist in factory(fullpath):
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2133, in distributions_from_metadata
yield Distribution.from_location(
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2593, in from_location
return cls(
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2994, in _reload_version
md_version = self._get_version()
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2775, in _get_version
version = _version_from_file(lines)
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2559, in _version_from_file
line = next(iter(version_lines), '')
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2770, in _get_metadata
for line in self.get_metadata_lines(name):
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1422, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1412, in get_metadata
value = self._get(path)
File "/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1616, in _get
with open(path, 'rb') as stream:
PermissionError: [Errno 13] Permission denied: '/usr/local/Cellar/ansible@2.9/2.9.27_2/libexec/lib/python3.9/site-packages/textfsm-1.1.2-py3.9.egg-info/PKG-INFO'
When I look at the ownership and permissions in /usr/local, usr/local/Cellar, etc..., my admin account is the owner. The permissions throughout are either
drwxrwxr-x
or
-rwxr-xr-x
or
lrwxr-xr-x

Any thoughts?

__________________
Steve
'08 Boxster RS60 Spyder #0099/1960
- never named a car before, but this is Charlotte.
'88 targa SOLD 2004 - gone but not forgotten
Old 03-04-2022, 07:16 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #1 (permalink)
The Unsettler
 
stomachmonkey's Avatar
 
Join Date: Dec 2002
Location: Lantanna TX
Posts: 23,885
Send a message via AIM to stomachmonkey
sudo
__________________
"I want my two dollars"
"Goodbye and thanks for the fish"
"Proud Member and Supporter of the YWL"
"Brandon Won"
Old 03-04-2022, 08:58 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #2 (permalink)
Back in the saddle again
 
masraum's Avatar
 
Join Date: Oct 2001
Location: Central TX west of Houston
Posts: 56,335
Quote:
Originally Posted by stomachmonkey View Post
sudo
Finally got around to adding my user account to the "sudoers file" and I'm good to go.

Thanks.

__________________
Steve
'08 Boxster RS60 Spyder #0099/1960
- never named a car before, but this is Charlotte.
'88 targa SOLD 2004 - gone but not forgotten
Old 03-04-2022, 09:59 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #3 (permalink)
Reply


 


All times are GMT -8. The time now is 05:10 AM.


 
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website -    DMCA Registered Agent Contact Page
 

DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.