Seg fault
See original GitHub issueIssue description
Fails to install development dependencies when using a miniconda base env.
Expected result
Install development dependencies in a new venv.
Versions
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"
$ conda --version
conda 4.6.4
$ which pip
/home/joe/miniconda3/bin/pip
$ pip --version # same seg-fault on more recent pip versions too 18.1 and 19.x
pip 9.0.3 from /home/joe/miniconda3/lib/python3.7/site-packages (python 3.7)
$ which pipenv
/home/joe/miniconda3/bin/pipenv
$ pipenv --version
pipenv, version 2018.11.26
Actual result
$ pipenv install --dev --skip-lock
Creating a virtualenv for this project…
Pipfile: /home/joe/src/org/org_log/Pipfile
Using /home/joe/miniconda3/bin/python (3.7.2) to create virtualenv…
⠋ Creating virtual environment...Already using interpreter /home/joe/miniconda3/bin/python
Using base prefix '/home/joe/miniconda3'
New python executable in /home/joe/.local/share/virtualenvs/org_log-K3DXgJLT/bin/python
Command /home/joe/.local...-K3DXgJLT/bin/python -m pip config list had error code -11
Installing setuptools, pip, wheel...
done.
✔ Successfully created virtual environment!
Virtualenv location: /home/joe/.local/share/virtualenvs/org_log-K3DXgJLT
Installing dependencies from Pipfile…
An error occurred while installing alabaster! Will try again.
An error occurred while installing codecov! Will try again.
An error occurred while installing docutils! Will try again.
An error occurred while installing flake8! Will try again.
An error occurred while installing flake8-type-annotations! Will try again.
An error occurred while installing freezegun! Will try again.
An error occurred while installing ipdb! Will try again.
An error occurred while installing ipython! Will try again.
An error occurred while installing invoke! Will try again.
An error occurred while installing invoke-release! Will try again.
An error occurred while installing mypy! Will try again.
An error occurred while installing pylint! Will try again.
An error occurred while installing pytest~=4.0! Will try again.
An error occurred while installing pytest-cov! Will try again.
An error occurred while installing pytest-mock! Will try again.
An error occurred while installing pytest-ordering! Will try again.
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 26/26 — 00:00:01
An error occurred while installing pytest-runner! Will try again.
An error occurred while installing pytest-vcr! Will try again.
An error occurred while installing pytest-xdist! Will try again.
An error occurred while installing readme-renderer[md]! Will try again.
An error occurred while installing requests-mock! Will try again.
An error occurred while installing sphinx~=1.6! Will try again.
An error occurred while installing tox~=3.7! Will try again.
An error occurred while installing twine>=1.12! Will try again.
An error occurred while installing yapf! Will try again.
An error occurred while installing vcrpy! Will try again.
Installing initially failed dependencies…
☤ ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 26/26 — 00:00:04
[pipenv.exceptions.InstallError]: File "/home/joe/miniconda3/lib/python3.7/site-packages/pipenv/cli/command.py", line 254, in install
[pipenv.exceptions.InstallError]: editable_packages=state.installstate.editables,
[pipenv.exceptions.InstallError]: File "/home/joe/miniconda3/lib/python3.7/site-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]: keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]: File "/home/joe/miniconda3/lib/python3.7/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]: pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]: File "/home/joe/miniconda3/lib/python3.7/site-packages/pipenv/core.py", line 862, in do_install_dependencies
[pipenv.exceptions.InstallError]: _cleanup_procs(procs, False, failed_deps_queue, retry=False)
[pipenv.exceptions.InstallError]: File "/home/joe/miniconda3/lib/python3.7/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: []
[pipenv.exceptions.InstallError]: ['Segmentation fault (core dumped)']
ERROR: ERROR: Package installation failed...
Steps to replicate
pipenv install --dev --skip-lock
$ pipenv --support
Pipenv version: '2018.11.26'
Pipenv location: '/home/joe/miniconda3/lib/python3.7/site-packages/pipenv'
Python location: '/home/joe/miniconda3/bin/python'
Python installations found:
3.7.2:/home/joe/miniconda3/bin/python3.6.7:/usr/bin/python3.6.7:/usr/bin/python3.6m2.7.15rc1:/usr/bin/python2
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.7.2',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '4.15.0-45-generic',
'platform_system': 'Linux',
'platform_version': '#48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019',
'python_full_version': '3.7.2',
'python_version': '3.7',
'sys_platform': 'linux'}
System environment variables:
CLUTTER_IM_MODULECONDA_SHLVLNVM_DIRLS_COLORSCONDA_EXELESSCLOSEXDG_MENU_PREFIXLANGGDM_LANGDISPLAYGNOME_SHELL_SESSION_MODEAWS_SECRET_ACCESS_KEYGTK2_MODULESCOLORTERMNVM_CD_FLAGSCONDA_PREFIXJAVA_HOMEJ2SDKDIRAIRFLOW_HOMEXDG_VTNRSSH_AUTH_SOCKMANDATORY_PATHS_COLORSXDG_SESSION_IDXDG_GREETER_DATA_DIRDERBY_HOMEUSERDESKTOP_SESSIONQT4_IM_MODULETEXTDOMAINDIRGNOME_TERMINAL_SCREENDEFAULTS_PATHPWDHOMECONDA_PYTHON_EXETEXTDOMAINJ2REDIRSSH_AGENT_PIDQT_ACCESSIBILITYXDG_SESSION_TYPEXDG_DATA_DIRSAWS_REGIONXDG_SESSION_DESKTOPGJS_DEBUG_OUTPUTCONDA_PROMPT_MODIFIERGTK_MODULESNVM_RC_VERSIONTERMSHELLVTE_VERSIONXDG_SEAT_PATHQT_IM_MODULEXMODIFIERSIM_CONFIG_PHASEXDG_CURRENT_DESKTOPGPG_AGENT_INFOGNOME_TERMINAL_SERVICEAWS_ACCESS_KEY_IDXDG_SEATSHLVLLANGUAGEGDMSESSIONGNOME_DESKTOP_SESSION_IDLOGNAMEDBUS_SESSION_BUS_ADDRESSXDG_RUNTIME_DIRXAUTHORITYXDG_SESSION_PATHXDG_CONFIG_DIRSPATHPS1CONDA_DEFAULT_ENVGJS_DEBUG_TOPICSSESSION_MANAGERLESSOPENGTK_IM_MODULE_PIP_DISABLE_PIP_VERSION_CHECKPYTHONDONTWRITEBYTECODEPIP_SHIMS_BASE_MODULEPIP_PYTHON_PATHPYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH:/home/joe/miniconda3/bin:/home/joe/miniconda3/condabin:/home/joe/.poetry/bin:/home/joe/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/binSHELL:/bin/bashLANG:en_US.UTF-8PWD:/home/joe/src/org/org_log
Contents of Pipfile (‘/home/joe/src/org/org_log/Pipfile’):
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
alabaster = "*"
codecov = "*"
docutils = "*"
"flake8" = "*"
"flake8-type-annotations" = "*"
freezegun = "*"
ipdb = "*"
ipython = "*"
invoke = "*"
invoke-release = "*"
mypy = "*"
pylint = "*"
pytest = "~=4.0"
pytest-cov = "*"
pytest-mock = "*"
pytest-ordering = "*"
pytest-runner = "*"
pytest-vcr = "*"
pytest-xdist = "*"
"readme-renderer[md]" = "*"
requests_mock = "*"
sphinx = "~=1.6"
tox = "~=3.7"
twine = ">=1.12"
yapf = "*"
vcrpy = "*"
[packages]
[requires]
python_version = "3.7"
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Segmentation fault - Wikipedia
Segmentation faults are a common class of error in programs written in languages like C that provide low-level memory access and few to...
Read more >Identify what's causing segmentation faults (segfaults)
A segmentation fault (aka segfault) is a common condition that causes programs to crash; they are often associated with a file named core...
Read more >c++ - What is a segmentation fault? - Stack Overflow
A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to...
Read more >Core Dump (Segmentation fault) in C/C++ - GeeksforGeeks
Core Dump/Segmentation fault is a specific kind of error caused by accessing memory that “does not belong to you.”.
Read more >What is a Segmentation Fault (Segfault)? - Techopedia
A segmentation fault (segfault) is an error returned by hardware with memory protection that tells the operating system that a memory access violation...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

My
Segmentation faultis caused by my python compiled with py_debug. After I change to Python 3.7.3 without the debug enabled, pip gets working again.I still have this issue. After pipenv run pip install
somepackage.pipenv run pip --version