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

devel image crashes with "ModuleNotFoundError: No module named 'ldap'" #15614

Open
5 of 11 tasks
phire-tc opened this issue Nov 5, 2024 · 0 comments
Open
5 of 11 tasks

Comments

@phire-tc
Copy link

phire-tc commented Nov 5, 2024

Please confirm the following

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

Bug Summary

No response

AWX version

ghcr.io/ansible/awx_devel:devel ID 70a33322c9f7

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

docker development environment

Modifications

no

Ansible version

7.7.0+dfsg-3+deb12u1

Operating system

Debian GNU/Linux 12 (bookworm)

Web browser

Firefox

Steps to reproduce

Checkout commit 68055bb

$ COMPOSE_TAG=devel make docker-compose

Expected results

AWX runs.

Actual results

A process called "daphne" crashes because it can't import the ldap module:

tools_awx_1       | make[1]: Entering directory '/awx_devel'                                                                                                                                                                                  
tools_awx_1       | Traceback (most recent call last):                                                                                                                                                                                        
tools_awx_1       |   File "/var/lib/awx/venv/awx/bin/daphne", line 8, in <module>                                                                                                                                                            
tools_awx_1       |     sys.exit(CommandLineInterface.entrypoint())                                                                                                                                                                           
tools_awx_1       |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                            
tools_awx_1       |   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/daphne/cli.py", line 170, in entrypoint                                                                                                                      
tools_awx_1       |     cls().run(sys.argv[1:])                                                                                                                                                                                               
tools_awx_1       |   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/daphne/cli.py", line 232, in run                                                                                                                             
tools_awx_1       |     application = import_by_path(args.application)                                                                                                                                                                        
tools_awx_1       |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                        
tools_awx_1       |   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/daphne/utils.py", line 12, in import_by_path
tools_awx_1       |     target = importlib.import_module(module_path)                                                                                                                                                                         
tools_awx_1       |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                         
tools_awx_1       |   File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module                                                                                                                                          
tools_awx_1       |     return _bootstrap._gcd_import(name[level:], package, level)                                                                                                                                                           
tools_awx_1       |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                           
tools_awx_1       |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import                                                                                                                                                         
tools_awx_1       |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load                                                                                                                                                      
tools_awx_1       |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked                                                                                                                                             
tools_awx_1       |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked                                                                                                                                                       
tools_awx_1       |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module                                                                                                                                                 
tools_awx_1       |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed                                                                                                                                            
tools_awx_1       |   File "/awx_devel/awx/asgi.py", line 12, in <module>                                                                                                                                                                     
tools_awx_1       |     prepare_env()  # NOQA                                                                          
tools_awx_1       |     ^^^^^^^^^^^^^                                                                                  
tools_awx_1       |   File "/awx_devel/awx/__init__.py", line 107, in prepare_env                                                                                                                                                             
tools_awx_1       |     if not settings.DEBUG:  # pragma: no cover                                                                                                                                                                            
tools_awx_1       |            ^^^^^^^^^^^^^^                                                                          
tools_awx_1       |   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/django/conf/__init__.py", line 102, in __getattr__
tools_awx_1       |     self._setup(name)                                                                              
tools_awx_1       |   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/django/conf/__init__.py", line 89, in _setup
tools_awx_1       |     self._wrapped = Settings(settings_module)                                                                                                                                                                             
tools_awx_1       |                     ^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                             
tools_awx_1       |   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/django/conf/__init__.py", line 217, in __init__
tools_awx_1       |     mod = importlib.import_module(self.SETTINGS_MODULE)                                                                                                                                                                   
tools_awx_1       |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                   
tools_awx_1       |   File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module                                                                                                                                          
tools_awx_1       |     return _bootstrap._gcd_import(name[level:], package, level)                                                                                                                                                           
tools_awx_1       |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                           
tools_awx_1       |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import                                                                                                                                                         
tools_awx_1       |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load                                                                                                                                                      
tools_awx_1       |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked                                                                                                                                             
tools_awx_1       |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked                                                                                                                                                       
tools_awx_1       |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module                                                                                                                                                 
tools_awx_1       |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed                                                                                                                                            
tools_awx_1       |   File "/awx_devel/awx/settings/development.py", line 21, in <module>                                                                                                                                                     
tools_awx_1       |     from .defaults import *  # NOQA                                                                
tools_awx_1       |     ^^^^^^^^^^^^^^^^^^^^^^^                                                                        
tools_awx_1       |   File "/awx_devel/awx/settings/defaults.py", line 13, in <module>                                                                                                                                                        
tools_awx_1       |     import ldap                                                                                    
tools_awx_1       | ModuleNotFoundError: No module named 'ldap'                                                                                                                                                                               
tools_awx_1       | make[1]: Leaving directory '/awx_devel'                                                            
tools_awx_1       | make[1]: *** [Makefile:254: daphne] Error 1                                                                                                                                                                               
tools_awx_1       | 2024-11-05 13:56:08,594 WARN exited: awx-daphne (exit status 2; not expected)                                                                                                                                             

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant