Deployment stopped

Error installing requirements.

what is meant by that?
while the steps are correct
app link
https://2023laila-moe-magnitude2-8j0oib.streamlit.app/

Please provide sufficient information:
https://discuss.streamlit.io/t/using-streamlit-how-to-post-a-question-in-the-streamlit-forum/30960

App repo is

Error during processing dependencies

app repo is

error during processing dependencies

  • What is the error message in the web console?
  • Remove all the versions in the requirements.txt file and try again

what do you mean by removing versions from requirements.txt
this is the link of the app
https://magnitude-of-an-earthquake.streamlit.app/

but it give me this error
AttributeError: 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 562, in _run_script
exec(code, module.dict)
File “/app/magnitudeofearthqauke/magnitude2.py”, line 34, in
main()
File “/app/magnitudeofearthqauke/magnitude2.py”, line 29, in main
result =predict_mag_Earthquake(latitude,longitude,rms,magType,locationSource,magSource)
File “/app/magnitudeofearthqauke/magnitude2.py”, line 10, in predict_mag_Earthquake
prediction = reg.predict(pd.DataFrame({‘latitude’:[latitude],‘longitude’:[longitude],‘rms’:[rms],‘magType’:[magType],‘locationSource’:[locationSource],‘magSource’:[magSource]}))
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/pipeline.py”, line 457, in predict
Xt = transform.transform(Xt)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py”, line 746, in transform
Xs = self._fit_transform(
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py”, line 604, in _fit_transform
return Parallel(n_jobs=self.n_jobs)(
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/parallel.py”, line 1051, in call
while self.dispatch_one_batch(iterator):
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/parallel.py”, line 864, in dispatch_one_batch
self._dispatch(tasks)
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/parallel.py”, line 782, in _dispatch
job = self._backend.apply_async(batch, callback=cb)
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/_parallel_backends.py”, line 208, in apply_async
result = ImmediateResult(func)
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/_parallel_backends.py”, line 572, in init
self.results = batch()
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/parallel.py”, line 263, in call
return [func(*args, **kwargs)
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/parallel.py”, line 263, in
return [func(*args, **kwargs)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/utils/fixes.py”, line 117, in call
return self.function(*args, **kwargs)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/pipeline.py”, line 853, in _transform_one
res = transformer.transform(X)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/pipeline.py”, line 635, in transform
Xt = transform.transform(Xt)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/preprocessing/_encoders.py”, line 888, in transform
self._map_infrequent_categories(X_int, X_mask)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/preprocessing/_encoders.py”, line 726, in _map_infrequent_categories
if not self._infrequent_enabled:

what do you mean by removing versions from requirements.txt
this is the link of the app
https://magnitude-of-an-earthquake.streamlit.app/

but it give me this error
AttributeError: 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 562, in _run_script
exec(code, module.dict)
File “/app/magnitudeofearthqauke/magnitude2.py”, line 34, in
main()
File “/app/magnitudeofearthqauke/magnitude2.py”, line 29, in main
result =predict_mag_Earthquake(latitude,longitude,rms,magType,locationSource,magSource)
File “/app/magnitudeofearthqauke/magnitude2.py”, line 10, in predict_mag_Earthquake
prediction = reg.predict(pd.DataFrame({‘latitude’:[latitude],‘longitude’:[longitude],‘rms’:[rms],‘magType’:[magType],‘locationSource’:[locationSource],‘magSource’:[magSource]}))
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/pipeline.py”, line 457, in predict
Xt = transform.transform(Xt)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py”, line 746, in transform
Xs = self._fit_transform(
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py”, line 604, in _fit_transform
return Parallel(n_jobs=self.n_jobs)(
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/parallel.py”, line 1051, in call
while self.dispatch_one_batch(iterator):
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/parallel.py”, line 864, in dispatch_one_batch
self._dispatch(tasks)
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/parallel.py”, line 782, in _dispatch
job = self._backend.apply_async(batch, callback=cb)
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/_parallel_backends.py”, line 208, in apply_async
result = ImmediateResult(func)
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/_parallel_backends.py”, line 572, in init
self.results = batch()
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/parallel.py”, line 263, in call
return [func(*args, **kwargs)
File “/home/appuser/venv/lib/python3.9/site-packages/joblib/parallel.py”, line 263, in
return [func(*args, **kwargs)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/utils/fixes.py”, line 117, in call
return self.function(*args, **kwargs)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/pipeline.py”, line 853, in _transform_one
res = transformer.transform(X)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/pipeline.py”, line 635, in transform
Xt = transform.transform(Xt)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/preprocessing/_encoders.py”, line 888, in transform
self._map_infrequent_categories(X_int, X_mask)
File “/home/appuser/venv/lib/python3.9/site-packages/sklearn/preprocessing/_encoders.py”, line 726, in _map_infrequent_categories
if not self._infrequent_enabled:

Based on the error messages I suspect that this pickled model was created with a ML framework? If the model is only loaded, Python cannot do anything with this object, the associated libraries must also be imported beforehand.

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