Bench new-app not completing

Hello everyone,
I am getting the following error when when I run bench new-app library_management

bench new-app library_management                         
WARN: bench is installed in editable mode!

This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`

INFO:bench.app:creating new app library_management
App Title (default: Library Management): 
App Description: 
App Description: 
App Description: 
App Description: fdfd
App Publisher: fd
App Email: fd@df.r
App Icon (default 'octicon octicon-file-directory'): 
App Color (default 'grey'): 
App License (default 'MIT'): 
'library_management' created at /Users/deschantkounou/dev/frappe-bench/apps/library_management
INFO:bench.app:installing library_management
$ ./env/bin/pip install -q -U -e ./apps/library_management 
$ bench build --app library_management
WARN: bench is installed in editable mode!

This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/Users/deschantkounou/dev/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 97, in <module>
    main()
  File "/Users/deschantkounou/dev/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/Users/deschantkounou/dev/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/deschantkounou/dev/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/deschantkounou/dev/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/deschantkounou/dev/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/deschantkounou/dev/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/deschantkounou/dev/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/deschantkounou/dev/frappe-bench/apps/frappe/frappe/commands/utils.py", line 25, in build
    frappe.init('')
  File "/Users/deschantkounou/dev/frappe-bench/apps/frappe/frappe/__init__.py", line 173, in init
    setup_module_map()
  File "/Users/deschantkounou/dev/frappe-bench/apps/frappe/frappe/__init__.py", line 1015, in setup_module_map
    for module in get_module_list(app):
  File "/Users/deschantkounou/dev/frappe-bench/apps/frappe/frappe/__init__.py", line 884, in get_module_list
    return get_file_items(os.path.join(os.path.dirname(get_module(app_name).__file__), "modules.txt"))
  File "/Users/deschantkounou/dev/frappe-bench/apps/frappe/frappe/__init__.py", line 842, in get_module
    return importlib.import_module(modulename)
  File "/Users/deschantkounou/dev/frappe-bench/env/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'library_management'

Can anyone point me in the direction of what I am doing wrong? I am completely new to Frappe.
Thanks!

Could be a problem with your python environment. I faced a similar problem where apps installed would throw ModuleNotFoundError while trying to access them again. I switched to using pyenv and haven’t faced it since.