I have a script that imports a module located in the plugins
folder. When I run my script, I get the ModuleNotFoundError error (note that I use import) even though the module exists and I can import it with a basic import plugins
.
But when I try to debug using ipdb, by placing ipdb.set_trace()
before the line which generates the error, no problem, I can do a copy and paste and everything works. So I try again by pressing c
directly in order to continue the script without writing anything to ipdb, and there, it works.
It’s really strange and I don’t know what to do!
Thank you in advance for your help.
Sun Water is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.