Skip to content

[WIP] Fix import module error in gunicorn#23

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/fix-import-module-error
Draft

[WIP] Fix import module error in gunicorn#23
Copilot wants to merge 1 commit intomainfrom
copilot/fix-import-module-error

Conversation

Copy link

Copilot AI commented Jan 31, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

2026-01-31T19:25:33.757Z ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
2026-01-31T19:25:33.757Z File "/home/frappe/frappe-bench/env/lib/python3.14/site-packages/gunicorn/util.py", line 366, in import_app
2026-01-31T19:25:33.757Z mod = importlib.import_module(module)
2026-01-31T19:25:33.757Z File "/usr/local/lib/python3.14/importlib/init.py", line 88, in import_module
2026-01-31T19:25:33.757Z return _bootstrap._gcd_import(name[level:], package, level)
2026-01-31T19:25:33.757Z ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-01-31T19:25:33.757Z File "", line 1398, in _gcd_import
2026-01-31T19:25:33.757Z File "", line 1371, in _find_and_load
2026-01-31T19:25:33.757Z File "", line 1342, in _find_and_load_unlocked
2026-01-31T19:25:33.757Z File "", line 938, in _load_unlocked
2026-01-31T19:25:33.757Z File "", line 759, in exec_module
2026-01-31T19:25:33.757Z File "", line 491, in _call_with_frames_removed
2026-01-31T19:25:33.757Z File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 43, in
2026-01-31T19:25:33.757Z import bleach
2026-01-31T19:25:33.757Z ModuleNotFoundError: No module named 'bleach'
2026-01-31T19:26:34.963Z Traceback (most recent call last):
2026-01-31T19:26:34.964Z File "/home/frappe/frappe-bench/env/bin/gunicorn", line 10, in
2026-01-31T19:26:34.964Z sys.exit(run())
2026-01-31T19:26:34.964Z ~~~^^
2026-01-31T19:26:34.964Z File "/home/frappe/frappe-bench/env/lib/python3.14/site-packages/gunicorn/app/wsgiapp.py", line 66, in run
2026-01-31T19:26:34.964Z WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()
2026-01-31T19:26:34.964Z ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
2026-01-31T19:26:34.964Z File "/home/frappe/frappe-bench/env/lib/python3.14/site-packages/gunicorn/app/base.py", line 235, in run
2026-01-31T19:26:34.964Z super().run()
2026-01-31T19:26:34.964Z ~~~~~~~~~~~^^
2026-01-31T19:26:34.964Z File "/home/frappe/frappe-bench/env/lib/python3.14/site-packages/gunicorn/app/base.py", line 71, in run
2026-01-31T19:26:34.964Z Arbiter(self).run()
2026-01-31T19:26:34.964Z ~~~~~~~^^^^^^
2026-01-31T19:26:34.964Z File "/home/frappe/frappe-bench/env/lib/python3.14/site-packages/gunicorn/arbiter.py", line 58, in init
2026-01-31T19:26:34.964Z self.setup(app)
2026-01-31T19:26:34.964Z ~~~~~~~~~~^^^^^
2026-01-31T19:26:34.964Z File "/home/frappe/frappe-bench/env/lib/python3.14/site-packages/gunicorn/arbiter.py", line 118, in setup
2026-01-31T19:26:34.964Z self.app.wsgi()
2026-01-31T19:26:34.964Z ~~~~~~~~~~~~~^^
2026-01-31T19:26:34.964Z File "/home/frappe/frappe-bench/env/lib/python3.14/site-packages/gunicorn/app/base.py", line 66, in wsgi
2026-01-31T19:26:34.964Z self.callable = self.load()
2026-01-31T19:26:34.964Z ~~~~~~~~~^^
2026-01-31T19:26:34.964Z File "/home/frappe/frappe-bench/env/lib/python3.14/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
2026-01-31T19:26:34.964Z return self.load_wsgiapp()
2026-01-31T19:26:34.964Z ~~~~~~~~~~~~~~~~~^^
2026-01-31T19:26:34.964Z File "/home/frappe/frappe-bench/env/lib/python3.14/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
2026-01-31T19:26:34.964Z return util.import_app(self.app_uri)
2026-01-31T19:26:34.964Z ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
2026-01-31T19:26:34.964Z File "/home/frappe/frappe-bench/env/lib/python3.14/site-packages/gunicorn/util.py", line 366, in import_app
2026-01-31T19:26:34.964Z mod = importlib.import_module(module)
2026-01-31T19:26:34.964Z File "/usr/local/lib/python3.14/importlib/init.py", line 88, in import_module
2026-01-31T19:26:34.964Z return _bootstrap._gcd_import(name[level:], package, level)
2026-01-31T19:26:34.964Z ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-01-31T19:26:34.964Z File "", line 1398, in _gcd_import
2026-01-31T19:26:34.964Z File "", line 1371, in _find_and_load
2026-01-31T19:26:34.964Z File "", line 1342, in _find_and_load_unlocked
2026-01-31T19:26:34.964Z File "", line 938, in _load_unlocked
2026-01-31T19:26:34.964Z File "", line 759, in exec_module
2026-01-31T19:26:34.964Z File "", line 491, in _call_with_frames_removed
2026-01-31T19:26:34.964Z File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 43, in
2026-01-31T19:26:34.964Z import bleach
2026-01-31T19:26:34.964Z ModuleNotFoundError: No module named 'bleach'
2026-01-31T19:27:36.080Z Traceback (most recent call last):
2026-01-31T19:27:36.080Z File "/home/frappe/frappe-bench/env/bin/gunicorn", line 10, in
2026-01-31T19:27:36.080Z sys.exit(run())
2026-01-31T19:27:36.080Z ~~~^^
2026-01-31T19:27:36.080Z File "/home/frappe/frappe-bench/env/lib/python3.14/site-packages/gunicorn/ap...


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants