# Issue with accessing .pkl model file within KNIME workflow in KNIME Hub

**URL:** <https://forum.knime.com/t/issue-with-accessing-pkl-model-file-within-knime-workflow-in-knime-hub/86254>\
**Category:** KNIME Community Hub\
**Tags:** machine-learning, python, bug\
**Created:** [February 10, 2025, 10:27am UTC](https://forum.knime.com/t/issue-with-accessing-pkl-model-file-within-knime-workflow-in-knime-hub/86254 "2025-02-10T10:27:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nizamibilal1064](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/n/3d9bf3/32.png) [@nizamibilal1064](https://forum.knime.com/u/nizamibilal1064)\
**Post date:** [February 10, 2025, 10:27am UTC](https://forum.knime.com/t/issue-with-accessing-pkl-model-file-within-knime-workflow-in-knime-hub/86254/1 "2025-02-10T10:27:02Z")

</div>

Dear KNIME users 🙂,

I have a KNIME workflow where I call a sci-kit learn classification model (pickled). The model is saved in a directory under a workflow group like below:

![image](https://forum-cdn.knime.com/uploads/default/original/3X/7/c/7c6c556205a5b213ad2512f511482c9494dff762.png)

And this is how I’m calling the model from within my python script using `python script` node.

`model_path = ../model/deimos_gh_best_rf_jan_2025.pkl`

![image](https://forum-cdn.knime.com/uploads/default/original/3X/5/a/5a9088ef5bb76a5bb2a88ae108b211bbde50dd60.png)

This works fine when I run the workflow locally in the KAP, however the same workflow when deployed in the KNIME hub team’s space fails with `unable to access file` error message. The exact error message is

`Execute failed: FileNotFoundError: [Errno 2] No such file or directory: '../model/deimos_gh_best_rf_jan_2025.pkl'`

This is how it looks like in Hub when deployed.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/b/8/b8485e0e9f242c0845bec397d5c3cbf3b0fe3598.png)

What am I missing here?

Best,

Bilal

---

<div class="post-metadata">

**Author:** ![nizamibilal1064](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/n/3d9bf3/32.png) [@nizamibilal1064](https://forum.knime.com/u/nizamibilal1064)\
**Post date:** [June 25, 2025, 3:21pm UTC](https://forum.knime.com/t/issue-with-accessing-pkl-model-file-within-knime-workflow-in-knime-hub/86254/2 "2025-06-25T15:21:39Z")

</div>

Does anyone has any suggestion?

---

<div class="post-metadata">

**Author:** ![moghoneim](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@moghoneim](https://forum.knime.com/u/moghoneim)\
**Post date:** [July 17, 2025, 11:32am UTC](https://forum.knime.com/t/issue-with-accessing-pkl-model-file-within-knime-workflow-in-knime-hub/86254/3 "2025-07-17T11:32:28Z")

</div>

I’m facing the same issue. Did anyone find a solution somewhere?
