gigalixir / gigalixir-cli

MIT License
52 stars 45 forks source link

Gigalixir can't be used as a non admin user #69

Closed ghost closed 4 years ago

ghost commented 4 years ago

Using homebrew:

Traceback (most recent call last):
  File "/usr/local/bin/gigalixir", line 33, in <module>
    sys.exit(load_entry_point('gigalixir==1.1.10', 'console_scripts', 'gigalixir')())
  File "/usr/local/bin/gigalixir", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/gigalixir/__init__.py", line 41, in <module>
    import pkg_resources
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3239, in <module>
    def _initialize_master_working_set():
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3251, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 558, in _build_master
    ws = cls()
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 551, in __init__
    self.add_entry(entry)
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 607, in add_entry
    for dist in find_distributions(entry, True):
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2060, in find_on_path
    for dist in factory(fullpath):
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2125, in distributions_from_metadata
    yield Distribution.from_location(
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2585, in from_location
    return cls(
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2985, in _reload_version
    md_version = self._get_version()
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2767, in _get_version
    version = _version_from_file(lines)
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2551, in _version_from_file
    line = next(iter(version_lines), '')
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2762, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1415, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1405, in get_metadata
    value = self._get(path)
  File "/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1609, in _get
    with open(path, 'rb') as stream:
PermissionError: [Errno 13] Permission denied: '/usr/local/Cellar/gigalixir/1.1.10/libexec/lib/python3.8/site-packages/idna-2.7-py3.8.egg-info/PKG-INFO'