I won't bother to ask if the ram memory size is different between the platforms.
![windows program not working in linux windows program not working in linux](https://cdn.consensys.net/uploads/blockchain.png)
If you wanted to stuff the csv fields into array values, you should do so. If the csv is giant and you only wanted to read the first 7 lines, then break out of the csv read loop.Īlso, I don't know what the purpose of equating the row values in your csv read loop is accomplishing. Usually you get a memory error in cases were repeated data or large data is iterated over and maintained. "for row in sbuxfile:"), you don't have a stop, but the 2nd loop (e.g. How long is the csv file? (we'll assume you're using the same data on both platforms) There are 2 loops that might matter. (type help for more info) If you're getting no feedback before the memory error. script.py" and step through to see how far it gets. You should try the Python debug module if the error isn't enough information.
#Windows program not working in linux android
It a cross-platform application which is available for Linux (Ubuntu, Debian, Fedora, OpenSUSE, Slackware ), MacOS, FreeBSD and Android OS.
#Windows program not working in linux windows
I added a few modifications to your script.Īvgequity.append(round(float(row8),2) + float(row8)/2) #rewrote this line as it had an errorĪverage equity is WineHQ is the best way to run Windows programs on Linux operating systems. Print "ROE method 1 is " + str(roe1) + "\n"
![windows program not working in linux windows program not working in linux](https://i.stack.imgur.com/Ck1Wj.png)
Print "\nAverage equity is " + str(avgequity) + "\n" Here’s how: Click on the Applications menu. # Perform calculations for average equity and ROE.Īvgequity.append(round(float(row8),2)) Since our goal is running Windows applications, let’s use the GUI method. # Grab data and numerical values from CSV.
![windows program not working in linux windows program not working in linux](https://cepa.io/wp-content/uploads/2018/02/wsl-desktop.png)
Row5, row8, row3, row7, avgequity, roe1, roe2 = ( for i in range(7)) Sbuxfile = csv.reader(open(csvname), delimiter=',', quotechar='|') The CSV file needed to run the program is here. I ran this program on Linux with Python 2.6.2 and it ran fine returning me with decimal values but when I run it on Python 2.7.2 on Windows it does not work and just gives a blank space for a while and then a memory error but I can't figure out why.I need it to run on Windows its a program to calculate stock equity (ROE).