Skip to content

Instantly share code, notes, and snippets.

@shahinism
Created September 17, 2021 07:55
Show Gist options
  • Save shahinism/92d47e1acf2b0c3667bf3232a2cdd9f1 to your computer and use it in GitHub Desktop.
Save shahinism/92d47e1acf2b0c3667bf3232a2cdd9f1 to your computer and use it in GitHub Desktop.
$ pip install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.9/site-packages (21.1.1)
Collecting pip
Downloading pip-21.2.4-py3-none-any.whl (1.6 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.1.1
Uninstalling pip-21.1.1:
Successfully uninstalled pip-21.1.1
Successfully installed pip-21.2.4
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
$ make install-deps
pip install --upgrade poetry
Collecting poetry
Downloading poetry-1.1.8-py2.py3-none-any.whl (173 kB)
Collecting pkginfo<2.0,>=1.4
Downloading pkginfo-1.7.1-py2.py3-none-any.whl (25 kB)
Collecting keyring<22.0.0,>=21.2.0
Downloading keyring-21.8.0-py3-none-any.whl (32 kB)
Collecting cachy<0.4.0,>=0.3.0
Downloading cachy-0.3.0-py2.py3-none-any.whl (20 kB)
Collecting requests<3.0,>=2.18
Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting tomlkit<1.0.0,>=0.7.0
Downloading tomlkit-0.7.2-py2.py3-none-any.whl (32 kB)
Collecting requests-toolbelt<0.10.0,>=0.9.1
Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
Collecting cleo<0.9.0,>=0.8.1
Downloading cleo-0.8.1-py2.py3-none-any.whl (21 kB)
Collecting html5lib<2.0,>=1.0
Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
Collecting crashtest<0.4.0,>=0.3.0
Downloading crashtest-0.3.1-py3-none-any.whl (7.0 kB)
Collecting shellingham<2.0,>=1.1
Downloading shellingham-1.4.0-py2.py3-none-any.whl (9.4 kB)
Collecting packaging<21.0,>=20.4
Downloading packaging-20.9-py2.py3-none-any.whl (40 kB)
Collecting cachecontrol[filecache]<0.13.0,>=0.12.4
Downloading CacheControl-0.12.6-py2.py3-none-any.whl (19 kB)
Collecting virtualenv<21.0.0,>=20.0.26
Downloading virtualenv-20.8.0-py2.py3-none-any.whl (5.3 MB)
Collecting clikit<0.7.0,>=0.6.2
Downloading clikit-0.6.2-py2.py3-none-any.whl (91 kB)
Collecting poetry-core<1.1.0,>=1.0.4
Downloading poetry_core-1.0.4-py2.py3-none-any.whl (420 kB)
Collecting pexpect<5.0.0,>=4.7.0
Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
Collecting msgpack>=0.5.2
Downloading msgpack-1.0.2-cp39-cp39-manylinux1_x86_64.whl (294 kB)
Collecting lockfile>=0.9
Downloading lockfile-0.12.2-py2.py3-none-any.whl (13 kB)
Collecting pylev<2.0,>=1.3
Downloading pylev-1.4.0-py2.py3-none-any.whl (6.1 kB)
Collecting pastel<0.3.0,>=0.2.0
Downloading pastel-0.2.1-py2.py3-none-any.whl (6.0 kB)
Collecting webencodings
Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting six>=1.9
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting SecretStorage>=3.2
Downloading SecretStorage-3.3.1-py3-none-any.whl (15 kB)
Collecting jeepney>=0.4.2
Downloading jeepney-0.7.1-py3-none-any.whl (54 kB)
Collecting pyparsing>=2.0.2
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting ptyprocess>=0.5
Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting idna<4,>=2.5
Downloading idna-3.2-py3-none-any.whl (59 kB)
Collecting certifi>=2017.4.17
Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
Collecting charset-normalizer~=2.0.0
Downloading charset_normalizer-2.0.5-py3-none-any.whl (37 kB)
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
Collecting cryptography>=2.0
Downloading cryptography-3.4.8-cp36-abi3-manylinux_2_24_x86_64.whl (3.0 MB)
Collecting cffi>=1.12
Downloading cffi-1.14.6-cp39-cp39-manylinux1_x86_64.whl (405 kB)
Collecting pycparser
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting filelock<4,>=3.0.0
Downloading filelock-3.0.12-py3-none-any.whl (7.6 kB)
Collecting platformdirs<3,>=2
Downloading platformdirs-2.3.0-py3-none-any.whl (13 kB)
Collecting backports.entry-points-selectable>=1.0.4
Downloading backports.entry_points_selectable-1.1.0-py2.py3-none-any.whl (6.2 kB)
Collecting distlib<1,>=0.3.1
Downloading distlib-0.3.2-py2.py3-none-any.whl (338 kB)
Installing collected packages: pycparser, urllib3, idna, charset-normalizer, cffi, certifi, requests, pylev, pastel, msgpack, jeepney, cryptography, crashtest, webencodings, six, SecretStorage, pyparsing, ptyprocess, platformdirs, lockfile, filelock, distlib, clikit, cachecontrol, backports.entry-points-selectable, virtualenv, tomlkit, shellingham, requests-toolbelt, poetry-core, pkginfo, pexpect, packaging, keyring, html5lib, cleo, cachy, poetry
Successfully installed SecretStorage-3.3.1 backports.entry-points-selectable-1.1.0 cachecontrol-0.12.6 cachy-0.3.0 certifi-2021.5.30 cffi-1.14.6 charset-normalizer-2.0.5 cleo-0.8.1 clikit-0.6.2 crashtest-0.3.1 cryptography-3.4.8 distlib-0.3.2 filelock-3.0.12 html5lib-1.1 idna-3.2 jeepney-0.7.1 keyring-21.8.0 lockfile-0.12.2 msgpack-1.0.2 packaging-20.9 pastel-0.2.1 pexpect-4.8.0 pkginfo-1.7.1 platformdirs-2.3.0 poetry-1.1.8 poetry-core-1.0.4 ptyprocess-0.7.0 pycparser-2.20 pylev-1.4.0 pyparsing-2.4.7 requests-2.26.0 requests-toolbelt-0.9.1 shellingham-1.4.0 six-1.16.0 tomlkit-0.7.2 urllib3-1.26.6 virtualenv-20.8.0 webencodings-0.5.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
poetry env info
Virtualenv
Python: 3.9.5
Implementation: CPython
Path: NA
System
Platform: linux
OS: posix
Python: /usr/local
poetry install -vvv
Creating virtualenv lead-extraction-4hYymf06-py3.9 in /root/.cache/pypoetry/virtualenvs
Stack trace:
19 ~/.poetry/lib/poetry/_vendor/py3.9/clikit/console_application.py:131 in run
129│ parsed_args = resolved_command.args
130│
→ 131│ status_code = command.handle(parsed_args, io)
132│ except KeyboardInterrupt:
133│ status_code = 1
18 ~/.poetry/lib/poetry/_vendor/py3.9/clikit/api/command/command.py:120 in handle
118│ def handle(self, args, io): # type: (Args, IO) -> int
119│ try:
→ 120│ status_code = self._do_handle(args, io)
121│ except KeyboardInterrupt:
122│ if io.is_debug():
17 ~/.poetry/lib/poetry/_vendor/py3.9/clikit/api/command/command.py:163 in _do_handle
161│ if self._dispatcher and self._dispatcher.has_listeners(PRE_HANDLE):
162│ event = PreHandleEvent(args, io, self)
→ 163│ self._dispatcher.dispatch(PRE_HANDLE, event)
164│
165│ if event.is_handled():
16 ~/.poetry/lib/poetry/_vendor/py3.9/clikit/api/event/event_dispatcher.py:22 in dispatch
20│
21│ if listeners:
→ 22│ self._do_dispatch(listeners, event_name, event)
23│
24│ return event
15 ~/.poetry/lib/poetry/_vendor/py3.9/clikit/api/event/event_dispatcher.py:89 in _do_dispatch
87│ break
88│
→ 89│ listener(event, event_name, self)
90│
91│ def _sort_listeners(self, event_name): # type: (str) -> None
14 ~/.poetry/lib/poetry/console/config/application_config.py:119 in set_env
117│
118│ env_manager = EnvManager(poetry)
→ 119│ env = env_manager.create_venv(io)
120│
121│ if env.is_venv() and io.is_verbose():
13 ~/.poetry/lib/poetry/utils/env.py:762 in create_venv
760│ )
761│
→ 762│ self.build_venv(venv, executable=executable)
763│ else:
764│ if force:
12 ~/.poetry/lib/poetry/utils/env.py:803 in build_venv
801│ if isinstance(executable, Path):
802│ executable = executable.resolve().as_posix()
→ 803│ return virtualenv.cli_run(
804│ [
805│ "--no-download",
11 ~/.poetry/lib/poetry/_vendor/py3.9/virtualenv/run/__init__.py:30 in cli_run
28│ """
29│ env = os.environ if env is None else env
→ 30│ of_session = session_via_cli(args, options, setup_logging, env)
31│ with of_session:
32│ of_session.run()
10 ~/.poetry/lib/poetry/_vendor/py3.9/virtualenv/run/__init__.py:48 in session_via_cli
46│ """
47│ env = os.environ if env is None else env
→ 48│ parser, elements = build_parser(args, options, setup_logging, env)
49│ options = parser.parse_args(args)
50│ creator, seeder, activators = tuple(e.create(options) for e in elements) # create types
9 ~/.poetry/lib/poetry/_vendor/py3.9/virtualenv/run/__init__.py:76 in build_parser
74│ CreatorSelector(interpreter, parser),
75│ SeederSelector(interpreter, parser),
→ 76│ ActivationSelector(interpreter, parser),
77│ ]
78│ options, _ = parser.parse_known_args(args)
8 ~/.poetry/lib/poetry/_vendor/py3.9/virtualenv/run/plugin/activators.py:13 in __init__
11│ self.default = None
12│ possible = OrderedDict(
→ 13│ (k, v) for k, v in self.options("virtualenv.activate").items() if v.supports(interpreter)
14│ )
15│ super(ActivationSelector, self).__init__(interpreter, parser, "activators", possible)
7 ~/.poetry/lib/poetry/_vendor/py3.9/virtualenv/run/plugin/base.py:39 in options
37│ def options(cls, key):
38│ if cls._OPTIONS is None:
→ 39│ cls._OPTIONS = cls.entry_points_for(key)
40│ return cls._OPTIONS
41│
6 ~/.poetry/lib/poetry/_vendor/py3.9/virtualenv/run/plugin/base.py:18 in entry_points_for
16│ @classmethod
17│ def entry_points_for(cls, key):
→ 18│ return OrderedDict((e.name, e.load()) for e in cls.entry_points().get(key, {}))
19│
20│ @staticmethod
5 ~/.poetry/lib/poetry/_vendor/py3.9/virtualenv/run/plugin/base.py:18 in <genexpr>
16│ @classmethod
17│ def entry_points_for(cls, key):
→ 18│ return OrderedDict((e.name, e.load()) for e in cls.entry_points().get(key, {}))
19│
20│ @staticmethod
4 /usr/local/lib/python3.9/importlib/metadata.py:77 in load
75│ """
76│ match = self.pattern.match(self.value)
→ 77│ module = import_module(match.group('module'))
78│ attrs = filter(None, (match.group('attr') or '').split('.'))
79│ return functools.reduce(getattr, attrs, module)
3 /usr/local/lib/python3.9/importlib/__init__.py:127 in import_module
125│ break
126│ level += 1
→ 127│ return _bootstrap._gcd_import(name[level:], package, level)
128│
129│
2 <frozen importlib._bootstrap>:1030 in _gcd_import
1 <frozen importlib._bootstrap>:1007 in _find_and_load
ModuleNotFoundError
No module named 'virtualenv.activation.nushell'
at <frozen importlib._bootstrap>:984 in _find_and_load_unlocked
make: *** [Makefile:7: install-py-deps] Error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment