Skip to content

Instantly share code, notes, and snippets.

@legoktm
Created February 15, 2020 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save legoktm/533669e450d0f5f41838a4e9b858d774 to your computer and use it in GitHub Desktop.
Save legoktm/533669e450d0f5f41838a4e9b858d774 to your computer and use it in GitHub Desktop.
virtualenv traceback
user@dev ~> sudo docker run --rm -it --entrypoint=bash docker-registry.wikimedia.org/releng/tox:0.4.2
nobody@4b70ed23eebd:/src$ git clone https://gerrit.wikimedia.org/r/labs/tools/apt-browser
Cloning into 'apt-browser'...
remote: Total 44 (delta 0), reused 44 (delta 0)
Unpacking objects: 100% (44/44), done.
nobody@4b70ed23eebd:/src$ cd apt-browser/
nobody@4b70ed23eebd:/src/apt-browser$ tox
.tox create: /src/apt-browser/.tox/.tox
.tox installdeps: tox-wikimedia, tox >= 3.10.0
py37-flake8 create: /src/apt-browser/.tox/py37-flake8
ERROR: invocation failed (exit code 1), logfile: /src/apt-browser/.tox/py37-flake8/log/py37-flake8-0.log
================================================================================================================= log start ==================================================================================================================
FileNotFoundError: [Errno 2] No such file or directory: '/nonexistent/.local/share/virtualenv/py-info/20.0.4/fd69f43f58546b570e94fd7eba7b65e6bcc7a5bbc4eab0408017d18902915d69.lock'
================================================================================================================== log end ===================================================================================================================
ERROR: InvocationError for command /src/apt-browser/.tox/.tox/bin/python -m virtualenv --no-download --python /usr/bin/python3.7 py37-flake8 (exited with code 1)
py37-pytest create: /src/apt-browser/.tox/py37-pytest
ERROR: invocation failed (exit code 1), logfile: /src/apt-browser/.tox/py37-pytest/log/py37-pytest-0.log
================================================================================================================= log start ==================================================================================================================
FileNotFoundError: [Errno 2] No such file or directory: '/nonexistent/.local/share/virtualenv/py-info/20.0.4/fd69f43f58546b570e94fd7eba7b65e6bcc7a5bbc4eab0408017d18902915d69.lock'
================================================================================================================== log end ===================================================================================================================
ERROR: InvocationError for command /src/apt-browser/.tox/.tox/bin/python -m virtualenv --no-download --python /usr/bin/python3.7 py37-pytest (exited with code 1)
__________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________
ERROR: py37-flake8: InvocationError for command /src/apt-browser/.tox/.tox/bin/python -m virtualenv --no-download --python /usr/bin/python3.7 py37-flake8 (exited with code 1)
ERROR: py37-pytest: InvocationError for command /src/apt-browser/.tox/.tox/bin/python -m virtualenv --no-download --python /usr/bin/python3.7 py37-pytest (exited with code 1)
nobody@4b70ed23eebd:/src/apt-browser$ tox -vvv
using tox.ini: /src/apt-browser/tox.ini (pid 44)
removing /src/apt-browser/.tox/log
could not satisfy requires DistributionNotFound(Requirement.parse('tox-wikimedia'), None)
using tox-3.10.0 from /usr/local/lib/python3.5/dist-packages/tox/__init__.py (pid 44)
.tox start: getenv /src/apt-browser/.tox/.tox
/usr/bin/python3 (/usr/bin/python3) is {'sysplatform': 'linux', 'version': '3.5.3 (default, Sep 27 2018, 17:25:39) \n[GCC 6.3.0 20170516]', 'version_info': [3, 5, 3, 'final', 0], 'is_64': True, 'executable': '/usr/bin/python3', 'name': 'python'}
.tox uses /usr/bin/python3
.tox reusing: /src/apt-browser/.tox/.tox
.tox finish: getenv /src/apt-browser/.tox/.tox after 0.10 seconds
.tox start: finishvenv
.tox finish: finishvenv after 0.01 seconds
.tox start: provision
[49] /src/apt-browser$ /src/apt-browser/.tox/.tox/bin/python -m tox -vvv
using tox.ini: /src/apt-browser/tox.ini (pid 49)
[wikimedia] tox-wikimedia is enabled
[wikimedia] py37-flake8: Adding dep on flake8
[wikimedia] py37-flake8: Setting command to ['flake8']
[wikimedia] py37-pytest: Adding dep on pytest
[wikimedia] py37-pytest: Adding dep on requirements.txt
[wikimedia] py37-pytest: Setting command to ['pytest']
using tox-3.14.4 from /src/apt-browser/.tox/.tox/lib/python3.5/site-packages/tox/__init__.py (pid 49)
skipping sdist step
py37-flake8 start: getenv /src/apt-browser/.tox/py37-flake8
py37-flake8 cannot reuse: no previous config /src/apt-browser/.tox/py37-flake8/.tox-config1
py37-flake8 create: /src/apt-browser/.tox/py37-flake8
python3.7 (/usr/bin/python3.7) is {'sysplatform': 'linux', 'is_64': True, 'executable': '/usr/bin/python3.7', 'version': '3.7.1 (default, Dec 16 2018, 12:33:36) \n[GCC 6.3.0 20170516]', 'name': 'python', 'version_info': [3, 7, 1, 'final', 0]}
py37-flake8 uses /usr/bin/python3.7
removing /src/apt-browser/.tox/py37-flake8
setting PATH=/src/apt-browser/.tox/py37-flake8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[54] /src/apt-browser/.tox$ /src/apt-browser/.tox/.tox/bin/python -m virtualenv --no-download --python /usr/bin/python3.7 py37-flake8
FileNotFoundError: [Errno 2] No such file or directory: '/nonexistent/.local/share/virtualenv/py-info/20.0.4/fd69f43f58546b570e94fd7eba7b65e6bcc7a5bbc4eab0408017d18902915d69.lock'
ERROR: invocation failed (exit code 1)
ERROR: InvocationError for command /src/apt-browser/.tox/.tox/bin/python -m virtualenv --no-download --python /usr/bin/python3.7 py37-flake8 (exited with code 1)
py37-flake8 finish: getenv /src/apt-browser/.tox/py37-flake8 after 0.18 seconds
py37-pytest start: getenv /src/apt-browser/.tox/py37-pytest
py37-pytest cannot reuse: no previous config /src/apt-browser/.tox/py37-pytest/.tox-config1
py37-pytest create: /src/apt-browser/.tox/py37-pytest
py37-pytest uses /usr/bin/python3.7
removing /src/apt-browser/.tox/py37-pytest
setting PATH=/src/apt-browser/.tox/py37-pytest/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[55] /src/apt-browser/.tox$ /src/apt-browser/.tox/.tox/bin/python -m virtualenv --no-download --python /usr/bin/python3.7 py37-pytest
FileNotFoundError: [Errno 2] No such file or directory: '/nonexistent/.local/share/virtualenv/py-info/20.0.4/fd69f43f58546b570e94fd7eba7b65e6bcc7a5bbc4eab0408017d18902915d69.lock'
ERROR: invocation failed (exit code 1)
ERROR: InvocationError for command /src/apt-browser/.tox/.tox/bin/python -m virtualenv --no-download --python /usr/bin/python3.7 py37-pytest (exited with code 1)
py37-pytest finish: getenv /src/apt-browser/.tox/py37-pytest after 0.13 seconds
__________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________
ERROR: py37-flake8: InvocationError for command /src/apt-browser/.tox/.tox/bin/python -m virtualenv --no-download --python /usr/bin/python3.7 py37-flake8 (exited with code 1)
ERROR: py37-pytest: InvocationError for command /src/apt-browser/.tox/.tox/bin/python -m virtualenv --no-download --python /usr/bin/python3.7 py37-pytest (exited with code 1)
.tox finish: provision after 0.52 seconds
nobody@4b70ed23eebd:/src/apt-browser$ /src/apt-browser/.tox/.tox/bin/python -m virtualenv --no-download --python /usr/bin/python3.7 py37-flake8 -vvv --with-traceback
72 setup logging to NOTSET [DEBUG report:43]
81 find interpreter for spec PythonSpec(path=/usr/bin/python3.7) [INFO builtin:43]
82 Attempting to acquire lock 124216126987344 on /nonexistent/.local/share/virtualenv/py-info/20.0.4/fd69f43f58546b570e94fd7eba7b65e6bcc7a5bbc4eab0408017d18902915d69.lock [DEBUG filelock:270]
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/__main__.py", line 47, in <module>
run_with_catch()
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/__main__.py", line 36, in run_with_catch
run(args, options)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/__main__.py", line 19, in run
session = cli_run(args, options)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/run/__init__.py", line 22, in cli_run
session = session_via_cli(args, options)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/run/__init__.py", line 29, in session_via_cli
parser = build_parser(args, options)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/run/__init__.py", line 49, in build_parser
parser._interpreter = interpreter = discover.interpreter
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/discovery/discover.py", line 44, in interpreter
self._interpreter = self.run()
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/discovery/builtin.py", line 32, in run
return get_interpreter(self.python_spec)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/discovery/builtin.py", line 45, in get_interpreter
for interpreter, impl_must_match in propose_interpreters(spec):
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/discovery/builtin.py", line 59, in propose_interpreters
yield PythonInfo.from_exe(spec.path), True
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/discovery/py_info.py", line 290, in from_exe
proposed = from_exe(cls, exe, raise_on_error=raise_on_error, ignore_cache=ignore_cache)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/discovery/cached_py_info.py", line 33, in from_exe
result = _get_from_cache(cls, exe, ignore_cache=ignore_cache)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/discovery/cached_py_info.py", line 50, in _get_from_cache
py_info = _get_via_file_cache(cls, exe_path, exe)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/discovery/cached_py_info.py", line 66, in _get_via_file_cache
with fs_path.lock_for_key(key):
File "/usr/lib/python3.5/contextlib.py", line 59, in __enter__
return next(self.gen)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/util/lock.py", line 99, in lock_for_key
self._lock_file(lock)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/util/lock.py", line 84, in _lock_file
lock.acquire(0.0001)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/virtualenv/util/lock.py", line 23, in acquire
super(_CountedFileLock, self).acquire(timeout=timeout, poll_intervall=poll_intervall)
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/filelock.py", line 271, in acquire
self._acquire()
File "/src/apt-browser/.tox/.tox/lib/python3.5/site-packages/filelock.py", line 384, in _acquire
fd = os.open(self._lock_file, open_mode)
FileNotFoundError: [Errno 2] No such file or directory: '/nonexistent/.local/share/virtualenv/py-info/20.0.4/fd69f43f58546b570e94fd7eba7b65e6bcc7a5bbc4eab0408017d18902915d69.lock'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment