Skip to content

Instantly share code, notes, and snippets.

@zeke
Created February 1, 2022 00:35
Show Gist options
  • Save zeke/9892414ada4ab9c8569a60c6c81f4562 to your computer and use it in GitHub Desktop.
Save zeke/9892414ada4ab9c8569a60c6c81f4562 to your computer and use it in GitHub Desktop.
arxiv $ pipenv install
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Pipfile.lock (7ab88e) out of date, updating to (dea712)...
Locking [dev-packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!
ERROR:pip.subprocessor:Command errored out with exit status 1:
command: /Users/z/.pyenv/versions/3.7.12/envs/arxiv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pipenv-_w8lc86y-build/weighted-levenshtein_559aa70236454d9497602c20bcfd0a94/setup.py'"'"'; __file__='"'"'/var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pipenv-_w8lc86y-build/weighted-levenshtein_559aa70236454d9497602c20bcfd0a94/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --no-user-cfg egg_info --egg-base /private/var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pip-pip-egg-info-dr6o_co9
cwd: /var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pipenv-_w8lc86y-build/weighted-levenshtein_559aa70236454d9497602c20bcfd0a94/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/setuptools/__init__.py", line 19, in <module>
from setuptools.dist import Distribution
File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/setuptools/dist.py", line 34, in <module>
from setuptools import windows_support
File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/setuptools/windows_support.py", line 2, in <module>
import ctypes
File "/Users/z/.pyenv/versions/3.7.12/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
----------------------------------------
ERROR:pip.subprocessor:Command errored out with exit status 1:
command: /Users/z/.pyenv/versions/3.7.12/envs/arxiv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pipenv-_w8lc86y-build/weighted-levenshtein_ef53211b3bfe4e0c9a71db082f8fe5f0/setup.py'"'"'; __file__='"'"'/var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pipenv-_w8lc86y-build/weighted-levenshtein_ef53211b3bfe4e0c9a71db082f8fe5f0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --no-user-cfg egg_info --egg-base /private/var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pip-pip-egg-info-oi192w4r
cwd: /var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pipenv-_w8lc86y-build/weighted-levenshtein_ef53211b3bfe4e0c9a71db082f8fe5f0/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/setuptools/__init__.py", line 19, in <module>
from setuptools.dist import Distribution
File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/setuptools/dist.py", line 34, in <module>
from setuptools import windows_support
File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/setuptools/windows_support.py", line 2, in <module>
import ctypes
File "/Users/z/.pyenv/versions/3.7.12/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
----------------------------------------
ERROR:pip.subprocessor:Command errored out with exit status 1:
command: /Users/z/.pyenv/versions/3.7.12/envs/arxiv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pipenv-_w8lc86y-build/weighted-levenshtein_6e6f3b00baf04d1aa8686f28a8c44410/setup.py'"'"'; __file__='"'"'/var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pipenv-_w8lc86y-build/weighted-levenshtein_6e6f3b00baf04d1aa8686f28a8c44410/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --no-user-cfg egg_info --egg-base /private/var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pip-pip-egg-info-_39uh47x
cwd: /var/folders/c7/khvvzscd3cj9040ysyjr3b340000gn/T/pipenv-_w8lc86y-build/weighted-levenshtein_6e6f3b00baf04d1aa8686f28a8c44410/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/setuptools/__init__.py", line 19, in <module>
from setuptools.dist import Distribution
File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/setuptools/dist.py", line 34, in <module>
from setuptools import windows_support
File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/setuptools/windows_support.py", line 2, in <module>
import ctypes
File "/Users/z/.pyenv/versions/3.7.12/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
----------------------------------------
CRITICAL:pipenv.patched.notpip._internal.resolution.resolvelib.factory:Could not find a version that satisfies the requirement weighted-levenshtein (from versions: 0.1, 0.2, 0.2.1)
[ResolutionFailure]: File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/pipenv/resolver.py", line 743, in _main
[ResolutionFailure]: resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
[ResolutionFailure]: File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/pipenv/resolver.py", line 711, in resolve_packages
[ResolutionFailure]: requirements_dir=requirements_dir,
[ResolutionFailure]: File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/pipenv/resolver.py", line 693, in resolve
[ResolutionFailure]: req_dir=requirements_dir
[ResolutionFailure]: File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/pipenv/utils.py", line 1385, in resolve_deps
[ResolutionFailure]: req_dir=req_dir,
[ResolutionFailure]: File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/pipenv/utils.py", line 1106, in actually_resolve_deps
[ResolutionFailure]: resolver.resolve()
[ResolutionFailure]: File "/Users/z/.pyenv/versions/3.7.12/envs/arxiv/lib/python3.7/site-packages/pipenv/utils.py", line 884, in resolve
[ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: No matching distribution found for weighted-levenshtein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment