[New-bugs-announce] [issue22669] Test_venv fails when _ctypes is not available.
Terry J. Reedy
report at bugs.python.org
Sun Oct 19 02:37:48 CEST 2014
New submission from Terry J. Reedy:
For whatever reason, AMD 64 Open Indiana ('stable' buildbot #3) is not building ctypes. test_venv fails with
FAIL: test_with_pip (test.test_venv.EnsurePipTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/export/home/buildbot/64bits/3.4.cea-indiana-amd64/build/Lib/test/test_venv.py", line 356, in test_with_pip
with_pip=True)
subprocess.CalledProcessError: Command '['/tmp/tmp644tt7bi/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/export/home/buildbot/64bits/3.4.cea-indiana-amd64/build/Lib/test/test_venv.py", line 362, in test_with_pip
self.fail(msg.format(exc, details))
AssertionError: Command '['/tmp/tmp644tt7bi/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
**Subprocess Output**
Traceback (most recent call last):
File "/export/home/buildbot/64bits/3.4.cea-indiana-amd64/build/Lib/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/export/home/buildbot/64bits/3.4.cea-indiana-amd64/build/Lib/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/export/home/buildbot/64bits/3.4.cea-indiana-amd64/build/Lib/ensurepip/__main__.py", line 4, in <module>
ensurepip._main()
File "/export/home/buildbot/64bits/3.4.cea-indiana-amd64/build/Lib/ensurepip/__init__.py", line 209, in _main
default_pip=args.default_pip,
File "/export/home/buildbot/64bits/3.4.cea-indiana-amd64/build/Lib/ensurepip/__init__.py", line 116, in bootstrap
_run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/export/home/buildbot/64bits/3.4.cea-indiana-amd64/build/Lib/ensurepip/__init__.py", line 40, in _run_pip
import pip
File "/tmp/tmp7od_thjv/pip-1.5.6-py2.py3-none-any.whl/pip/__init__.py", line 9, in <module>
File "/tmp/tmp7od_thjv/pip-1.5.6-py2.py3-none-any.whl/pip/log.py", line 9, in <module>
File "/tmp/tmp7od_thjv/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/__init__.py", line 2, in <module>
File "/tmp/tmp7od_thjv/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/initialise.py", line 5, in <module>
File "/tmp/tmp7od_thjv/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/ansitowin32.py", line 6, in <module>
File "/tmp/tmp7od_thjv/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/winterm.py", line 2, in <module>
File "/tmp/tmp7od_thjv/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/win32.py", line 7, in <module>
File "/export/home/buildbot/64bits/3.4.cea-indiana-amd64/build/Lib/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ImportError: No module named '_ctypes'
Since this is not a failure of ensurepip, I think this should instead be a test skip. The easiest thing would be to do what you did with ssl.
----------
assignee: vinay.sajip
components: Library (Lib), Tests
messages: 229667
nosy: terry.reedy, vinay.sajip
priority: normal
severity: normal
stage: needs patch
status: open
title: Test_venv fails when _ctypes is not available.
type: behavior
versions: Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22669>
_______________________________________
More information about the New-bugs-announce
mailing list