Forum in maintenance, we will back soon 🙂
[Solved] error while debuging
try 2 dots instead of one.
can you please show a screenshot of your project files and hierarchy
@awan do you have an __init__.py file in your current directory?
Where does your routers.py file or routers directory exist?
Please provide a public GitHub URL to your code to make it easier for us to help you.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
Sir, the code is the same that sir, is given at the end of Build and Sell APIs - Establish a New Income Stream! coursre
@admin sir, I have tried many things but the error is not solved here is the screen shot
and some time this will give error
@awan, this is not a problem; it is just showing that some functions may be deprecated. Hover over it and read the message.
Anyway, let's focus on the main problem first.
I tried the template now from my side, and it worked perfectly, did you try to debug step by step to see where it is breaking exactly?
did you add routers and functions? or is it just my template without any changes?
@admin I tried both add routers and functions also and tried to run just your template without any changes.
every time this error show while debugging
can you please try to replace the routers important statement with this:
from app.routers import tools
and see if the error jumps to the next line
@admin thanks sir error solved it was in launch.json file
@awan what exactly the error? is there something I need to fix in my template?
@admin No, no sir the error was on my side your template is fully working
@awan can you please show us what you changed to make it work? It will help us help others in the future.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@awan thanks for sharing, it makes sense based on your directory structure.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@ssadvisor My folders structure is not like above and also I don't have launch.json? did I missed something from the course? because I get above error.