Dumb mistake of mine, thank you :)
I followed the instructions you gave and I do indeed now have much larger swap memory, I do get some error messages though, it says "X11 connection rejected because of wrong authentication." when logging into the PI using SSH as well as when running my python program.
I am curious to why this was necessary though. I have a 8GB memory card so using 2GB of them for swap memory isn't ideal even though it's not a problem for this particular project. Isn't now my memory card acting as RAM? Which might also not be ideal when thinking of the limited read/write cycles that memory cards have.
I didn't have as much free space as I though, adding the 2GB swap file made it so that I could no longer run my program, out of memory it said. I undid the previous steps and erased the swap file, then redid everything only with a swap file of 1024MB in stead, but doing so made the swapon command to fail:
swapon: /home/pi/swap2.img: insecure permissions 0644, 0600 suggested.
swapon: /home/pi/swap2.img: read swap header failed
I will look into the sounddevice package, or perhaps I can find some other package that can do the job :)
I followed the instructions you gave and I do indeed now have much larger swap memory, I do get some error messages though, it says "X11 connection rejected because of wrong authentication." when logging into the PI using SSH as well as when running my python program.
I am curious to why this was necessary though. I have a 8GB memory card so using 2GB of them for swap memory isn't ideal even though it's not a problem for this particular project. Isn't now my memory card acting as RAM? Which might also not be ideal when thinking of the limited read/write cycles that memory cards have.
I didn't have as much free space as I though, adding the 2GB swap file made it so that I could no longer run my program, out of memory it said. I undid the previous steps and erased the swap file, then redid everything only with a swap file of 1024MB in stead, but doing so made the swapon command to fail:
swapon: /home/pi/swap2.img: insecure permissions 0644, 0600 suggested.
swapon: /home/pi/swap2.img: read swap header failed
I will look into the sounddevice package, or perhaps I can find some other package that can do the job :)