I know you can't go through all the details. For a first-time programmer, I ran into a lot of challenges regarding cmd and some of the commands. I had to do additional research on how to solve some of these errors I faced. Overall, I learned a lot from you. I just want to say thank you for taking the time to teach us your skills. PS: My website is just now being built in Render, very excited to see what it looks like.
Thank you very much for this video . I was struggling for 2 days to deploy my web app in the cloud and then I came across your video . My web app is successfully deployed. This video has been a tremendous help for me . I hope you keep making such videos . Love from India❤
Okay why does this channel has so less subscribers? I am not being paid by this man, but I seriously suggest everyone to take a look at all his videos.
Streamlit cloud deployments is now requiring full access to all your repos including private ones. I guess snowflake is training their models on all repos they can get access too without paying anything to the devs
Thank you Sven! I did my website and it is up and running. Do you have a video on how to change the description of the website? The one that shows when you google it "$domain$ is your first and best source for all of the information you're looking for. From general topics to more of what you would expect to find here, .... " Or how to add keywords that make the website appear when you search for its content? Thank you!
Thanks for tuning in! Currently, adding a meta description is not natively supported by Streamlit, at least from what I understand. You can read more about this in the following discussion: discuss.streamlit.io/t/adding-a-meta-description-to-your-streamlit-app/17847/21 Cheers, Sven ✌️
Very eloquently explained, thank you Sven. If I may ask, how can I deploy a paid (subscription-based) web app on my own website? I have a web hosting plan on Hostinger and an active domain.
Thanks for watching. Glad you liked it. As far I can see, that would be only possible if you have a virutal private server on Hostinger: support.hostinger.com/en/articles/3648030-is-python-supported-at-hostinger
Hi Sven, thanks for making this tutorial. I realize that your demo website does not fall asleep. Are you using the paid version of Render? Or is there a "ping" service like the Kaffeine of Heroku?
Thanks for watching. For the demo CV I am using the free trier. Most likely, due to my tutorial on it, some people might click on the website and therefore "keeping it alive".
Dear Sven. Excellent video! For a Streamlit dashboard app that reads data from Excel file, how would we re-deploy on Render if there are changes or additions to Excel file? I know we could upload updated Excel file to GitHub. Will the changes be reflected on deployed web dashboard? Thank you
Thank you for watching. If there are any changes to the Excel file, you will need to re-upload it to your GitHub repository. In most cases, this isn't very practical. A better approach would be to use a database or, for smaller-scale projects, a Google Sheets document, as Google Sheets can be accessed via API. If you're interested in the Google Sheets option, check out my latest videos - I have demonstrated there how to connect Streamlit with Google Sheets. I hope this helps! Happy coding! :)
Thank you, Sven for uploading this great tutorial. Fantastic explanation as always on every videos. I'd followed along the tutorial, Deploy live was successful however got an error while clicking on the link "No such file or directory: '/opt/render/project/src/assets/CV.pdf'. Any help would be greatly appreciated. Thanks again for sharing these contents.
Thank you for the kind words. Regarding your issue, please ensure to use relative filepaths. Example: ✅ DO: from pathlib import Path current_dir = Path(__file__).parent if "__file__" in locals() else Path.cwd() CV = current_dir / "assets" / "CV.pdf" ⛔ DO NOT: CV = r"C:/UserName/project/src/assets/CV.pdf"
Hi Sven, thank you for this incredible tutorial I am trying to deploy a multi-webpage app However, i have waited like 20min and i only see the first page (homepage), i have two pages more , one with my projects and contact page Do we need to do something different in the process to see all pages? Thanks
Thanks for watching. I took the time and tested it out for you. I followed the exact steps and it works: multipage-example.onrender.com/ I have used this example: github.com/Sven-Bo/streamlit-multipage-app-example
@@CodingIsFun Hi Sven, i have a question. How can i add in the second page ( portfolio) a dataframe and also plotly graphics? I tried but i have an error: "FileNotFoundError: [Errno 2] No such file or directory: " i have the file saved in the folder but it's not working :( . Thank you
Hello, Sven . Thank you so much for your great work. Can you advise us a good hosting service for streamlit app (not free), i mean to have our own domain. I hear about Heroku and hostinger, but i would like to have your opinion.
Thank you for tuning in! Most premium hosting services, including Heroku and Render, which I've personally tested, enable you to link your custom domain to their DNS. Wishing you smooth and successful deployments!
It's not directly related to the deployment, but after you have your web app online how can you integrate it to an existing site? For example, on your domain pythonandvba (running Wordpress) you have also seamlessly embedded mytoolbelt. Can you make a video explaining how to achieve this? Thank youuu! 🙏
Thanks for watching. I'm not entirely sure I understand your request, but if you'd like to set up a custom domain on Render, here's a tutorial: render.com/docs/custom-domains. In a nutshell, you can purchase a domain, for example, from namecheap.com. Once you have the domain, you can point your Render app to it. I hope that helps!
Thanks for this great tutorial as well. I unfortunately face problems with Render for the streamlit_extras library (tried with underscore and hyphen as well). any idea on that? Pandas 1.5.3 was also a problem. Mar 29 08:18:12 AM ERROR: Could not find a version that satisfies the requirement streamlit-extras==0.2.6 (from -r requirements.txt (line 6)) (from versions: 0.0.1) Mar 29 08:18:12 AM ERROR: No matching distribution found for streamlit-extras==0.2.6 (from -r requirements.txt (line 6)) Even Heroku is not free of charge (btw: i understand that products cost money...), is it more up to date in terms of libraries? Or is there any alternative that is straightforward? Thanks a lot!
Thanks a lot for this great tutorial. I am having an issue with PDF. My streamlit app should convert a DOCX file to PDF by docx2pdf command, but Render couldn't run it because it's on Linux system. I am getting an NotImplementedError: docx2pdf is not implemented for linux as it requires Microsoft Word to be installed. I am looking for library to replace doxc2pdf. Thank you for your help.
Thank you for watching the video and for your question. Unfortunately, I do not know how to implement that right off the bat. I would also need to search the internet for a solution. Sorry that I cannot help!
Hi Sven. Thanks for this tutorial. I’ve noticed that my deployed streamlit app on render takes an awfully long period of time to load. Most times, I refresh browser like 3 to 4 times before I see see the app. Is there a way of speeding the loading process?
@@CodingIsFun hey hi, thanks for prompt reply. I understand that but I'm asserting secrets.toml won't be pushed, I was wandering how to add them to render, but I read they secrets can be loaded from os.detenv and they can be set in the render settings.
@@picklenickil The secrets.toml is only needed when deploying to the Streamlit Community Cloud. On Render (or any hosting provider) you can use / set environment variables, that can be then used inside your Streamlit app
Thank you, Sven, for uploading this great tutorial. I, however, got this error: ERROR: No matching distribution found for streamlit==1.25.0 (from -r requirements.txt (line 3)). how do I resolve it, please?
thanks Sven. it worked. however, I got this error on the webpage after successfully deploying on render: ImportError: cannot import name 'Literal' from 'typing' (/usr/local/lib/python3.7/typing.py) any suggestions on how to fix this?
Thanks for the awesome video! I deployed the website, and it works well on laptop. The problem is, it's not working on Mobile!! I only see white screen on the screen.. Anyone has a same problem?
I already signed up on Render, but it require credit card to continue. And I dont have free plan option. I'm a bit confused here. Or is there any limitations in some country? Any clue, please?
your tutorials are very helpful i got a problem firstly i deployed an app it is failed because of spelling mistake in initial commit and next i corrected and started to deploy every step you said but failed again with this reason "Newer logs may be unavailable because a recent deploy failed. View recent events." how do i fix this please
Thanks for watching. Please check out the following discussion: discuss.streamlit.io/t/adding-a-meta-description-to-your-streamlit-app/17847/14 I hope it helps! Cheers, Sven ✌️
@@FilippoGronchi Same answer. Not sure how I can help without any error message. I have now hosted several streamlit websites on render without any issues. You might want to contact the render support team to see the logs.
I ran into the same issue, then I went to settings>Build & Deploy>Root Directory and specified the root folder, which was in my case just the root folder ".", and now it is running successfully, BTW, I tried similar steps with railway .app and it went successfully as well.
@@ahmadkhaled4751 that is a very good suggestion, thanks a lot. I didn't what to fill into that field and left it empty. But I just tried entering a "." and did not work either :(
Sven, I've tried it all but cannot do it... tried to add the files using git, followed all the steps, but it shows a fatal error when I try to upload the files from GitHub, I've already generated the token for the authentication, but no success... trined to upload the files manually but the hidden files do not upload... really frustrating... Can you help?
I have a problem when i deploy the deep learning model in render as Falsk web application. i am getting the error OSError: Unable to open file (file signature not found) Kindly assist me. Jan 5 03:55:02 AM Traceback (most recent call last): Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app Jan 5 03:55:02 AM response = self.full_dispatch_request() Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request Jan 5 03:55:02 AM rv = self.handle_user_exception(e) Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request Jan 5 03:55:02 AM rv = self.dispatch_request() Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request Jan 5 03:55:02 AM return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) Jan 5 03:55:02 AM File "app.py", line 36, in predictRoute Jan 5 03:55:02 AM result = clApp.classifier.predictiondogcat() Jan 5 03:55:02 AM File "/opt/render/project/src/predict.py", line 27, in predictiondogcat Jan 5 03:55:02 AM model = load_model('Fibrosis_ResNet19_Model.h5') Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler Jan 5 03:55:02 AM raise e.with_traceback(filtered_tb) from None Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/h5py/_hl/files.py", line 533, in __init__ Jan 5 03:55:02 AM fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr) Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/h5py/_hl/files.py", line 226, in make_fid Jan 5 03:55:02 AM fid = h5f.open(name, flags, fapl=fapl) Jan 5 03:55:02 AM File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper Jan 5 03:55:02 AM File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper Jan 5 03:55:02 AM File "h5py/h5f.pyx", line 106, in h5py.h5f.open Jan 5 03:55:02 AM OSError: Unable to open file (file signature not found)
Do we not need to change the streamlit server port and address? E.g. python -m streamlit run app.py --server.port 8000 server.address 0.0.0.0 ? Thanks!
To the best of my knowledge, it's not possible to directly track the number of visitors to your API via Git. However, you might consider using the streamlit-analytics package to monitor usage for your Streamlit app deployed on Render. You can find it here: github.com/jrieke/streamlit-analytics. Please note that I haven't personally tested this package.
Hi Sven, can you please help us creating a tutorial to deploy an application web for free on render but uploading a dataframe and also using pyplot and streamlit? Will be very helpful Thank you
@@CodingIsFun yes, i have tried to deploy a dataframe in render without success. I followed all the steps but it seems like render cannot deploy dataframes or pyplot. when i deploy the dataframes and the pyplot graphics in my localhost everything works fine, but in render never deploy the app.
@@CodingIsFun I also experienced this. There are no errors on the logs. The log reflects "You can now view your Streamlit app in your browser." but somehow the deployment it still fails. Fixed it by removing all the codes related to matplotlib
@@graceestrada9822 I have tried to recreate the same issue. ISSUE: The logs do not show any error message, but the deployment was unsuccessful. SOLUTION: In my case, I have fixed it by using the same Python version in which I developed the app. You can specify the Python version as follows: render.com/docs/python-version snipboard.io/w8uGXy.jpg I hope it helps! Happy Deployment! 🎉
Hi, I have evrything set up on guithub (including requirements.txt) and i've deployed my streamit app on streamlit cloud and was working fine till date . But now it suddenly throws an error that says data is not downloading from yfinance module . Please give solution to this issue as i have to submit my project for current academic semester. 🙏
Hi, it was an wonderfull to see this video and I'm facing a small trouble in deploying my app. I am using Streamlit cloud community to deploy app. And also I am using pyrebase but it was not working . Need your help 😢 this my Project work so please help me
Nice video. One question, right after the "git remote add origin ... ", I entered "git push -u origin master" but it's giving me an error: "Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref..." Appreciate if anyone can help on this.
@@CodingIsFun Hello Brother , thank you so much for your help , i have done everything ,but when i try to deploy , it is stating that it cant access my mongodb database , can you please upload a video on deploying an app connected with mongodb , please
I’m here from the heroku tutorial. I have actually been following the steps to turn my excel spreadsheet into a web app. The web app is supposed to automatically change when changes are made on the excel file. If I deploy my web app to the internet, will it still change when any change is made to the excel file on my local machine? Do I have to do git push anytime I make a change to the excel file? If yes, can that be automated? I would really appreciate your response.
Thanks for your comment! Changes to your Excel file will not automatically update the web app on the server. If you deploy your web app to the internet, it will only update when changes are made to the Excel file on the server, not on your local machine. Alternatively, you may want to consider using Google Sheets, which can act as a cloud-based database and automatically update changes made to the data.
Thank you for this video ! Unfortunately, Render seems not to support the "streamlit extra" library🥲. RIP the Dataframe explorer UI ! Any way, BIG UP ! But beside this could, which could you advise for beginner in data analysis (something around 30/40$ max per year) ?
@@CodingIsFun oh, thank you for your answers !! Here is the error code that I get in the deployment process on Render : ERROR: Could not find a version that satisfies the requirement streamlit_extras==0.2.4 (from -r requirements.txt (line 5)) (from versions: 0.0.1) Notes : 1) I got the same for pandas at first, and i used the "
ImportError: cannot import name 'Literal' from 'typing' (/usr/local/lib/python3.7/typing.py) Traceback: File "/opt/render/project/src/.venv/lib/python3.7/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.__dict__) File "/opt/render/project/src/app.py", line 4, in from streamlit_lottie import st_lottie File "/opt/render/project/src/.venv/lib/python3.7/site-packages/streamlit_lottie/__init__.py", line 10, in from typing import Union, Optional, Literal help me solve this error
Thanks for watching. Literal class was added in Python 3.8. By default, Render uses the latest patch version of Python 3.7. That is why you are receiving an error. You can customize the Python version for your app in Render by setting the PYTHON_VERSION environment variable to a valid Python version, for example 3.8.2. Supported Python versions are those after 3.7.0: render.com/docs/python-version
*Happy Deployment!* 🚀
*LINKS:* ⤵
🌟 Create a digital CV: th-cam.com/video/BXAeMICmUSQ/w-d-xo.html
🌟 Download Git: git-scm.com/downloads
🌟 Render Website: render.com/
*GIT COMMANDS:* ⤵
git add .
git commit -m "Your Message"
git remote add origin github.com/[GitHubUserName]/[RepoName].git
git push -u origin master
I know you can't go through all the details. For a first-time programmer, I ran into a lot of challenges regarding cmd and some of the commands. I had to do additional research on how to solve some of these errors I faced. Overall, I learned a lot from you. I just want to say thank you for taking the time to teach us your skills.
PS: My website is just now being built in Render, very excited to see what it looks like.
Hi Arnoldt Visagie. Thanks for watching. Glad to hear that the tutorial was helpful! :)
Thank you very much for this video . I was struggling for 2 days to deploy my web app in the cloud and then I came across your video . My web app is successfully deployed. This video has been a tremendous help for me . I hope you keep making such videos . Love from India❤
Thanks for watching. Happy to hear that you found the video helpful and that you successfully deployed your app :)
Okay why does this channel has so less subscribers? I am not being paid by this man, but I seriously suggest everyone to take a look at all his videos.
Ah, you're making me blush! ♥ Thanks for the kind comment and happy to hear that you're enjoying the videos! 👍
@@CodingIsFun looking forward to a new video!
it was very helpful video. I came to learn deployment in render but you also taught me git. Thank you so much and lots of love from india.
Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!
Fantastic service and the ability to add custom domains to boot! Sweet!
Thanks for watching! Cheers, Sven ✌️
Thanks Sven! I created a nice digital CV through your guidance.
That's super cool! Good luck with your CV! 🍀🤞
Fantastic tutorial as always! Thank you!
Happy to hear that you enjoyed this one too! Thanks for watching! :)
such an awesome tutorial, thank you so much, very high quality of content and very useful information!!
Thanks for the positive feedback! Appreciate you taking the time to leave a comment. Cheers, Sven ✌️
Thank you so much sir for the valuable information sharing with us in such a neat and clean way. It helped me so much.
Glad I could help! Thanks for watching and for the kind words. Cheers, Sven ✌️
Great video👍What's the best way to deploy a streamlit app privately, giving access only to select users?
Thank you! One option would be to use the "streamlit authenticator package" as shown here: th-cam.com/video/eCbH2nPL9sU/w-d-xo.html
Happy Coding!
@@CodingIsFun Thank you so much for your quick reply. That's super helpful. Keep up the good work!
You're awesome. You detailed every detail of the issue.
Glad you liked it. Thanks for watching and taking the time to leave a comment! 👍
Really a good video, was fearing what to do? As i need to put deployed link in my resume. So thanks for it, i hope render does NOT cut free tire.
Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!
Your tutorial is fantastic, thank you for sharing!
Thanks for the positive feedback! Appreciate you taking the time to leave a comment. 👍
Thank you Sven for another amazing tutorial
Happy to hear that you enjoyed this one too! Thanks for the comments and support! 👍
Very clear and understable as usual :)
Glad to hear that! 👍
Thank you!! I been stuck for hours
Glad I could help! Cheers, Sven ✌️
Streamlit cloud deployments is now requiring full access to all your repos including private ones. I guess snowflake is training their models on all repos they can get access too without paying anything to the devs
Where do you recommend to deploy? Im new to this
😮
Buy hosting as one of investement to your journey learning.
Great tutorial. One question though, can I use a private repository instead of a public one to use Render?
Thank you for the positive feedback. Yes, I believe that should be possible: docs.render.com/github. Happy deployment! Cheers, Sven ✌️
Thank you Sven! I did my website and it is up and running. Do you have a video on how to change the description of the website? The one that shows when you google it "$domain$ is your first and best source for all of the information you're looking for. From general topics to more of what you would expect to find here, .... " Or how to add keywords that make the website appear when you search for its content? Thank you!
Thanks for tuning in! Currently, adding a meta description is not natively supported by Streamlit, at least from what I understand. You can read more about this in the following discussion: discuss.streamlit.io/t/adding-a-meta-description-to-your-streamlit-app/17847/21
Cheers, Sven ✌️
Very eloquently explained, thank you Sven. If I may ask, how can I deploy a paid (subscription-based) web app on my own website? I have a web hosting plan on Hostinger and an active domain.
Thanks for watching. Glad you liked it. As far I can see, that would be only possible if you have a virutal private server on Hostinger: support.hostinger.com/en/articles/3648030-is-python-supported-at-hostinger
Hi Sven, thanks for making this tutorial. I realize that your demo website does not fall asleep. Are you using the paid version of Render? Or is there a "ping" service like the Kaffeine of Heroku?
Thanks for watching. For the demo CV I am using the free trier. Most likely, due to my tutorial on it, some people might click on the website and therefore "keeping it alive".
You're awesome
Thank you! 👍
Dear Sven. Excellent video!
For a Streamlit dashboard app that reads data from Excel file, how would we re-deploy on Render if there are changes or additions to Excel file?
I know we could upload updated Excel file to GitHub. Will the changes be reflected on deployed web dashboard? Thank you
Thank you for watching. If there are any changes to the Excel file, you will need to re-upload it to your GitHub repository. In most cases, this isn't very practical. A better approach would be to use a database or, for smaller-scale projects, a Google Sheets document, as Google Sheets can be accessed via API. If you're interested in the Google Sheets option, check out my latest videos - I have demonstrated there how to connect Streamlit with Google Sheets. I hope this helps! Happy coding! :)
Thank you for the clear explanation. Can you please help us to know if we can deploy our machine learning applications through render or not?
That should be possible.
Wow, that is really cool!
Glad to hear you liked it! Thank you for commenting and watching.
Thank you, Sven for uploading this great tutorial. Fantastic explanation as always on every videos.
I'd followed along the tutorial, Deploy live was successful however got an error while clicking on the link "No such file or directory: '/opt/render/project/src/assets/CV.pdf'. Any help would be greatly appreciated. Thanks again for sharing these contents.
Thank you for the kind words.
Regarding your issue, please ensure to use relative filepaths.
Example:
✅ DO:
from pathlib import Path
current_dir = Path(__file__).parent if "__file__" in locals() else Path.cwd()
CV = current_dir / "assets" / "CV.pdf"
⛔ DO NOT:
CV = r"C:/UserName/project/src/assets/CV.pdf"
@@CodingIsFun Thanks alot for your prompt response. Feels great to be a part of this channel.
Thanks for your effort. What advantages I got when I use other hosting than streamlit community cloud ?
Thanks for watching. I explained it in the intro
Fantastic 😍
Thanks 🤗
Nice job 👍
Thank you!
Hi Sven, thank you for this incredible tutorial
I am trying to deploy a multi-webpage app
However, i have waited like 20min and i only see the first page (homepage), i have two pages more , one with my projects and contact page
Do we need to do something different in the process to see all pages?
Thanks
Thanks for watching.
I took the time and tested it out for you. I followed the exact steps and it works: multipage-example.onrender.com/
I have used this example: github.com/Sven-Bo/streamlit-multipage-app-example
@@CodingIsFun Thank yo so much for your prompt response! Incredible channel.
@@CodingIsFun Hi Sven, i have a question. How can i add in the second page ( portfolio) a dataframe and also plotly graphics? I tried but i have an error: "FileNotFoundError: [Errno 2] No such file or directory: " i have the file saved in the folder but it's not working :( . Thank you
@@InteligenciadeNegocios Hard to tell from a distance. Sorry that I cannot help
Hello, Sven . Thank you so much for your great work.
Can you advise us a good hosting service for streamlit app (not free), i mean to have our own domain. I hear about Heroku and hostinger, but i would like to have your opinion.
Thank you for tuning in! Most premium hosting services, including Heroku and Render, which I've personally tested, enable you to link your custom domain to their DNS. Wishing you smooth and successful deployments!
@@CodingIsFun thank you for the answer !
It's not directly related to the deployment, but after you have your web app online how can you integrate it to an existing site?
For example, on your domain pythonandvba (running Wordpress) you have also seamlessly embedded mytoolbelt.
Can you make a video explaining how to achieve this? Thank youuu! 🙏
Thanks for watching. I'm not entirely sure I understand your request, but if you'd like to set up a custom domain on Render, here's a tutorial: render.com/docs/custom-domains. In a nutshell, you can purchase a domain, for example, from namecheap.com. Once you have the domain, you can point your Render app to it. I hope that helps!
Amazing! Can you please create a tutorial for deploying to AWS or AZURE?
Thank you for watching the video & your suggestion.
Creator I'll take off the hat 🌹🌹
Glad you liked it. Thanks for watching.
Very helpful. god bless you!
Thank you! :)
This video very help me .. awesome
Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video! 😃
Thank you. Very useful video. How do i deploy it to my custom domain name
Thanks for watching. On render you can add custom domains as follows: render.com/docs/custom-domains
I hope it helps!
Thanks a lot!
You're very welcome! Thank you for watching and for the comment!
Thanks for this great tutorial as well.
I unfortunately face problems with Render for the streamlit_extras library (tried with underscore and hyphen as well). any idea on that? Pandas 1.5.3 was also a problem.
Mar 29 08:18:12 AM ERROR: Could not find a version that satisfies the requirement streamlit-extras==0.2.6 (from -r requirements.txt (line 6)) (from versions: 0.0.1)
Mar 29 08:18:12 AM ERROR: No matching distribution found for streamlit-extras==0.2.6 (from -r requirements.txt (line 6))
Even Heroku is not free of charge (btw: i understand that products cost money...), is it more up to date in terms of libraries? Or is there any alternative that is straightforward?
Thanks a lot!
Thanks for watching. You could try to modify your requirements.txt file as follows:
streamlit_extras
hey thanks for the video, do u have the github repo for this? and also can i double check is a render.yaml file also required here?
Thanks for watching. As mentioned in the video, here is the Streamlit project: github.com/Sven-Bo/digital-resume-template-streamlit
Thanks a lot for this great tutorial. I am having an issue with PDF. My streamlit app should convert a DOCX file to PDF by docx2pdf command, but Render couldn't run it because it's on Linux system. I am getting an NotImplementedError: docx2pdf is not implemented for linux as it requires Microsoft Word to be installed. I am looking for library to replace doxc2pdf. Thank you for your help.
Thank you for watching the video and for your question. Unfortunately, I do not know how to implement that right off the bat. I would also need to search the internet for a solution. Sorry that I cannot help!
love u bhai
😍
Hi Sven. Thanks for this tutorial.
I’ve noticed that my deployed streamlit app on render takes an awfully long period of time to load. Most times, I refresh browser like 3 to 4 times before I see see the app. Is there a way of speeding the loading process?
Thanks for watching. This is mention at the 7:25 min mark. Hope that helps!
Thank you so much!
My pleasure! Appreciate you taking the time to watch and leave a comment.
oh i was expecting you to add the .streamlit folder (for secrets and stuff) before the normal start command, did it happen? or am i missing something?
Thanks for watching. I added that folder already to my GitHub repo before deployment. Cheers, Sven ✌️
@@CodingIsFun hey hi, thanks for prompt reply.
I understand that but I'm asserting secrets.toml won't be pushed, I was wandering how to add them to render,
but I read they secrets can be loaded from os.detenv and they can be set in the render settings.
@@picklenickil The secrets.toml is only needed when deploying to the Streamlit Community Cloud. On Render (or any hosting provider) you can use / set environment variables, that can be then used inside your Streamlit app
God bless you!
Thank you! 🙏
Thank you very much
My pleasure. Thanks for watching. Happy Deployment! :)
Thank you, Sven, for uploading this great tutorial. I, however, got this error: ERROR:
No matching distribution found for streamlit==1.25.0 (from -r requirements.txt (line 3)).
how do I resolve it, please?
Thanks for watching. Edit the requirements.txt file: Replace streamlit==1.25.0 with streamlit
@@CodingIsFunI’m having the exact same problem but with pandas instead of streamlit, would that also fix the issue?
@@Akhimed same fix
thanks Sven. it worked. however, I got this error on the webpage after successfully deploying on render:
ImportError: cannot import name 'Literal' from 'typing' (/usr/local/lib/python3.7/typing.py)
any suggestions on how to fix this?
Thanks for the awesome video! I deployed the website, and it works well on laptop. The problem is, it's not working on Mobile!! I only see white screen on the screen.. Anyone has a same problem?
Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.
I already signed up on Render, but it require credit card to continue. And I dont have free plan option. I'm a bit confused here. Or is there any limitations in some country? Any clue, please?
That's strange. You might want to contact the render support team
I'm facing the same problem. Have you found any solution?
amazing
Thank you!
Great 👍
Thank you! Cheers!
after deployment this error will occurring cannot import name 'Literal' from 'typing' (/usr/local/lib/python3.7/typing.py)
how can i solve this error
Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.
Thanks!
My pleasure! Appreciate you taking the time to watch and leave a comment.
very helpful
Glad it helped! Thanks for watching! 👍
your tutorials are very helpful
i got a problem
firstly i deployed an app it is failed because of spelling mistake in initial commit
and next i corrected and started to deploy every step you said
but failed again with this reason "Newer logs may be unavailable because a recent deploy failed. View recent events."
how do i fix this please
Thanks for watching. Hard to tell from a distance. Sorry that I cannot help
@@CodingIsFun thank you for responding
Is there a way of adding meta description to streamlit apps??
Thanks for watching.
Please check out the following discussion: discuss.streamlit.io/t/adding-a-meta-description-to-your-streamlit-app/17847/14
I hope it helps! Cheers, Sven ✌️
Great videos ! This does not work for me :(. The logs are ok but a get a message 'Failed'
Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.
same here...the problem is that I cannot see the issues... log file is not showing anything! don't know how to fix it
@@FilippoGronchi Same answer. Not sure how I can help without any error message. I have now hosted several streamlit websites on render without any issues. You might want to contact the render support team to see the logs.
I ran into the same issue, then I went to settings>Build & Deploy>Root Directory and specified the root folder, which was in my case just the root folder ".", and now it is running successfully, BTW, I tried similar steps with railway .app and it went successfully as well.
@@ahmadkhaled4751 that is a very good suggestion, thanks a lot. I didn't what to fill into that field and left it empty. But I just tried entering a "." and did not work either :(
Sven, I've tried it all but cannot do it... tried to add the files using git, followed all the steps, but it shows a fatal error when I try to upload the files from GitHub, I've already generated the token for the authentication, but no success... trined to upload the files manually but the hidden files do not upload... really frustrating... Can you help?
Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.
@@CodingIsFun but do you know a way to load the hidden files up to GitHub on a Mac? This would solve the issue.
@@Vlapstone Sorry, but I do not use Mac
@@CodingIsFun no worries mate! I’ll try and do it on a windows pc then. Thanks a lot.
I have a problem when i deploy the deep learning model in render as Falsk web application.
i am getting the error OSError: Unable to open file (file signature not found)
Kindly assist me.
Jan 5 03:55:02 AM Traceback (most recent call last):
Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app
Jan 5 03:55:02 AM response = self.full_dispatch_request()
Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request
Jan 5 03:55:02 AM rv = self.handle_user_exception(e)
Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request
Jan 5 03:55:02 AM rv = self.dispatch_request()
Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request
Jan 5 03:55:02 AM return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
Jan 5 03:55:02 AM File "app.py", line 36, in predictRoute
Jan 5 03:55:02 AM result = clApp.classifier.predictiondogcat()
Jan 5 03:55:02 AM File "/opt/render/project/src/predict.py", line 27, in predictiondogcat
Jan 5 03:55:02 AM model = load_model('Fibrosis_ResNet19_Model.h5')
Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
Jan 5 03:55:02 AM raise e.with_traceback(filtered_tb) from None
Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/h5py/_hl/files.py", line 533, in __init__
Jan 5 03:55:02 AM fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/h5py/_hl/files.py", line 226, in make_fid
Jan 5 03:55:02 AM fid = h5f.open(name, flags, fapl=fapl)
Jan 5 03:55:02 AM File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
Jan 5 03:55:02 AM File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
Jan 5 03:55:02 AM File "h5py/h5f.pyx", line 106, in h5py.h5f.open
Jan 5 03:55:02 AM OSError: Unable to open file (file signature not found)
Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.
Is it only for static websites? I have created an ML project but it's just loading and I can't see anything. What might be the reason behind this?
Thanks for watching. No, it is not only for static websites. Regarding your error, please check the logs as shown in the video. Cheers, Sven ✌️
Do we not need to change the streamlit server port and address?
E.g.
python -m streamlit run app.py --server.port 8000 server.address 0.0.0.0
?
Thanks!
Thanks for watching. For me it worked without adjusting the server port/address
I'm getting this message from Render when I deploy: WARNING: You are using pip version 20.1.1; however, version 23.1.2 is available
Thanks for watching. Running this command in the shell should fix the "issue"/warning: pip install --upgrade pip
Do you know how to use the St secret feature in render
You want to google "Environment Variables Render"
is there a way you can see how many people visited your API from GIT or Render?
To the best of my knowledge, it's not possible to directly track the number of visitors to your API via Git. However, you might consider using the streamlit-analytics package to monitor usage for your Streamlit app deployed on Render. You can find it here: github.com/jrieke/streamlit-analytics. Please note that I haven't personally tested this package.
@@CodingIsFun nice. Will try this. Thanks
Hi, how to add a custom domain name to my sharing streamlit app?
Thanks for watching. Have a look at the following documentation: render.com/docs/custom-domains
@@CodingIsFun ok thank you from morocco
thanks from heartt
Appreciate the love! Thanks for watching! Cheers, Sven ✌️
How do I add the streamlit secrets file to the app on render? Usually I would not have it on my GitHub since I will just add it to gitignore.
Instead of the streamlit secrets file, you would use environment variables and input those into Render
Hi Sven, can you please help us creating a tutorial to deploy an application web for free on render but uploading a dataframe and also using pyplot and streamlit? Will be very helpful
Thank you
Thanks for watching. Can you please explain why the deployment process differs from the one I have shown in the video? Thanks!
@@CodingIsFun yes, i have tried to deploy a dataframe in render without success. I followed all the steps but it seems like render cannot deploy dataframes or pyplot. when i deploy the dataframes and the pyplot graphics in my localhost everything works fine, but in render never deploy the app.
@@InteligenciadeNegocios Please check the logs for errors
@@CodingIsFun I also experienced this. There are no errors on the logs. The log reflects "You can now view your Streamlit app in your browser." but somehow the deployment it still fails.
Fixed it by removing all the codes related to matplotlib
@@graceestrada9822 I have tried to recreate the same issue.
ISSUE:
The logs do not show any error message, but the deployment was unsuccessful.
SOLUTION:
In my case, I have fixed it by using the same Python version in which I developed the app.
You can specify the Python version as follows:
render.com/docs/python-version
snipboard.io/w8uGXy.jpg
I hope it helps! Happy Deployment! 🎉
hi bro great video, but I am getting error bad gateway 502 please provide me a solution
Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.
Hi,
I have evrything set up on guithub (including requirements.txt) and i've deployed my streamit app on streamlit cloud and was working fine till date .
But now it suddenly throws an error that says data is not downloading from yfinance module .
Please give solution to this issue as i have to submit my project for current academic semester. 🙏
Hi. Thanks for watching. Hard to tell from a distance why you are facing an issue.
@CodingIsFun Thank you for the reply,
I cleared my entire repo re-did the process , it's working fine now😂.
BTW your videos are very informative 😁
Hi, it was an wonderfull to see this video and I'm facing a small trouble in deploying my app. I am using Streamlit cloud community to deploy app. And also I am using pyrebase but it was not working . Need your help 😢 this my Project work so please help me
Thanks for watching and for your kind words. However, with that bit of information, I cannot help you. Cheers, Sven ✌️
@@CodingIsFun Thanky you for reply, But I need your help. Can I get your mail ID I will send you Appy. Through that you can help me..please
@@CodingIsFun Can I have your Email ID So that I can Attach My apps You so I can find solution In better way So please Help me 😢
Nice video. One question, right after the "git remote add origin ... ", I entered "git push -u origin master" but it's giving me an error: "Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref..." Appreciate if anyone can help on this.
Thanks for watching. Please try out the following solution: stackoverflow.com/a/42198976
@@CodingIsFun Thanks! I think it's because when I created the remote repo in Github, I created a readme file.
5:02 it says fatal unable to detect email address
Thanks for watching. Try the following:
git config --global user.name "Your Name"
git config --global user.email "youremail@example.com"
@@CodingIsFun thanks it worked now my website is up and running also do you know any free website that host your website 24/7 without sleeping
seems deploy a static Python website? How can I deploy docker to render?
Check out the render docs
4:15 i had to restart my computer after installing Git. Otherwise the command git init doesnt work
Thanks for watching the video and the additional hint! 👍
Show!!!
What?
Can I have some help? When I start to deploy it, after 10 or so minuets it keeps failing… can u help?
Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.
Man you're beautiful. Awesome content
Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!
Hello dude , I have a problem with this , when i try to upload i have a large file which 122mb how can i push it inside my repo
You could try Git LFS (Large File Storage). Cheers, Sven!
@@CodingIsFun Hello Brother , thank you so much for your help , i have done everything ,but when i try to deploy , it is stating that it cant access my mongodb database , can you please upload a video on deploying an app connected with mongodb , please
how do i get the .streamlit file?
Please watch the tutorial I mentioned in the video
not free add card :(
Nope, it is free: render.com/docs/free
I’m here from the heroku tutorial.
I have actually been following the steps to turn my excel spreadsheet into a web app.
The web app is supposed to automatically change when changes are made on the excel file.
If I deploy my web app to the internet, will it still change when any change is made to the excel file on my local machine?
Do I have to do git push anytime I make a change to the excel file? If yes, can that be automated?
I would really appreciate your response.
Thanks for your comment! Changes to your Excel file will not automatically update the web app on the server. If you deploy your web app to the internet, it will only update when changes are made to the Excel file on the server, not on your local machine. Alternatively, you may want to consider using Google Sheets, which can act as a cloud-based database and automatically update changes made to the data.
@@CodingIsFun I was able to achieve it with google sheets. Thank you
Great! I love it! 🍌🌴♥
Thank you, Patricio! :)
bro now render asked for add card.
bro what should I do about it? They still have a free tier
@@CodingIsFun as i have made account on it, and clicked on web service it asked me to add card.
Thank you for this video !
Unfortunately, Render seems not to support the "streamlit extra" library🥲.
RIP the Dataframe explorer UI !
Any way, BIG UP !
But beside this could, which could you advise for beginner in data analysis (something around 30/40$ max per year) ?
Hmm, that is strange. Render should support 'streamlit-extras'. Ensure to include it in the requirements.txt file.
@@CodingIsFun Ok i would maybe write streamlit_extras
@@ordaflash I do not know what kind of error message you are facing, but it should be "streamlit-extras" (not with an underscore)
@@CodingIsFun oh, thank you for your answers !!
Here is the error code that I get in the deployment process on Render :
ERROR: Could not find a version that satisfies the requirement streamlit_extras==0.2.4 (from -r requirements.txt (line 5)) (from versions: 0.0.1)
Notes :
1) I got the same for pandas at first, and i used the "
@@ordaflash keep the underscore in your Python script, but use streamlit-extras in your requirements.txt
ImportError: cannot import name 'Literal' from 'typing' (/usr/local/lib/python3.7/typing.py)
Traceback:
File "/opt/render/project/src/.venv/lib/python3.7/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.__dict__)
File "/opt/render/project/src/app.py", line 4, in
from streamlit_lottie import st_lottie
File "/opt/render/project/src/.venv/lib/python3.7/site-packages/streamlit_lottie/__init__.py", line 10, in
from typing import Union, Optional, Literal
help me solve this error
Thanks for watching. Literal class was added in Python 3.8. By default, Render uses the latest patch version of Python 3.7. That is why you are receiving an error.
You can customize the Python version for your app in Render by setting the PYTHON_VERSION environment variable to a valid Python version, for example 3.8.2. Supported Python versions are those after 3.7.0: render.com/docs/python-version
@@CodingIsFun Thank you so much