FileNotFoundError: This app has encountered an error. The original error message is redacted to prevent data leaks

I tried to deploy my application on both Streamlit and Render but both the websites are giving me the same errors. Please help as this is the project I am including on my resume Click HERE to view the github link of the project
Or click this if it doesn’t work: GitHub - maeuresh/netflix-userbase-dashboard-streamlit


File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 552, in _run_script
    exec(code, module.__dict__)
File "/mount/src/netflix-userbase-dashboard-streamlit/", line 16, in <module>
    df = get_data_from_excel()
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/", line 209, in wrapper
    return cached_func(*args, **kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/", line 238, in __call__
    return self._get_or_create_cached_value(args, kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/", line 263, in _get_or_create_cached_value
    return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/", line 317, in _handle_cache_miss
    computed_value = self._info.func(*func_args, **func_kwargs)
File "/mount/src/netflix-userbase-dashboard-streamlit/", line 13, in get_data_from_excel
    df = pd.read_csv("F:/Mayuresh/Projects/Netflix Userbase/Netflix Userbase.csv")
File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/util/", line 311, in wrapper
    return func(*args, **kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/io/parsers/", line 586, in read_csv
    return _read(filepath_or_buffer, kwds)
File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/io/parsers/", line 482, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/io/parsers/", line 811, in __init__
    self._engine = self._make_engine(self.engine)
File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/io/parsers/", line 1040, in _make_engine
    return mapping[engine](self.f, **self.options)  # type: ignore[call-arg]
File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/io/parsers/", line 51, in __init__
    self._open_handles(src, kwds)
File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/io/parsers/", line 222, in _open_handles
    self.handles = get_handle(
File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/io/", line 702, in get_handle
    handle = open(

You cannot read from your local clients hard drive as soon as the streamlit app runs on any hosted environment:

df = pd.read_csv("F:/Mayuresh/Projects/Netflix Userbase/Netflix Userbase.csv")

Use this instead:

df = pd.read_csv("Netflix Userbase.csv")

Sorry for the confusion, but won’t the “read_csv” need the whole path for picking the file from the destination? i mean how does adding just (pd.read_csv(“Netflix Userbase.csv”)) work? It won’t know where to find the “Netflix Userbase.csv” from.

the relative path works too.

Thank you very much!! It worked!!! :+1:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.