awx icon indicating copy to clipboard operation
awx copied to clipboard

mockldap not available as defined in requirements_dev.txt

Open otih opened this issue 1 year ago • 3 comments

Please confirm the following

  • [X] I agree to follow this project's code of conduct.
  • [X] I have checked the current issues for duplicates.
  • [X] I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • [X] I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

the source of mockldap is not available as defined in requirements_dev.txt

AWX version

all

Select the relevant components

  • [ ] UI
  • [ ] UI (tech preview)
  • [ ] API
  • [ ] Docs
  • [ ] Collection
  • [ ] CLI
  • [X] Other

Installation method

docker development environment

Modifications

no

Ansible version

No response

Operating system

debian 12

Web browser

Firefox, Chrome, Safari, Edge

Steps to reproduce

git clone https://github.com/ansible/awx.git cd awx make docker-compose-build

build fail

Expected results

successfully docker-compose build

Actual results

[builder 10/10] RUN cd /tmp && make requirements_awx_dev:
#24 0.341 find: ‘awx_collection’: No such file or directory
#24 0.362 python3.9: can't open file '/tmp/tools/scripts/scm_version.py': [Errno 2] No such file or directory
#24 0.385 python3.9: can't open file '/tmp/tools/scripts/scm_version.py': [Errno 2] No such file or directory
#24 0.389 /var/lib/awx/venv/awx/bin/pip install -r requirements/requirements_dev.txt
#24 1.003 Collecting mockldap #24 1.003 Cloning https://github.com/artefactual-labs/mockldap.git (to revision master) to ./pip-install-0pi620zv/mockldap_6e58290e20be4a568cce57f40924c559 #24 1.003 Running command git clone -q https://github.com/artefactual-labs/mockldap.git /tmp/pip-install-0pi620zv/mockldap_6e58290e20be4a568cce57f40924c559 #24 1.244 fatal: could not read Username for 'https://github.com': No such device or address #24 1.248 WARNING: Discarding git+https://github.com/artefactual-labs/mockldap.git@master#egg=mockldap. Command errored out with exit status 128: git clone -q https://github.com/artefactual-labs/mockldap.git /tmp/pip-install-0pi620zv/mockldap_6e58290e20be4a568cce57f40924c559 Check the logs for full command output. #24 1.486 Collecting build #24 1.489 Using cached build-1.0.3-py3-none-any.whl (18 kB) #24 1.591 Collecting coreapi #24 1.728 Downloading coreapi-2.3.3-py2.py3-none-any.whl (25 kB) #24 1.867 Collecting django-debug-toolbar==3.2.4 #24 1.894 Downloading django_debug_toolbar-3.2.4-py3-none-any.whl (216 kB) #24 2.014 Collecting django-test-migrations #24 2.042 Downloading django_test_migrations-1.3.0-py3-none-any.whl (24 kB) #24 2.198 Collecting drf-yasg #24 2.234 Downloading drf_yasg-1.21.7-py3-none-any.whl (4.3 MB) #24 2.659 Collecting ipython>=7.31.1 #24 2.692 Downloading ipython-8.18.1-py3-none-any.whl (808 kB) #24 2.791 Collecting unittest2 #24 2.819 Downloading unittest2-1.1.0-py2.py3-none-any.whl (96 kB) #24 3.111 Collecting black #24 3.140 Downloading black-24.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB) #24 3.431 Collecting pytest!=7.0.0 #24 3.460 Downloading pytest-8.0.0-py3-none-any.whl (334 kB) #24 3.566 Collecting pytest-cov #24 3.593 Downloading pytest_cov-4.1.0-py3-none-any.whl (21 kB) #24 3.710 Collecting pytest-django #24 3.736 Downloading pytest_django-4.7.0-py3-none-any.whl (23 kB) #24 3.797 Collecting pytest-pythonpath #24 3.824 Downloading pytest_pythonpath-0.7.4-py3-none-any.whl (3.7 kB) #24 3.938 Collecting pytest-mock==1.11.1 #24 3.968 Downloading pytest_mock-1.11.1-py2.py3-none-any.whl (10 kB) #24 4.050 Collecting pytest-timeout #24 4.081 Downloading pytest_timeout-2.2.0-py3-none-any.whl (13 kB) #24 4.206 Collecting pytest-xdist==1.34.0 #24 4.232 Downloading pytest_xdist-1.34.0-py2.py3-none-any.whl (36 kB) #24 4.543 Collecting tox #24 4.572 Downloading tox-4.12.1-py3-none-any.whl (154 kB) #24 4.641 Collecting logutils #24 4.668 Downloading logutils-0.3.5.tar.gz (27 kB) #24 5.463 Collecting jupyter #24 5.489 Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB) #24 5.550 Collecting backports.tempfile #24 5.580 Downloading backports.tempfile-1.0-py2.py3-none-any.whl (4.4 kB) #24 5.637 ERROR: Could not find a version that satisfies the requirement mockldap (unavailable) (from versions: 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.3.0, 0.3.0.post1) #24 5.637 ERROR: No matching distribution found for mockldap (unavailable) #24 5.645 WARNING: You are using pip version 21.2.4; however, version 23.3.2 is available. #24 5.645 You should consider upgrading via the '/var/lib/awx/venv/awx/bin/python3.9 -m pip install --upgrade pip' command. #24 5.787 make: *** [Makefile:161: requirements_awx_dev] Error 1

Additional information

No response

otih avatar Jan 28 '24 01:01 otih

https://github.com/ansible/awx/pull/24 1.244 fatal: could not read Username for 'https://github.com/': No such device or address
https://github.com/ansible/awx/pull/24 1.248 WARNING: Discarding git+https://github.com/artefactual-labs/mockldap.git@master#egg=mockldap. Command errored out with exit status 128: git clone -q https://github.com/artefactual-labs/mockldap.git /tmp/pip-install-0pi620zv/mockldap_6e58290e20be4a568cce57f40924c559 Check the logs for full command output.

wondering if there was just some temporary issue with cloning from GH, then it happened to work when making your change in the PR

do you still experience this issue if running make docker-compose-build today?

fosterseth avatar Jan 31 '24 16:01 fosterseth

I can not reproduce this with a clean build with no cache

TheRealHaoLiu avatar Jan 31 '24 16:01 TheRealHaoLiu

@otih were you able to resolve this by rebuilding with a cleared cache?

thedoubl3j avatar Feb 07 '24 20:02 thedoubl3j