Hi @krish sir, the error in why it wasn't getting logged into the file was because we didn't import the logger.py file as a module in the exception.py file.. Once I did that, it worked for me.. Thanks for the video. Helped a lot in understanding the Project Setup.
OMG OMG Your channel is gold mine. No words to thank your effort for explaining such skills while keeping the content so easy and simple. Please keep contributing (Liked, commented, subscribed & shared)
This is the best tutorial of github i ever learn i understood all commands, also about project and things related to project how to set environment and all things ... Amazing Krish bhaiya ...thank you very much 💪
Thank you so much for working hard to create such a quality content for us Really you are great work I am very thankful to you I will look forward to next video and series of same type
currently doing a DS internship, it was my first time training an model in the actual industry with real life messy data. if you looked at my task folder you'll probably catch a fever, I know I did (⊙ ⊙;). This video will help me in my future endeavors. Thanks! about the error not being logged, we haven't import our logger script
Amazing video! Its a solid bridge to transition from academics to industry! Thank you Krish! Ther is one issue I encountered, def error_message_details(error, error_detail:sys): in this, the type casting to sys is showing up as an error on vscode: Module cannot be used as a type. Could you please help me out how to resolve this?
Hello Krish, I enjoyed watching your video and getting to learn new stuff from it. I wanted to ask is there a reason why we created a logs directory structure as `logs/file_name.log/file_name.log`. In the middle there is a directory named same as the filename. Do we actually need the directory or is that a common practice in the industry? Thank you! Looking forward for more such videos!
Hi, I think it's it was an error he didn't notice. I ran it with the code snippet below and it work's well for me: LOG_FILE = f"{datetime.now().strftime('%y_%m_%d_%H_%M_%S')}.log" logs_path = os.path.join(os.getcwd(),"logs") os.makedirs(logs_path,exist_ok=True) LOG_FILE_PATH = os.path.join(logs_path, LOG_FILE) Hope it will help.
Hello @krishnaik06 I really appreciate your work, it is very helpful for me personally but I have one suggestion if possible then please explain each and every point or command properly so we don't have to take support from others. I can understand your time limit but still little a suggestion for me I hope you will work on it. Thank you
Dear Krish could you please suggest how do I add sales experience for Data Scientist role will this add any weightage for the resume or should I go completely as a fresher, I have experience in Auto, banking and telecom industry @Krish Naik
Hey I had some sales experience and switched my career to Software Developement. Your sales experience does not matter at all. Mention it on your resume but apply as fresher.
First of all, thank you for all the videos and the playlist. I have just one piece of feedback: please avoid using "with respect" in every second sentence. It's often used incorrectly and doesn't add any benefit.
from src.logger import logging ModuleNotFoundError: No module named 'src'PS C:\Users\asdf\Documents\D.S\END-TO-END-PROJECTS\Test> find this error that src in not found please anyone can fix it..
@@ebrahimbehrouzian6930 I see the very solution but nothing is working in my case you should try by creting __init__() file in each directory or gave the path in sys of that perticular directory
at 26:40, after running python src/logger.py the log folder and the logger file got created but the message "Logging has started" didn't get printed. Can somebody help me pleasee.
my logger is not printing the message. it is creating logs folder and file. But the message is not there in the file. If anyone face the problem and solved it or know the solution, pls reach out to me. Thankyou
Hi @krishnaik06 If I want to develop 10 different projects in 10 different github repositories, do i need to create this setup and environment every time from the beginning?
hello there, have you finished this? gender_group = df.groupby('gender').mean() gender_group I have been trying, but still error would you share your? how to solve it? thanks
hi krish, why do we need custom exception handeling when we can handle almost all the execptions using the inbuilt python functionality? Are there any specific type of errors or issues in ml workflow where this is used(cases where the inbuilt execption handeling is not enough)?
i have issue in enviroment even my file is not running and I did the same ways what u are doing still I have environments issues as u getting a new file in vs code after running m not able to get those depressed as hell
Please suggest me to resolve the issue which i am getting as below: File "src/exception.py", line 2, in from src.logger import logging ModuleNotFoundError: No module named 'src'
import os import sys # Use a raw string for the file path sys.path.append(os.path.abspath(r'C:\Users\xxxx\mlproject\src')) from logger import logging try this :)
Krish, I have a simple question but why are you building a project from zero instead of using Kedro or Cookie Cutter pattern? It's just because you are being didactic or there's something else?
Tum ml sikha rhho ki dara rahe ho itna sara code likh k ,,, backend developer ka kuch kaam nhi hai ml me toh kyu backend developer ka code likh ke dara rhe ho,,, hum data science kare ya na kre phir
Hi Sir i am constatntly getting this error no matter what i have even checked up with chatgpt LOG_FILE=f"{datetime.now().strftime('%m_%d_%Y_%H_%M_%S')}.log" ^ SyntaxError: invalid syntax
In .gitignore file comment this *.log This will only work if you are able to see log files in your file explorer folder but not in vs code. Hope this helps!
Join this channel membership to get access to materials and connect with me:
ua-cam.com/channels/NU_lfiiWBdtULKOw6X0Dig.htmljoin
Hi @krish sir, the error in why it wasn't getting logged into the file was because we didn't import the logger.py file as a module in the exception.py file.. Once I did that, it worked for me.. Thanks for the video. Helped a lot in understanding the Project Setup.
I did the same. Working now. Thanks
OMG OMG Your channel is gold mine. No words to thank your effort for explaining such skills while keeping the content so easy and simple. Please keep contributing (Liked, commented, subscribed & shared)
This is the best tutorial of github i ever learn i understood all commands, also about project and things related to project how to set environment and all things ...
Amazing Krish bhaiya ...thank you very much 💪
Sir. Thank you so much for all the work you do. You are a national treasure!!!
Thank you for the series of videos showing the end-to-end code structure. It is awesome!!!
Sir.., First you have need to open .log file then we will logging successfully into .log file... Thank you sir ❤❤ to helping a lot..
Thank you so much for the excellent set of video tutorials. Hats off for the great dedicated work..
Thank you so much for working hard to create such a quality content for us
Really you are great work
I am very thankful to you
I will look forward to next video and series of same type
So helpful! Thank you so much you are such a good teacher!!!
Thank you.
I don't have enough words to say thanks to you.
Amazing tutorial. Appreciate your effort.
Enjoyed, learned as well as executed it!!! Thank you so much sir!!
Gosh, its like watching a master guitarist play an amazing solo
Thank you so much for all the effort you took explaining this nicely
Really like the way you explain. Nice work sir!!
Thanks
Brother,i am from Bangladesh. i am watching your videos.. it's so helpful. keep up good works..
This is so so so great. Thankyou for this Sir.
Beautiful Explanation.
Brilliant!!
Thanks Krish for your tutorial!
Love you Sir Thank You so much!
this is just beautiful , no words for krish
currently doing a DS internship, it was my first time training an model in the actual industry with real life messy data. if you looked at my task folder you'll probably catch a fever, I know I did (⊙ ⊙;). This video will help me in my future endeavors. Thanks!
about the error not being logged, we haven't import our logger script
can u drop ur linkedin or any other social media here where i can contact u
Thanks once again
outstanding
thanks for this lecture
date - 9-7-2023
you are the best sir
Sir you are genious
Amazing video! Its a solid bridge to transition from academics to industry! Thank you Krish!
Ther is one issue I encountered, def error_message_details(error, error_detail:sys): in this, the type casting to sys is showing up as an error on vscode: Module cannot be used as a type. Could you please help me out how to resolve this?
I am facing the same issue. Any solutions?
import sys
Hello Krish, I enjoyed watching your video and getting to learn new stuff from it. I wanted to ask is there a reason why we created a logs directory structure as `logs/file_name.log/file_name.log`. In the middle there is a directory named same as the filename. Do we actually need the directory or is that a common practice in the industry?
Thank you! Looking forward for more such videos!
i am wondeing same thing, did you find an answer?
@@rabeegheni1224 Nope, I still couldn't find an answer for that.
Hi, I think it's it was an error he didn't notice.
I ran it with the code snippet below and it work's well for me:
LOG_FILE = f"{datetime.now().strftime('%y_%m_%d_%H_%M_%S')}.log"
logs_path = os.path.join(os.getcwd(),"logs")
os.makedirs(logs_path,exist_ok=True)
LOG_FILE_PATH = os.path.join(logs_path, LOG_FILE)
Hope it will help.
@@mathsmoz5353 Got it. Thanks!
Basically you didn't join LOG_FILE in logs_path variable. @@mathsmoz5353
Import logger into the exception file which will trigger the logger and your log file will be created..
Waiting..
Is it an alternate day series..?
Thanks
Hello @krishnaik06
I really appreciate your work, it is very helpful for me personally but I have one suggestion if possible then please explain each and every point or command properly so we don't have to take support from others. I can understand your time limit but still little a suggestion for me
I hope you will work on it.
Thank you
DS GOD. He needs to be pushed to TED Talks. He can touch many more insecure Engineer lives.
Dear Krish could you please suggest how do I add sales experience for Data Scientist role will this add any weightage for the resume or should I go completely as a fresher, I have experience in Auto, banking and telecom industry @Krish Naik
Hey I had some sales experience and switched my career to Software Developement. Your sales experience does not matter at all. Mention it on your resume but apply as fresher.
Thanks for the suggestion bro I did the same
First of all, thank you for all the videos and the playlist. I have just one piece of feedback: please avoid using "with respect" in every second sentence. It's often used incorrectly and doesn't add any benefit.
just we have to import logger then log file will be created
If anyone is facing issues with Datetime or any library, reinstall the virtual environment.
How to do it can you please explain
am facing this error
No module named 'datetime'
Reinstall the virtual environment and it'll be done.
@@neilrohra7374 if i re install need to all from beginning?
Thanks, Krish for the video it was very helpful. I'm having an error with "levelname" in line 13. error message says Unknown word
from src.logger import logging
ModuleNotFoundError: No module named 'src'PS C:\Users\asdf\Documents\D.S\END-TO-END-PROJECTS\Test>
find this error that src in not found please anyone can fix it..
me also same error, how to fix it
@@jerrinthomas1874 no one reply even not krish sir I totally stuck here ..If you get the solution please ping me
@@gajender6075 & @Jerrin Thomas , I have the same problem. Please let me know if you could find the solution. Thanks!
@@ebrahimbehrouzian6930 I see the very solution but nothing is working in my case you should try by creting __init__() file in each directory or gave the path in sys of that perticular directory
Make sure you have __init__.py in every folder.
We also need Sunny!!!
hey does anyone know why does'nt the logs file show under git status ?
Very complex to understand..
Most of the concepts were unclear
Will you use docker, aws?
yes :)
🙏💯💯
at 26:40, after running python src/logger.py the log folder and the logger file got created but the message "Logging has started" didn't get printed. Can somebody help me pleasee.
i think you should recheck your code
did you solved it. I am having the same issue
Which is the interpreter used?venv is not activating after restarting vs…any help??
my logger is not printing the message. it is creating logs folder and file. But the message is not there in the file. If anyone face the problem and solved it or know the solution, pls reach out to me. Thankyou
Hi @krishnaik06 If I want to develop 10 different projects in 10 different github repositories, do i need to create this setup and environment every time from the beginning?
hello there,
have you finished this?
gender_group = df.groupby('gender').mean()
gender_group
I have been trying, but still error
would you share your? how to solve it?
thanks
hi krish, why do we need custom exception handeling when we can handle almost all the execptions using the inbuilt python functionality? Are there any specific type of errors or issues in ml workflow where this is used(cases where the inbuilt execption handeling is not enough)?
I also wonder this
i have issue in enviroment even my file is not running and I did the same ways what u are doing still I have environments issues as u getting a new file in vs code after running m not able to get those depressed as hell
what's the issue .explain
i will help you
Please suggest me to resolve the issue which i am getting as below:
File "src/exception.py", line 2, in
from src.logger import logging
ModuleNotFoundError: No module named 'src'
Same issue brother have you resolved it
Try doing "cd src" if you are running it in cmd, it will work@@randomshortzz
from logger import logging use instead src.logger import logging
Hope it helps!
Hlo sir instead of vs code I can make project on jupter or not??
Same question here. If you already know the answer please let me know
Can I do this coding in Google collab
I am getting the no module named datetime error, while running python src/logger.py
import os
import sys
# Use a raw string for the file path
sys.path.append(os.path.abspath(r'C:\Users\xxxx\mlproject\src'))
from logger import logging
try this :)
#KingKrish
Krish, I have a simple question but why are you building a project from zero instead of using Kedro or Cookie Cutter pattern? It's just because you are being didactic or there's something else?
He wants us to understand the structure of projects I guess
When the part 3 video gonna come
Today is holi enjoy :)...the video will come tomorrow
😂
What is the problem statement?
We will discuss in the next video currently we are discussing the project set up
@@krishnaik06 Thank you
Hi sir, do we need any paid version software for this project?
No
@@samarmohanty6109 even for deploying tools.
Because heroku has no free trails.
where is part 1
ua-cam.com/video/Rv6UFGNmNZg/v-deo.html
No. Today Krish will upload 2 videos😅
sir kuch bhi samaj me nhi aaya
16:04 You lost your accent here lol
Tum ml sikha rhho ki dara rahe ho itna sara code likh k ,,, backend developer ka kuch kaam nhi hai ml me toh kyu backend developer ka code likh ke dara rhe ho,,, hum data science kare ya na kre phir
Right, Really Need this all kind of stuff ?
@@beAdevops ha na bhai main toh coding dekh k darr gya agar itna hoga toh main to analyst post pe javu
MAKSOOOD BHAI @krishnaik06 , Tum bhohot achha kaam krta hai . Apne ko tumko dil se thanks bolne ka hai . Jaadu ki Jhappi from Mumbai.🫂🫂
for logs you created logs/date.log/date.log, did you mean to create this directory in the middle?
Hi Sir
i am constatntly getting this error no matter what i have even checked up with chatgpt
LOG_FILE=f"{datetime.now().strftime('%m_%d_%Y_%H_%M_%S')}.log"
^
SyntaxError: invalid syntax
I'm not getting log files 🤌
In .gitignore file comment this *.log
This will only work if you are able to see log files in your file explorer folder but not in vs code.
Hope this helps!
Thank You
Thanks.
thanks