Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile missing file binary #69

Closed
1 task done
Helithumper opened this issue Apr 24, 2023 · 1 comment
Closed
1 task done

Dockerfile missing file binary #69

Helithumper opened this issue Apr 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Helithumper
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When attempting to run make check without file installed, we get a list of E FileNotFoundError: [Errno 2] No such file or directory: 'file' errors

python3.10 -m pytest -vvv --log-cli-level=info -s --color=yes  tests
==================================================== test session starts =====================================================platform linux -- Python 3.10.11, pytest-7.3.1, pluggy-1.0.0 -- /venv/bin/python3.10
cachedir: .pytest_cache
rootdir: /src
plugins: xdist-3.2.1, cov-4.0.0
collected 319 items / 8 errors                                                                                               

=========================================================== ERRORS ===========================================================__________________________________ ERROR collecting tests/integration/test_core_analyzer.py __________________________________tests/integration/test_core_analyzer.py:19: in <module>
    from tests.utils import ALL_PYTHONS
tests/utils.py:72: in <module>
    AVAILABLE_PYTHONS = tuple(find_all_available_pythons())
tests/utils.py:59: in find_all_available_pythons
    result = subprocess.run(
/usr/lib/python3.10/subprocess.py:503: in run
    with Popen(*popenargs, **kwargs) as process:
/usr/lib/python3.10/subprocess.py:971: in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.10/subprocess.py:1863: in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
E   FileNotFoundError: [Errno 2] No such file or directory: 'file'
__________________________________ ERROR collecting tests/integration/test_gather_stacks.py __________________________________tests/integration/test_gather_stacks.py:18: in <module>
    from tests.utils import ALL_PYTHONS
tests/utils.py:72: in <module>
    AVAILABLE_PYTHONS = tuple(find_all_available_pythons())
tests/utils.py:59: in find_all_available_pythons
    result = subprocess.run(
/usr/lib/python3.10/subprocess.py:503: in run
    with Popen(*popenargs, **kwargs) as process:
/usr/lib/python3.10/subprocess.py:971: in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.10/subprocess.py:1863: in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
E   FileNotFoundError: [Errno 2] No such file or directory: 'file'
_______________________________________ ERROR collecting tests/integration/test_gc.py ________________________________________tests/integration/test_gc.py:7: in <module>
    from tests.utils import ALL_PYTHONS
tests/utils.py:72: in <module>
    AVAILABLE_PYTHONS = tuple(find_all_available_pythons())
tests/utils.py:59: in find_all_available_pythons
    result = subprocess.run(
/usr/lib/python3.10/subprocess.py:503: in run
    with Popen(*popenargs, **kwargs) as process:
/usr/lib/python3.10/subprocess.py:971: in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.10/subprocess.py:1863: in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
E   FileNotFoundError: [Errno 2] No such file or directory: 'file'
_______________________________________ ERROR collecting tests/integration/test_gil.py _______________________________________tests/integration/test_gil.py:5: in <module>
    from tests.utils import ALL_PYTHONS
tests/utils.py:72: in <module>
    AVAILABLE_PYTHONS = tuple(find_all_available_pythons())
tests/utils.py:59: in find_all_available_pythons
    result = subprocess.run(
/usr/lib/python3.10/subprocess.py:503: in run
    with Popen(*popenargs, **kwargs) as process:
/usr/lib/python3.10/subprocess.py:971: in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.10/subprocess.py:1863: in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
E   FileNotFoundError: [Errno 2] No such file or directory: 'file'
_________________________________ ERROR collecting tests/integration/test_local_variables.py _________________________________tests/integration/test_local_variables.py:8: in <module>
    from tests.utils import ALL_PYTHONS
tests/utils.py:72: in <module>
    AVAILABLE_PYTHONS = tuple(find_all_available_pythons())
tests/utils.py:59: in find_all_available_pythons
    result = subprocess.run(
/usr/lib/python3.10/subprocess.py:503: in run
    with Popen(*popenargs, **kwargs) as process:
/usr/lib/python3.10/subprocess.py:971: in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.10/subprocess.py:1863: in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
E   FileNotFoundError: [Errno 2] No such file or directory: 'file'
_____________________________________ ERROR collecting tests/integration/test_process.py _____________________________________tests/integration/test_process.py:14: in <module>
    from tests.utils import ALL_PYTHONS
tests/utils.py:72: in <module>
    AVAILABLE_PYTHONS = tuple(find_all_available_pythons())
tests/utils.py:59: in find_all_available_pythons
    result = subprocess.run(
/usr/lib/python3.10/subprocess.py:503: in run
    with Popen(*popenargs, **kwargs) as process:
/usr/lib/python3.10/subprocess.py:971: in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.10/subprocess.py:1863: in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
E   FileNotFoundError: [Errno 2] No such file or directory: 'file'
________________________________ ERROR collecting tests/integration/test_relocatable_cores.py ________________________________tests/integration/test_relocatable_cores.py:13: in <module>
    from tests.utils import generate_core_file
tests/utils.py:72: in <module>
    AVAILABLE_PYTHONS = tuple(find_all_available_pythons())
tests/utils.py:59: in find_all_available_pythons
    result = subprocess.run(
/usr/lib/python3.10/subprocess.py:503: in run
    with Popen(*popenargs, **kwargs) as process:
/usr/lib/python3.10/subprocess.py:971: in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.10/subprocess.py:1863: in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
E   FileNotFoundError: [Errno 2] No such file or directory: 'file'
______________________________________ ERROR collecting tests/integration/test_smoke.py ______________________________________tests/integration/test_smoke.py:11: in <module>
    from tests.utils import generate_core_file
tests/utils.py:72: in <module>
    AVAILABLE_PYTHONS = tuple(find_all_available_pythons())
tests/utils.py:59: in find_all_available_pythons
    result = subprocess.run(
/usr/lib/python3.10/subprocess.py:503: in run
    with Popen(*popenargs, **kwargs) as process:
/usr/lib/python3.10/subprocess.py:971: in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.10/subprocess.py:1863: in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
E   FileNotFoundError: [Errno 2] No such file or directory: 'file'
================================================== short test summary info ===================================================ERROR tests/integration/test_core_analyzer.py - FileNotFoundError: [Errno 2] No such file or directory: 'file'
ERROR tests/integration/test_gather_stacks.py - FileNotFoundError: [Errno 2] No such file or directory: 'file'
ERROR tests/integration/test_gc.py - FileNotFoundError: [Errno 2] No such file or directory: 'file'
ERROR tests/integration/test_gil.py - FileNotFoundError: [Errno 2] No such file or directory: 'file'
ERROR tests/integration/test_local_variables.py - FileNotFoundError: [Errno 2] No such file or directory: 'file'
ERROR tests/integration/test_process.py - FileNotFoundError: [Errno 2] No such file or directory: 'file'
ERROR tests/integration/test_relocatable_cores.py - FileNotFoundError: [Errno 2] No such file or directory: 'file'
ERROR tests/integration/test_smoke.py - FileNotFoundError: [Errno 2] No such file or directory: 'file'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 8 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!===================================================== 8 errors in 0.63s ======================================================make: *** [Makefile:53: check] Error 2```

### Expected Behavior

Tests to run past execution

### Steps To Reproduce

1. Build Dockerfile
2. Open bash in Dockerfile
3. Ensure other dependencies are installed
4. Run `make check`

### Pystack Version

https://github.com/bloomberg/pystack/commit/6de749f015486a26c9c57265ce32a50976f59bd4

### Python Version

3.10

### Linux distribution

Ubuntu, Other

### Anything else?

_No response_
@Helithumper Helithumper added the bug Something isn't working label Apr 24, 2023
@Helithumper
Copy link
Contributor Author

I'm going to submit a PR just adding the apt file package to the Dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant