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/python
3.6.7
:/usr/bin/python
3.6.7
:/usr/bin/python3.6m
2.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_MODULE
CONDA_SHLVL
NVM_DIR
LS_COLORS
CONDA_EXE
LESSCLOSE
XDG_MENU_PREFIX
LANG
GDM_LANG
DISPLAY
GNOME_SHELL_SESSION_MODE
AWS_SECRET_ACCESS_KEY
GTK2_MODULES
COLORTERM
NVM_CD_FLAGS
CONDA_PREFIX
JAVA_HOME
J2SDKDIR
AIRFLOW_HOME
XDG_VTNR
SSH_AUTH_SOCK
MANDATORY_PATH
S_COLORS
XDG_SESSION_ID
XDG_GREETER_DATA_DIR
DERBY_HOME
USER
DESKTOP_SESSION
QT4_IM_MODULE
TEXTDOMAINDIR
GNOME_TERMINAL_SCREEN
DEFAULTS_PATH
PWD
HOME
CONDA_PYTHON_EXE
TEXTDOMAIN
J2REDIR
SSH_AGENT_PID
QT_ACCESSIBILITY
XDG_SESSION_TYPE
XDG_DATA_DIRS
AWS_REGION
XDG_SESSION_DESKTOP
GJS_DEBUG_OUTPUT
CONDA_PROMPT_MODIFIER
GTK_MODULES
NVM_RC_VERSION
TERM
SHELL
VTE_VERSION
XDG_SEAT_PATH
QT_IM_MODULE
XMODIFIERS
IM_CONFIG_PHASE
XDG_CURRENT_DESKTOP
GPG_AGENT_INFO
GNOME_TERMINAL_SERVICE
AWS_ACCESS_KEY_ID
XDG_SEAT
SHLVL
LANGUAGE
GDMSESSION
GNOME_DESKTOP_SESSION_ID
LOGNAME
DBUS_SESSION_BUS_ADDRESS
XDG_RUNTIME_DIR
XAUTHORITY
XDG_SESSION_PATH
XDG_CONFIG_DIRS
PATH
PS1
CONDA_DEFAULT_ENV
GJS_DEBUG_TOPICS
SESSION_MANAGER
LESSOPEN
GTK_IM_MODULE
_
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_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/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/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 FreeTop 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
Top GitHub Comments
My
Segmentation fault
is 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