FileNotFoundError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).
Traceback:
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 556, in _run_script
exec(code, module.__dict__)File "/app/portfolio/Portfolio/1_🏠Homepage.py", line 10, in <module>
profile_pic =Image.open("/Portfolio/assets/prt.jpg")File "/home/appuser/venv/lib/python3.9/site-packages/PIL/Image.py", line 3092, in open
fp = builtins.open(filename, "rb")
hello, I have the same error here I am trying to deploy the app on the cloud its says
File "/app/diseases-prediction/main.py", line 15, in <module>
diabetes_model = pickle.load(open('D:\Work\MachineLearning\DeployingMachineLearningmodel\diabetes_model.sav','rb'))
and file exists in the specific path why was this error encountered ? while on localhost its running
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Work\\MachineLearning\\DeployingMachineLearningmodel\\diabetes_model.sav'
how can I solve this problem?
FileNotFoundError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).
> File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
> exec(code, module.__dict__)File "/mount/src/stock-prediction/main.py", line 4, in <module>
> import yfinance as yfFile "/home/adminuser/venv/lib/python3.11/site-packages/yfinance/__init__.py", line 23, in <module>
> from .ticker import TickerFile "/home/adminuser/venv/lib/python3.11/site-packages/yfinance/ticker.py", line 29, in <module>
> from .base import TickerBaseFile "/home/adminuser/venv/lib/python3.11/site-packages/yfinance/base.py", line 38, in <module>
> from . import utilsFile "/home/adminuser/venv/lib/python3.11/site-packages/yfinance/utils.py", line 991, in <module>
> class _KV(_peewee.Model):File "/home/adminuser/venv/lib/python3.11/site-packages/yfinance/utils.py", line 995, in _KV
> class Meta:File "/home/adminuser/venv/lib/python3.11/site-packages/yfinance/utils.py", line 996, in Meta
> database = _DBManager.get_database()
> ^^^^^^^^^^^^^^^^^^^^^^^^^File "/home/adminuser/venv/lib/python3.11/site-packages/yfinance/utils.py", line 953, in get_database
> cls._initialise()File "/home/adminuser/venv/lib/python3.11/site-packages/yfinance/utils.py", line 972, in _initialise
> _os.mkdir(cls._cache_dir)
> ```
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.