# I Can't open gcode file

**URL:** <https://klipper.discourse.group/t/i-cant-open-gcode-file/7690>\
**Category:** General Discussion\
**Created:** [April 7, 2023, 9:41am UTC](https://klipper.discourse.group/t/i-cant-open-gcode-file/7690 "2023-04-07T09:41:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkuczma](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@mkuczma](https://klipper.discourse.group/u/mkuczma)\
**Post date:** [April 7, 2023, 9:41am UTC](https://klipper.discourse.group/t/i-cant-open-gcode-file/7690/1 "2023-04-07T09:41:11Z")

</div>

Hi, I just installed mainsail on rpi 4B via Raspberry pi Imager, boot it and upgrade klipper, moonraker to the latest version. Then I flash a board on my printer sidewinder x2. Mainsail connect with the printer, I can home, heat nozzle and bed, send gcodes via terminal, but when I wont open gcode file I get error: unable to open file. I read many topics in the internet about this problem. Firstly I have a warning from moonraker that [virtual\_sdcard] is wrong. I changed it to:  
[virtual\_sdcard]  
path: ~/printer\_data/gcodes  
on\_error\_gcode: CANCEL\_PRINT  
Then warning disapear, but problem not. I am still not able to open file. I can import it via mainsail. I check via WinSCP that file is in correct folder home/pi/printer\_data/gcodes.

Mayby someone has same problem and could help me to resolve this.

Marcin

---

<div class="post-metadata">

**Author:** ![theophile](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/theophile/32/31_2.png) [@theophile](https://klipper.discourse.group/u/theophile)\
**Post date:** [April 7, 2023, 12:43pm UTC](https://klipper.discourse.group/t/i-cant-open-gcode-file/7690/2 "2023-04-07T12:43:57Z")

</div>

Post your klippy.log like you were instructed when you created this post.

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [October 26, 2024, 5:52am UTC](https://klipper.discourse.group/t/i-cant-open-gcode-file/7690/3 "2024-10-26T05:52:24Z")

</div>


