Repository navigation
make test fails: No such file or directory: 'test-requirements.txt' #1090
Copy link
Copy link
Closed
Labels
Description
From current HEAD (24f75e7):
make test
Output
docker build --quiet -t gitpython:xenial -f Dockerfile .
sha256:835f1743b4d232b86f68858e6155bea1809d284e8ef7cac8cb52b127bc135130
# NOTE!!!
# NOTE!!! If you are not running from master or have local changes then tests will fail
# NOTE!!!
docker run --rm -v /Users/ryan/c/GitPython:/src -w /src -t gitpython:xenial tox
GLOB sdist-make: /src/setup.py
py34 inst-nodeps: /src/.tox/.tmp/package/1/GitPython-3.1.11.zip
ERROR: invocation failed (exit code 1), logfile: /src/.tox/py34/log/py34-4.log
========================================================================== log start ===========================================================================
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Processing ./.tox/.tmp/package/1/GitPython-3.1.11.zip
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-aseawxsa/setup.py", line 23, in <module>
with open('test-requirements.txt') as reqs_file:
FileNotFoundError: [Errno 2] No such file or directory: 'test-requirements.txt'
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-aseawxsa/
=========================================================================== log end ============================================================================
py35 inst-nodeps: /src/.tox/.tmp/package/1/GitPython-3.1.11.zip
ERROR: invocation failed (exit code 1), logfile: /src/.tox/py35/log/py35-5.log
========================================================================== log start ===========================================================================
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Processing ./.tox/.tmp/package/1/GitPython-3.1.11.zip
ERROR: Command errored out with exit status 1:
command: /src/.tox/py35/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-fysfvxlc/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-fysfvxlc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-1tjj1tec
cwd: /tmp/pip-req-build-fysfvxlc/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-fysfvxlc/setup.py", line 23, in <module>
with open('test-requirements.txt') as reqs_file:
FileNotFoundError: [Errno 2] No such file or directory: 'test-requirements.txt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
=========================================================================== log end ============================================================================
py36 inst-nodeps: /src/.tox/.tmp/package/1/GitPython-3.1.11.zip
ERROR: invocation failed (exit code 1), logfile: /src/.tox/py36/log/py36-5.log
========================================================================== log start ===========================================================================
Processing ./.tox/.tmp/package/1/GitPython-3.1.11.zip
ERROR: Command errored out with exit status 1:
command: /src/.tox/py36/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-x2dsh1bw/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-x2dsh1bw/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-euhv28gy
cwd: /tmp/pip-req-build-x2dsh1bw/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-x2dsh1bw/setup.py", line 23, in <module>
with open('test-requirements.txt') as reqs_file:
FileNotFoundError: [Errno 2] No such file or directory: 'test-requirements.txt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
=========================================================================== log end ============================================================================
py37 inst-nodeps: /src/.tox/.tmp/package/1/GitPython-3.1.11.zip
ERROR: invocation failed (exit code 1), logfile: /src/.tox/py37/log/py37-5.log
========================================================================== log start ===========================================================================
Processing ./.tox/.tmp/package/1/GitPython-3.1.11.zip
ERROR: Command errored out with exit status 1:
command: /src/.tox/py37/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-ip1q3knn/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-ip1q3knn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-v6snvpqw
cwd: /tmp/pip-req-build-ip1q3knn/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-ip1q3knn/setup.py", line 23, in <module>
with open('test-requirements.txt') as reqs_file:
FileNotFoundError: [Errno 2] No such file or directory: 'test-requirements.txt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
=========================================================================== log end ============================================================================
py38 create: /src/.tox/py38
ERROR: InterpreterNotFound: python3.8
flake8 inst-nodeps: /src/.tox/.tmp/package/1/GitPython-3.1.11.zip
ERROR: invocation failed (exit code 1), logfile: /src/.tox/flake8/log/flake8-5.log
========================================================================== log start ===========================================================================
Processing ./.tox/.tmp/package/1/GitPython-3.1.11.zip
ERROR: Command errored out with exit status 1:
command: /src/.tox/flake8/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-pozqr_7o/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-pozqr_7o/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-i2yvd5ub
cwd: /tmp/pip-req-build-pozqr_7o/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-pozqr_7o/setup.py", line 23, in <module>
with open('test-requirements.txt') as reqs_file:
FileNotFoundError: [Errno 2] No such file or directory: 'test-requirements.txt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
=========================================================================== log end ============================================================================
___________________________________________________________________________ summary ____________________________________________________________________________
ERROR: py34: InvocationError for command /src/.tox/py34/bin/python -m pip install --no-deps -U .tox/.tmp/package/1/GitPython-3.1.11.zip (exited with code 1)
ERROR: py35: InvocationError for command /src/.tox/py35/bin/python -m pip install --no-deps -U .tox/.tmp/package/1/GitPython-3.1.11.zip (exited with code 1)
ERROR: py36: InvocationError for command /src/.tox/py36/bin/python -m pip install --no-deps -U .tox/.tmp/package/1/GitPython-3.1.11.zip (exited with code 1)
ERROR: py37: InvocationError for command /src/.tox/py37/bin/python -m pip install --no-deps -U .tox/.tmp/package/1/GitPython-3.1.11.zip (exited with code 1)
ERROR: py38: InterpreterNotFound: python3.8
ERROR: flake8: InvocationError for command /src/.tox/flake8/bin/python -m pip install --no-deps -U .tox/.tmp/package/1/GitPython-3.1.11.zip (exited with code 1)
make: *** [test] Error 1
It seems like the docker build / docker run are executing as I'd expect, and test-requirements.txt exists; not sure where the disconnect is that renders tox unable to see it.
Reactions are currently unavailable
Activity
Byron commentedon Nov 27, 2020
Even though I didn't try to reproduce it as I expect docker to be inherently reproducible, it looks like the way
toxtries to runsetup.pyis the problem as it runs from/tmp/pip-req-build-aseawxsa/setup.pyand apparently as a different working dir. Thus trying to opentest-requirements.txtfails as the CWD is not/src.Since
make testis not run on CI or anywhere really, it might have regressed. This is likely as the dockerfile doesn't seem to pin versions, maybe it's even a change/regression intoxitself.Judging from the
tox.inifile, I would expect this to not be an issue though.deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txtwisnij commentedon Dec 30, 2020
I also get this error when running
toxdirectly from the command line as mentioned inREADME.md:Yobmod commentedon Feb 28, 2021
I get the same error on windows (no Docker) with tox.
No such file or directory: 'test-requirements.txt'Had to run the tests for different environments separately with unittest.
Byron commentedon Mar 2, 2021
I think
make testis not run anywhere on CI anymore and a good example for an issue with by now dead code. It might be best to remove the docker targets (or fix them if there is value).Byron commentedon Jul 16, 2021
I am closing this issue as
make testalong with all docker related files and targets has been removed. It wasn't run/tested anymore on CI and shouldn't mislead people into rightfully assuming that it works.Initial Tox configuration, Python 3.8