# Error while "dfx deploy"

**URL:** <https://forum.dfinity.org/t/error-while-dfx-deploy/28799>\
**Category:** CDK\
**Created:** [March 23, 2024, 4:30pm UTC](https://forum.dfinity.org/t/error-while-dfx-deploy/28799 "2024-03-23T16:30:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lakyvasu](https://avatars.discourse-cdn.com/v4/letter/l/96bed5/32.png) [@lakyvasu](https://forum.dfinity.org/u/lakyvasu)\
**Post date:** [March 23, 2024, 4:30pm UTC](https://forum.dfinity.org/t/error-while-dfx-deploy/28799/1 "2024-03-23T16:30:13Z")

</div>

Hey, I’m a high school student trying to make an IC project.

When I run “dfx deploy” it shows this error:

FileNotFoundError: [Errno 2] No such file or directory: ‘/Users/l.v/.config/kybra/rust/1.72.0/bin/ic-wasm’  
Error: Failed while trying to deploy canisters.  
Caused by: Failed while trying to deploy canisters.  
Failed to build all canisters.  
Failed while trying to build all canisters.  
The build step failed for canister ‘bkyz2-fmaaa-aaaaa-qaaaq-cai’ (unfakeDir) with an embedded error: Failed to build custom canister unfakeDir.: Failed to run python -m kybra unfakeDir src/main.py src/main.did.: The custom tool failed.

I’m not sure on how to solve it and look forward for hearing on how to solve this issue

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [March 25, 2024, 8:40am UTC](https://forum.dfinity.org/t/error-while-dfx-deploy/28799/2 "2024-03-25T08:40:31Z")

</div>

@lastmjs knows best, but I would guess that `cargo install ic-wasm` could fix this

---

<div class="post-metadata">

**Author:** ![lastmjs](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lastmjs/32/3406_2.png) [@lastmjs](https://forum.dfinity.org/u/lastmjs)\
**Post date:** [March 25, 2024, 1:41pm UTC](https://forum.dfinity.org/t/error-while-dfx-deploy/28799/3 "2024-03-25T13:41:40Z")

</div>

Seems like we need to update the Rust version of Kybra, in fact Kybra needs a few really nice updates.

You can try this until we get a new release out. Someone asked about this in the Python Discord channel:

“You may be able to resolve this on your machine temporarily by going into your local virtual environment directory and changing this line to something like 1.76.0: [kybra/kybra/\_\_init\_\_.py at main · demergent-labs/kybra · GitHub](https://github.com/demergent-labs/kybra/blob/main/kybra/ __init__.py#L21)”

---

<div class="post-metadata">

**Author:** ![lastmjs](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lastmjs/32/3406_2.png) [@lastmjs](https://forum.dfinity.org/u/lastmjs)\
**Post date:** [March 25, 2024, 10:19pm UTC](https://forum.dfinity.org/t/error-while-dfx-deploy/28799/4 "2024-03-25T22:19:00Z")

</div>

We are looking into this, we will hopefully have a release out in the next few days

---

<div class="post-metadata">

**Author:** ![lastmjs](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lastmjs/32/3406_2.png) [@lastmjs](https://forum.dfinity.org/u/lastmjs)\
**Post date:** [March 26, 2024, 8:42pm UTC](https://forum.dfinity.org/t/error-while-dfx-deploy/28799/5 "2024-03-26T20:42:08Z")

</div>

Kybra 0.5.3 has been released, let me know if this solves your issue
