Stuck in "your app is in the oven"

Summary

Hi everyone, I’m trying to deploy my App for the first time and it’s been stuck in "your app is in the oven " for hours.
Below you can see the information on β€œManage my app” :

[10:54:48] 🐍 Python dependencies were installed from /app/fraud_detection_ml/src/App/requirements.txt using pip.
``
[10:54:48] πŸ“¦ Processed dependencies!

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.

[10:54:51] πŸ”„ Updated app!

What should I expect after the β€œUpdated app!” message? How long should I wait?

Thanks in advance!

Hello @LidiaMiranda, and welcome to our forums! :hugs:

I may be missing information from the log trace, yet I believe in your case it would be worth trying to delete your app and recreate it.

If that doesn’t solve the issue, could you please provide us with a full log trace?

Thanks,
Charly

Hi Charly,

Thanks for your time: Below you can see the full log trace:

[     UTC     ] Logs for fraud-detection-ml2.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[18:54:27] πŸ–₯ Provisioning machine...
[18:54:32] πŸŽ› Preparing system...
[18:54:39] β›“ Spinning up manager process...
[18:54:44] 🎈 Inflating balloons...
[18:54:50] πŸ“– Unpacking Comic Sans RAR files...
[18:54:29] πŸš€ Starting up repository: 'fraud-detection-ml', branch: 'main', main module: 'App/Home.py'
[18:54:29] πŸ™ Cloning repository...
[18:54:32] πŸ™ Cloning into '/app/fraud-detection-ml'...
[18:54:32] πŸ™ Cloned repository!
[18:54:32] πŸ™ Pulling code changes from Github...
[18:54:32] πŸ“¦ Processing dependencies...

──────────────────────────────────────── pip ───────────────────────────────────────────

