# What is the issue this is the error i found while i am running streamlit

**URL:** <https://discuss.streamlit.io/t/what-is-the-issue-this-is-the-error-i-found-while-i-am-running-streamlit/62835>\
**Category:** Using Streamlit\
**Tags:** streamlit-cloud, debugging\
**Created:** [February 21, 2024, 4:44am UTC](https://discuss.streamlit.io/t/what-is-the-issue-this-is-the-error-i-found-while-i-am-running-streamlit/62835 "2024-02-21T04:44:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahana\_Ks](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/sahana_ks/32/29106_2.png) [@Sahana\_Ks](https://discuss.streamlit.io/u/Sahana_Ks)\
**Post date:** [February 21, 2024, 4:44am UTC](https://discuss.streamlit.io/t/what-is-the-issue-this-is-the-error-i-found-while-i-am-running-streamlit/62835/1 "2024-02-21T04:44:56Z")

</div>

ValueError: node array from the pickle has an incompatible dtype: - expected: {‘names’: [‘left\_child’, ‘right\_child’, ‘feature’, ‘threshold’, ‘impurity’, ‘n\_node\_samples’, ‘weighted\_n\_node\_samples’, ‘missing\_go\_to\_left’], ‘formats’: [‘\<i8’, ‘\<i8’, ‘\<i8’, ‘\<f8’, ‘\<f8’, ‘\<i8’, ‘\<f8’, ‘u1’], ‘offsets’: [0, 8, 16, 24, 32, 40, 48, 56], ‘itemsize’: 64} - got : [(‘left\_child’, ‘\<i8’), (‘right\_child’, ‘\<i8’), (‘feature’, ‘\<i8’), (‘threshold’, ‘\<f8’), (‘impurity’, ‘\<f8’), (‘n\_node\_samples’, ‘\<i8’), (‘weighted\_n\_node\_samples’, ‘\<f8’)]

Traceback:

````auto
File "C:\Users\Sahana K S\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in _run_script
    exec(code, module. __dict__ )File "C:\Users\Sahana K S\Desktop\manasa\main.py", line 8, in <module>
    pipe = pickle.load(open('pipe.pkl', 'rb'))File "sklearn\\tree\\_tree.pyx", line 865, in sklearn.tree._tree.Tree. __setstate__ File "sklearn\\tree\\_tree.pyx", line 1571, in sklearn.tree._tree._check_node_ndarray
```If you're creating a **debugging post** , please include the following info:
1 App is running locally 
requirements
streamlit==1.23.1
scikit-learn==1.4.0
pandas==2.2.0
numpy==1.26.4
pickle-mixin==1.0.2
pickleshare==0.7.5
xgboost==2.0.3
````

---

<div class="post-metadata">

**Author:** ![Goyo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/goyo/32/28219_2.png) [@Goyo](https://discuss.streamlit.io/u/Goyo)\
**Post date:** [February 21, 2024, 7:54am UTC](https://discuss.streamlit.io/t/what-is-the-issue-this-is-the-error-i-found-while-i-am-running-streamlit/62835/2 "2024-02-21T07:54:15Z")

</div>

Take a look at this similar post:

> [@ValueError: node array from the pickle has an incompatible dtype](https://discuss.streamlit.io/t/valueerror-node-array-from-the-pickle-has-an-incompatible-dtype/46682):
>
> After the recent update, my app has stopped working and instead gives a Valueerror. The entire error is: File "/app/caustic-consumption-prediction/prediction.py", line 10, in predict clf = pickle.load(f) File "sklearn/tree/\_tree.pyx", line 714, in sklearn.tree.\_tree.Tree.\_\_setstate\_\_ File "sklearn/tree/\_tree.pyx", line 1418, in sklearn.tree.\_tree.\_check\_node\_ndarray ValueError: node array from the pickle has an incompatible dtype: - expected: {'names': ['left\_child', 'right\_child', 'featur…

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [August 19, 2024, 7:54am UTC](https://discuss.streamlit.io/t/what-is-the-issue-this-is-the-error-i-found-while-i-am-running-streamlit/62835/3 "2024-08-19T07:54:17Z")

</div>

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