Frozen importlib._bootstrap

Any clue about the reason of following error. Where I should look to remove this.

File “”, line 1027, in _find_and_load
File “”, line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘library_management’

I believe this is path issue. When we create a new app, then where it’s path is stored?

I assume, developers rather than normal user will be able solve this issue quite easy.

See library_management app is here:

sdc@cc:~/frappe-bench/apps$ ls -l
total 8
drwxrwxr-x 8 sdc sdc 4096 Oct 24 05:45 frappe
drwxrwxr-x 5 sdc sdc 4096 Oct 24 07:50 library_management

There is entry in apps.txt

sdc@cc:~/frappe-bench$ cat sites/apps.txt
frappe
library_management

The why it says:

ModuleNotFoundError: No module named ‘library_management’

Problem solved by adding library-management.egg-link , and easy-install.pth

hsrai@HoDCE:~/frappe-bench$ cat env/lib/python3.10/site-packages/library-management.egg-link 
/home/hsrai/frappe-bench/apps/library_management
.hsrai@HoDCE:~/frappe-bench$ cat env/lib/python3.10/site-packages/easy-install.pth 
/home/hsrai/frappe-bench/apps/library_management

Most of you may not encounter such type of error ever. If got this error due to accidentally removed “env” folder, and then creating it by:

bench setup env

Feeling great by solving this issue, which taught a lot, though caused by my own blunder :wink: