[Starlingx-discuss] ERROR: unknown environment with tox -e when bulding doc locally

Dominig ar Foll (Intel Open Source) dominig.arfoll at fridu.net
Thu Sep 12 14:00:44 UTC 2019


On 12/09/2019 15:55, Jeremy Stanley wrote:
> On 2019-09-12 10:56:13 +0200 (+0200), Dominig ar Foll (Intel Open Source) wrote:
> [...]
> The correct command should be `tox -e docs` (here the -e option
> specifies a testenv named "docs" corresponding to a [testenv:docs]
> section in the repository's
> https://opendev.org/starlingx/docs/src/branch/master/tox.ini file).
Sorry no more luck.
dominig at dominig-t480:~/starlingx/git/docs> tox -e docs               
docs create: /home/dominig/starlingx/git/docs/.tox/docs
ERROR: invocation failed (exit code 1), logfile:
/home/dominig/starlingx/git/docs/.tox/docs/log/docs-0.log
ERROR: actionid: docs
msg: getenv
cmdargs: ['/usr/bin/python3', '-m', 'virtualenv', '--python',
'/usr/bin/python3', 'docs']

Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in
/home/dominig/starlingx/git/docs/.tox/docs/bin/python3
Also creating executable in
/home/dominig/starlingx/git/docs/.tox/docs/bin/python
Installing setuptools, pip, wheel...
  Complete output from command
/home/dominig/starli...tox/docs/bin/python3 - setuptools pip wheel:
  Traceback (most recent call last):
  File "<stdin>", line 9, in <module>
  File "/usr/lib64/python3.6/pkgutil.py", line 624, in get_data
    importlib._bootstrap._load(spec))
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in
_load_backward_compatible
  File
"/usr/lib/python3.6/site-packages/virtualenv_support/pip-19.1.1-py2.py3-none-any.whl/pip/_vendor/requests/__init__.py",
line 94, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in
_load_backward_compatible
  File
"/usr/lib/python3.6/site-packages/virtualenv_support/pip-19.1.1-py2.py3-none-any.whl/pip/_internal/__init__.py",
line 40, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in
_load_backward_compatible
  File
"/usr/lib/python3.6/site-packages/virtualenv_support/pip-19.1.1-py2.py3-none-any.whl/pip/_internal/cli/autocompletion.py",
line 8, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in
_load_unlocked                                                                                                                         

  File "<frozen importlib._bootstrap>", line 626, in
_load_backward_compatible                                                                                                              

  File
"/usr/lib/python3.6/site-packages/virtualenv_support/pip-19.1.1-py2.py3-none-any.whl/pip/_internal/cli/main_parser.py",
line 12, in <module>                                         
  File "<frozen importlib._bootstrap>", line 971, in
_find_and_load                                                                                                                         

  File "<frozen importlib._bootstrap>", line 955, in
_find_and_load_unlocked                                                                                                                

  File "<frozen importlib._bootstrap>", line 656, in
_load_unlocked                                                                                                                         

  File "<frozen importlib._bootstrap>", line 626, in
_load_backward_compatible                                                                                                              

  File
"/usr/lib/python3.6/site-packages/virtualenv_support/pip-19.1.1-py2.py3-none-any.whl/pip/_internal/commands/__init__.py",
line 6, in <module>                                        
  File "<frozen importlib._bootstrap>", line 971, in
_find_and_load                                                                                                                         

  File "<frozen importlib._bootstrap>", line 955, in
_find_and_load_unlocked                                                                                                                

  File "<frozen importlib._bootstrap>", line 656, in
_load_unlocked                                                                                                                         

  File "<frozen importlib._bootstrap>", line 626, in
_load_backward_compatible                                                                                                              

  File
"/usr/lib/python3.6/site-packages/virtualenv_support/pip-19.1.1-py2.py3-none-any.whl/pip/_internal/commands/completion.py",
line 6, in <module>                                      
  File "<frozen importlib._bootstrap>", line 971, in
_find_and_load                                                                                                                         

  File "<frozen importlib._bootstrap>", line 955, in
_find_and_load_unlocked                                                                                                                

  File "<frozen importlib._bootstrap>", line 656, in
_load_unlocked                                                                                                                         

  File "<frozen importlib._bootstrap>", line 626, in
_load_backward_compatible                                                                                                              

  File
"/usr/lib/python3.6/site-packages/virtualenv_support/pip-19.1.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py",
line 20, in <module>                                        
  File "<frozen importlib._bootstrap>", line 971, in
_find_and_load                                                                                                                         

  File "<frozen importlib._bootstrap>", line 955, in
_find_and_load_unlocked                                                                                                                

  File "<frozen importlib._bootstrap>", line 656, in
_load_unlocked                                                                                                                         

  File "<frozen importlib._bootstrap>", line 626, in
_load_backward_compatible                                                                                                              

  File
"/usr/lib/python3.6/site-packages/virtualenv_support/pip-19.1.1-py2.py3-none-any.whl/pip/_internal/download.py",
line 368, in <module>                                               
AttributeError: module 'pip._vendor.requests' has no attribute
'Session'                                                                                                                    

----------------------------------------                                                                                                                                                    

...Installing setuptools, pip,
wheel...done.                                                                                                                                                

Traceback (most recent call
last):                                                                                                                                                          

  File "/usr/lib64/python3.6/runpy.py", line 193, in
_run_module_as_main                                                                                                                    

    "__main__",
mod_spec)                                                                                                                                                                   

  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.6/site-packages/virtualenv.py", line 2328, in
<module>
    main()
  File "/usr/lib/python3.6/site-packages/virtualenv.py", line 713, in main
    symlink=options.symlink)
  File "/usr/lib/python3.6/site-packages/virtualenv.py", line 945, in
create_environment
    download=download,
  File "/usr/lib/python3.6/site-packages/virtualenv.py", line 901, in
install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/usr/lib/python3.6/site-packages/virtualenv.py", line 797, in
call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /home/dominig/starli...tox/docs/bin/python3 -
setuptools pip wheel failed with error code 1

ERROR: Error creating virtualenv. Note that some special characters
(e.g. ':' and unicode symbols) in paths are not supported by virtualenv.
Error details: InvocationError('/usr/bin/python3 -m virtualenv --python
/usr/bin/python3 docs (see
/home/dominig/starlingx/git/docs/.tox/docs/log/docs-0.log)', 1)
__________________________________________________________________________________________
summary
__________________________________________________________________________________________
ERROR:   docs: Error creating virtualenv. Note that some special
characters (e.g. ':' and unicode symbols) in paths are not supported by
virtualenv. Error details: InvocationError('/usr/bin/python3 -m
virtualenv --python /usr/bin/python3 docs (see
/home/dominig/starlingx/git/docs/.tox/docs/log/docs-0.log)', 1)

-- 
Dominig ar Foll
Senior Software Architect
Intel Open Source Technology Centre




More information about the Starlingx-discuss mailing list