Hello everyone, I have a problem when trying to export the program especially if it contains CSV library in Processing.py.
If I don’t tick the option for “Embed Java for Windows (64-bit)”, it successful to be exported. But, when I try to run the application, it opens for a short moment, then it is closed automatically. I don’t face such kind of this problem when I don’t include the CSV library.
If I tick the option for “Embed Java for Windows (64-bit)”, it gives error statement: ‘Export to windows64 failed’. This problem happens to any kind of file I want to export.
I guess there is something with this CSV library. Though it is also something wrong in my setup because I still failed to embed Java for any program.
I already put the folder of processing to C:\
directory, as I found in some discussion it might be one of the cause.
I use windows 10 64bit, Processing 3.5.3, with Java 8 installed.
Here is the program that I tried to export:
import csv
size(500,800)
fill(0)
fileName = 'csv_data.csv'
with open(fileName, 'rt') as csv_file:
csv_reader = csv.reader(csv_file)
line_count = 0
for row in csv_reader:
if line_count == 0:
text('Column names are ' +(", ".join(row)),10,30)
line_count += 1
else:
text('Data for ' + row[0] + ' is ' + row[1],10,(line_count+1)*30)
line_count += 1
And this is the sample of the CSV file:
timestamp,data
2016/07/04 0:00,50
2016/07/04 1:00,70
2016/07/04 2:00,40
2016/07/04 3:00,65
2016/07/04 4:00,43
2016/07/04 5:00,32
....
Hope someone can help