# Model Loading Error in Rasa 3.6.21 on Windows 10 – \[WinError 123\]

**URL:** <https://forum.rasa.com/t/model-loading-error-in-rasa-3-6-21-on-windows-10-winerror-123/67685>\
**Category:** Feedback on Rasa Open Source\
**Tags:** bug\
**Created:** [August 7, 2025, 10:39am UTC](https://forum.rasa.com/t/model-loading-error-in-rasa-3-6-21-on-windows-10-winerror-123/67685 "2025-08-07T10:39:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamidsadeghi68](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hamidsadeghi68/32/25280_2.png) [@hamidsadeghi68](https://forum.rasa.com/u/hamidsadeghi68)\
**Post date:** [August 7, 2025, 10:39am UTC](https://forum.rasa.com/t/model-loading-error-in-rasa-3-6-21-on-windows-10-winerror-123/67685/1 "2025-08-07T10:39:40Z")

</div>

Hi everyone,

I’m encountering a persistent issue when trying to run a model with **Rasa Open Source 3.6.21** on **Windows 10**. The error message I receive is:

`Could not load model due to [WinError 123] The filename, directory name, or volume label syntax is incorrect: ‘\\?\C:\Users\My_USER\AppData\Local\Temp\tmp0t1hswm9\components/train_RulePolicy1’`.

🧪 **What I’ve tried so far:**

- Tested with both **Python 3.9** and **Python 3.10** environments.

- Created a **fresh model** using `rasa init` with Rasa 3.6.21.

- Changed the **TEMP directory path** to a shorter location to avoid long file paths.

- **Extracted the model manually** and tried pointing directly to the model directory using `rasa run --model`.

Despite all these attempts, the error persists.

### 💡 Observation:

If I temporarily remove the `\\\\?\\` prefix from the extracted temp path, the model loads successfully — but that’s obviously not a proper fix. This suggests a **bug** in how **Rasa** handles **Windows**  **temp paths** when loading models.

Has anyone else experienced this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![vikas.sharma](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@vikas.sharma](https://forum.rasa.com/u/vikas.sharma)\
**Post date:** [October 15, 2025, 4:44pm UTC](https://forum.rasa.com/t/model-loading-error-in-rasa-3-6-21-on-windows-10-winerror-123/67685/2 "2025-10-15T16:44:01Z")

</div>

I am also facing the same issue. Are you able to overcome this?

> [@hamidsadeghi68](#):
>
> I temporarily remove the `\\\\?\\` prefix from the extracted temp path, the model loads successfully

Where/How are you doing this? Thanks!

---

<div class="post-metadata">

**Author:** ![wright](https://avatars.discourse-cdn.com/v4/letter/w/9e8a1a/32.png) [@wright](https://forum.rasa.com/u/wright)\
**Post date:** [November 13, 2025, 3:45am UTC](https://forum.rasa.com/t/model-loading-error-in-rasa-3-6-21-on-windows-10-winerror-123/67685/3 "2025-11-13T03:45:03Z")

</div>

in your rasa installed path，for example, D:\devsoft\miniconda3\envs\py39\Lib\site-packages\rasa\engine\storage\local\_model\_storage.py, about around line 125, content: tar.extractall(f"\\\\?\\{temporary\_directory}")

---

<div class="post-metadata">

**Author:** ![hamidsadeghi68](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hamidsadeghi68/32/25280_2.png) [@hamidsadeghi68](https://forum.rasa.com/u/hamidsadeghi68)\
**Post date:** [November 16, 2025, 7:56am UTC](https://forum.rasa.com/t/model-loading-error-in-rasa-3-6-21-on-windows-10-winerror-123/67685/4 "2025-11-16T07:56:42Z")

</div>

add this lines on tarfile.py:[**but that’s obviously not a proper fix**]

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/5/4/5451f8433b214f7c19d46865adc5a416b055def6.png)

---

<div class="post-metadata">

**Author:** ![pranavk05](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pranavk05/32/25028_2.png) [@pranavk05](https://forum.rasa.com/u/pranavk05)\
**Post date:** [December 9, 2025, 9:39am UTC](https://forum.rasa.com/t/model-loading-error-in-rasa-3-6-21-on-windows-10-winerror-123/67685/5 "2025-12-09T09:39:04Z")

</div>

The issue occurred when using Python 3.9.25, and it was working correctly on Python 3.9.21.