Collecting seaborn
  Downloading seaborn-0.12.2-py3-none-any.whl (293 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 293.3/293.3 KB 9.7 MB/s eta 0:00:00[2023-07-23 18:54:33.088160] 
Collecting numpy
  Downloading numpy-1.25.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.7/17.7 MB 105.0 MB/s eta 0:00:00[2023-07-23 18:54:33.842874] 
Collecting pandas
  Downloading pandas-2.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.4/12.4 MB 214.9 MB/s eta 0:00:00
Collecting streamlit
  Downloading streamlit-1.25.0-py2.py3-none-any.whl (8.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.1/8.1 MB 171.0 MB/s eta 0:00:00[2023-07-23 18:54:34.382400] 
Collecting plotly.express
  Downloading plotly_express-0.4.1-py2.py3-none-any.whl (2.9 kB)
Collecting scikit-learn
  Downloading scikit_learn-1.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 162.7 MB/s eta 0:00:00[2023-07-23 18:54:34.681259] 
Collecting imblearn
  Downloading imblearn-0.0-py2.py3-none-any.whl (1.9 kB)
Collecting matplotlib!=3.6.1,>=3.1
  Downloading matplotlib-3.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.6/11.6 MB 221.9 MB/s eta 0:00:00[2023-07-23 18:54:35.096430] 
Collecting pytz>=2020.1
  Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.3/502.3 KB 264.5 MB/s eta 0:00:00[2023-07-23 18:54:35.314332] 
Collecting python-dateutil>=2.8.2
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 KB 259.4 MB/s eta 0:00:00[2023-07-23 18:54:35.359314] 
Collecting tzdata>=2022.1
  Downloading tzdata-2023.3-py2.py3-none-any.whl (341 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.8/341.8 KB 265.1 MB/s eta 0:00:00[2023-07-23 18:54:35.409161] 
Collecting altair<6,>=4.0
  Downloading altair-5.0.1-py3-none-any.whl (471 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 471.5/471.5 KB 268.7 MB/s eta 0:00:00[2023-07-23 18:54:35.497061] 
Collecting importlib-metadata<7,>=1.4
  Downloading importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
Collecting pillow<10,>=7.1.0
  Downloading Pillow-9.5.0-cp39-cp39-manylinux_2_28_x86_64.whl (3.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 177.0 MB/s eta 0:00:00[2023-07-23 18:54:36.043949] 
Collecting rich<14,>=10.14.0
  Downloading rich-13.4.2-py3-none-any.whl (239 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 239.4/239.4 KB 258.9 MB/s eta 0:00:00[2023-07-23 18:54:36.177001] 
Collecting watchdog>=2.1.5
  Downloading watchdog-3.0.0-py3-none-manylinux2014_x86_64.whl (82 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.1/82.1 KB 220.7 MB/s eta 0:00:00[2023-07-23 18:54:36.294002] 
Collecting validators<1,>=0.2
  Downloading validators-0.20.0.tar.gz (30 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting typing-extensions<5,>=4.1.0
  Downloading typing_extensions-4.7.1-py3-none-any.whl (33 kB)
Collecting blinker<2,>=1.0.0
  Downloading blinker-1.6.2-py3-none-any.whl (13 kB)
Collecting toml<2,>=0.10.1
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting pympler<2,>=0.9
  Downloading Pympler-1.0.1-py3-none-any.whl (164 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 164.8/164.8 KB 256.6 MB/s eta 0:00:00[2023-07-23 18:54:36.797591] 
Collecting tenacity<9,>=8.1.0
  Downloading tenacity-8.2.2-py3-none-any.whl (24 kB)
Collecting pyarrow>=6.0
  Downloading pyarrow-12.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (39.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 39.0/39.0 MB 188.2 MB/s eta 0:00:00[2023-07-23 18:54:37.204256] 
Collecting protobuf<5,>=3.20
  Downloading protobuf-4.23.4-cp37-abi3-manylinux2014_x86_64.whl (304 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 304.5/304.5 KB 262.2 MB/s eta 0:00:00[2023-07-23 18:54:37.623716] 
Collecting requests<3,>=2.18
  Downloading requests-2.31.0-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 KB 196.4 MB/s eta 0:00:00
Collecting pydeck<1,>=0.8
  Downloading pydeck-0.8.0-py2.py3-none-any.whl (4.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB 253.5 MB/s eta 0:00:00[2023-07-23 18:54:37.786527] 
Collecting cachetools<6,>=4.0
  Downloading cachetools-5.3.1-py3-none-any.whl (9.3 kB)
Collecting packaging<24,>=16.8
  Downloading packaging-23.1-py3-none-any.whl (48 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.9/48.9 KB 204.2 MB/s eta 0:00:00[2023-07-23 18:54:37.886024] 
Collecting tzlocal<5,>=1.1
  Downloading tzlocal-4.3.1-py3-none-any.whl (20 kB)
Collecting tornado<7,>=6.0.3
  Downloading tornado-6.3.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (426 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 426.9/426.9 KB 249.2 MB/s eta 0:00:00[2023-07-23 18:54:38.034044] 
Collecting gitpython!=3.1.19,<4,>=3.0.7
  Downloading GitPython-3.1.32-py3-none-any.whl (188 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 188.5/188.5 KB 244.7 MB/s eta 0:00:00[2023-07-23 18:54:38.108677] 
Collecting click<9,>=7.0
  Downloading click-8.1.6-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 KB 231.7 MB/s eta 0:00:00[2023-07-23 18:54:38.160406] 
Collecting statsmodels>=0.9.0
  Downloading statsmodels-0.14.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 222.0 MB/s eta 0:00:00[2023-07-23 18:54:38.330586] 
Collecting scipy>=0.18
  Downloading scipy-1.11.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (36.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 36.5/36.5 MB 184.1 MB/s eta 0:00:00
Collecting patsy>=0.5
  Downloading patsy-0.5.3-py2.py3-none-any.whl (233 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 233.8/233.8 KB 257.1 MB/s eta 0:00:00
Collecting plotly>=4.1.0
  Downloading plotly-5.15.0-py2.py3-none-any.whl (15.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.5/15.5 MB 219.3 MB/s eta 0:00:00[2023-07-23 18:54:39.083541] 
Collecting threadpoolctl>=2.0.0
  Downloading threadpoolctl-3.2.0-py3-none-any.whl (15 kB)
Collecting joblib>=1.1.1
  Downloading joblib-1.3.1-py3-none-any.whl (301 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 302.0/302.0 KB 259.1 MB/s eta 0:00:00[2023-07-23 18:54:39.313638] 
Collecting imbalanced-learn
  Downloading imbalanced_learn-0.11.0-py3-none-any.whl (235 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 235.6/235.6 KB 261.0 MB/s eta 0:00:00[2023-07-23 18:54:39.367335] 
Collecting jsonschema>=3.0
  Downloading jsonschema-4.18.4-py3-none-any.whl (80 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.0/81.0 KB 217.4 MB/s eta 0:00:00[2023-07-23 18:54:39.475889] 
Collecting toolz
  Downloading toolz-0.12.0-py3-none-any.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 KB 168.5 MB/s eta 0:00:00[2023-07-23 18:54:39.509664] 
Collecting jinja2
  Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 KB 225.4 MB/s eta 0:00:00[2023-07-23 18:54:39.575747] 
Collecting gitdb<5,>=4.0.1
  Downloading gitdb-4.0.10-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 KB 197.0 MB/s eta 0:00:00[2023-07-23 18:54:39.622422] 
Collecting zipp>=0.5
  Downloading zipp-3.16.2-py3-none-any.whl (7.2 kB)
Collecting cycler>=0.10
  Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting pyparsing<3.1,>=2.3.1
  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 KB 218.8 MB/s eta 0:00:00[2023-07-23 18:54:39.814498] 
Collecting importlib-resources>=3.2.0
  Downloading importlib_resources-6.0.0-py3-none-any.whl (31 kB)
Collecting contourpy>=1.0.1
  Downloading contourpy-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 300.4/300.4 KB 263.5 MB/s eta 0:00:00[2023-07-23 18:54:40.021902] 
Collecting fonttools>=4.22.0
  Downloading fonttools-4.41.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 255.6 MB/s eta 0:00:00[2023-07-23 18:54:40.240304] 
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.4.4-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 201.8 MB/s eta 0:00:00[2023-07-23 18:54:40.388737] 
Collecting six
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting charset-normalizer<4,>=2
  Downloading charset_normalizer-3.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (202 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 202.1/202.1 KB 249.2 MB/s eta 0:00:00[2023-07-23 18:54:40.736715] 
Collecting urllib3<3,>=1.21.1
  Downloading urllib3-2.0.4-py3-none-any.whl (123 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.9/123.9 KB 250.1 MB/s eta 0:00:00[2023-07-23 18:54:40.814913] 
Collecting certifi>=2017.4.17
  Downloading certifi-2023.7.22-py3-none-any.whl (158 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.3/158.3 KB 250.0 MB/s eta 0:00:00[2023-07-23 18:54:40.863499] 
Collecting idna<4,>=2.5
  Downloading idna-3.4-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 KB 209.0 MB/s eta 0:00:00[2023-07-23 18:54:40.901962] 
Collecting markdown-it-py>=2.2.0
  Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.5/87.5 KB 230.2 MB/s eta 0:00:00[2023-07-23 18:54:40.959126] 
Collecting pygments<3.0.0,>=2.13.0
  Downloading Pygments-2.15.1-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 274.9 MB/s eta 0:00:00[2023-07-23 18:54:41.020805] 
Collecting pytz-deprecation-shim
  Downloading pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
Collecting decorator>=3.4.0
  Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting smmap<6,>=3.0.1
  Downloading smmap-5.0.0-py3-none-any.whl (24 kB)
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting referencing>=0.28.4
  Downloading referencing-0.30.0-py3-none-any.whl (25 kB)
Collecting attrs>=22.2.0
  Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 KB 194.4 MB/s eta 0:00:00[2023-07-23 18:54:41.750514] 
Collecting jsonschema-specifications>=2023.03.6
  Downloading jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB)
Collecting rpds-py>=0.7.1
  Downloading rpds_py-0.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 277.3 MB/s eta 0:00:00[2023-07-23 18:54:42.026367] 
Collecting mdurl~=0.1
  Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Building wheels for collected packages: validators
  Building wheel for validators (setup.py): started
  Building wheel for validators (setup.py): finished with status 'done'
  Created wheel for validators: filename=validators-0.20.0-py3-none-any.whl size=19579 sha256=86dd0e0baee1ebac0003501922a130b27eba59db21118fc748167ce64f9a94bb
  Stored in directory: /tmp/pip-ephem-wheel-cache-7cssxu6b/wheels/2d/f0/a8/1094fca7a7e5d0d12ff56e0c64675d72aa5cc81a5fc200e849
Successfully built validators
Installing collected packages: pytz, zipp, watchdog, urllib3, tzdata, typing-extensions, tornado, toolz, toml, threadpoolctl, tenacity, smmap, six, rpds-py, pyparsing, pympler, pygments, protobuf, pillow, packaging, numpy, mdurl, MarkupSafe, kiwisolver, joblib, idna, fonttools, decorator, cycler, click, charset-normalizer, certifi, cachetools, blinker, attrs, validators, scipy, requests, referencing, pytz-deprecation-shim, python-dateutil, pyarrow, plotly, patsy, markdown-it-py, jinja2, importlib-resources, importlib-metadata, gitdb, contourpy, tzlocal, scikit-learn, rich, pydeck, pandas, matplotlib, jsonschema-specifications, gitpython, statsmodels, seaborn, jsonschema, imbalanced-learn, plotly.express, imblearn, altair, streamlit
Successfully installed MarkupSafe-2.1.3 altair-5.0.1 attrs-23.1.0 blinker-1.6.2 cachetools-5.3.1 certifi-2023.7.22 charset-normalizer-3.2.0 click-8.1.6 contourpy-1.1.0 cycler-0.11.0 decorator-5.1.1 fonttools-4.41.1 gitdb-4.0.10 gitpython-3.1.32 idna-3.4 imbalanced-learn-0.11.0 imblearn-0.0 importlib-metadata-6.8.0 importlib-resources-6.0.0 jinja2-3.1.2 joblib-1.3.1 jsonschema-4.18.4 jsonschema-specifications-2023.7.1 kiwisolver-1.4.4 markdown-it-py-3.0.0 matplotlib-3.7.2 mdurl-0.1.2 numpy-1.25.1 packaging-23.1 pandas-2.0.3 patsy-0.5.3 pillow-9.5.0 plotly-5.15.0 plotly.express-0.4.1 protobuf-4.23.4 pyarrow-12.0.1 pydeck-0.8.0 pygments-2.15.1 pympler-1.0.1 pyparsing-3.0.9 python-dateutil-2.8.2 pytz-2023.3 pytz-deprecation-shim-0.1.0.post0 referencing-0.30.0 requests-2.31.0 rich-13.4.2 rpds-py-0.9.2 scikit-learn-1.3.0 scipy-1.11.1 seaborn-0.12.2 six-1.16.0 smmap-5.0.0 statsmodels-0.14.0 streamlit-1.25.0 tenacity-8.2.2 threadpoolctl-3.2.0 toml-0.10.2 toolz-0.12.0 tornado-6.3.2 typing-extensions-4.7.1 tzdata-2023.3 tzlocal-4.3.1 urllib3-2.0.4 validators-0.20.0 watchdog-3.0.0 zipp-3.16.2
WARNING: You are using pip version 22.0.3; however, version 23.2.1 is available.
You should consider upgrading via the '/home/appuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed
Found Streamlit version 1.25.0 in the environment

────────────────────────────────────────────────────────────────────────────────────────

[18:55:14] 🐍 Python dependencies were installed from /app/fraud-detection-ml/App/requirements.txt using pip.
Check if streamlit is installed
Streamlit is already installed
[18:55:15] πŸ“¦ Processed dependencies!

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.




2023-07-23 18:55:35.751 Uncaught app exception
Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/app/fraud-detection-ml/App/Home.py", line 13, in <module>
    df_train = pd.read_csv('C:/Users/lydia/OneDrive/Documentos/GitHub/Fraud-detection-ML/data processed/df_red70_train_pca3.csv')
  File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 912, in read_csv
    return _read(filepath_or_buffer, kwds)
  File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 577, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 1407, in __init__
    self._engine = self._make_engine(f, self.engine)
  File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 1661, in _make_engine
    self.handles = get_handle(
  File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/common.py", line 859, in get_handle
    handle = open(
FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/lydia/OneDrive/Documentos/GitHub/Fraud-detection-ML/data processed/df_red70_train_pca3.csv'

I am sure that the file exists, and it is visible both in local as in GitHub.com.

Would you know what seems to be the problem?

Thanks in advance.

Lidia

Hi @LidiaMiranda,

The issue is that the path β€˜C:/Users/lydia/OneDrive/Documentos/GitHub/Fraud-detection-ML/data processed/df_red70_train_pca3.csv’ is a local path on your own machine. When you deploy the Streamlit app, it runs on a different machine (the server) that does not have access to your local file system.

You do have several options to fix this, the two easiest ones being:

  1. Upload the data file to the server and reference it using a path that exists on the server - e.g. if you put it in the same directory as your Python script, you could use:
df_train = pd.read_csv('df_red70_train_pca3.csv')
  1. Load the data from a public URL instead of a local file. For example:
url = 'https://raw.githubusercontent.com/user/repo/main/data/df_red70_train_pca3.csv'
df_train = pd.read_csv(url)

I hope that helps. Let us know if you have any more questions! :slight_smile:

Best,
Charly

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