# Filepath not being read into Sonic Pi on Windows

**URL:** <https://in-thread.sonic-pi.net/t/filepath-not-being-read-into-sonic-pi-on-windows/8245>\
**Category:** Support, Help & Resources\
**Created:** [October 12, 2023, 10:56pm UTC](https://in-thread.sonic-pi.net/t/filepath-not-being-read-into-sonic-pi-on-windows/8245 "2023-10-12T22:56:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bishop](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@bishop](https://in-thread.sonic-pi.net/u/bishop)\
**Post date:** [October 12, 2023, 10:56pm UTC](https://in-thread.sonic-pi.net/t/filepath-not-being-read-into-sonic-pi-on-windows/8245/1 "2023-10-12T22:56:12Z")

</div>

Hello,  
I am a student trying to use Sonic Pi for a school project.  
I have Sonic Pi on my windows computer (using Windows 11).  
I’m currently trying to read in a CSV file and two WAV files into Sonic Pi.  
When I read in my CSV file, I get an error saying:  
"Runtime Error: [buffer 0, line 23] - Errno::EINVAL  
Thread death!  
Invalid argument @ rb\_sysopen - _the path of the file i’m trying to open_ "

When I try to play the WAV files, no sounds were made (but no error statement).

I have tried:

- moved my file from OneDrive to local file on my desktop
- eliminated spaces in my file names
- moved my WAV files into Samples file within Sonic Pi

---

<div class="post-metadata">

**Author:** ![mrbombmusic](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/mrbombmusic/32/2282_2.png) [@mrbombmusic](https://in-thread.sonic-pi.net/u/mrbombmusic)\
**Post date:** [October 13, 2023, 12:48am UTC](https://in-thread.sonic-pi.net/t/filepath-not-being-read-into-sonic-pi-on-windows/8245/2 "2023-10-13T00:48:26Z")

</div>

Hello @bishop Welcome to the forum!

The issue you are having with the WAV files sounds similar to a problem someone else was having recently on here.  
I would recommend checking out [this post](https://in-thread.sonic-pi.net/t/problem-with-samples/8220) and trying some of the suggestions.

I’m not sure about the issue with the CSV. It would be helpful if you post the code you were trying to run so others can get a look at it and better diagnose the problems you are having.

Remember to start and end all block of code with 3 tick marks - ```

Best of luck!

---

<div class="post-metadata">

**Author:** ![bishop](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@bishop](https://in-thread.sonic-pi.net/u/bishop)\
**Post date:** [October 19, 2023, 9:33pm UTC](https://in-thread.sonic-pi.net/t/filepath-not-being-read-into-sonic-pi-on-windows/8245/3 "2023-10-19T21:33:26Z")

</div>

Thank you for the warm welcome and sorry for the late response!  
The post you recommended to me worked out my problem.  
Thank you!
