I read the comments here (and others) , but I still cannot solve my problem.
I have already created the file .exe
.
But the program is not behaving as it should.
The basic idea of the program is to read a file (.csv) and then it should give two output other .csv and a .docx. My Python program does that. But the .exe doesn't.
I have the csv where the .exe is, but still is not working :/ the .exe executes but doesn't give me the desired output. Any ideas?
I have tried a lot of different things.
This is one part of the code that doesn't seem to be working in the .exe:
with pd.ExcelWriter('sales_mejorado.xlsx') as writer:
df_sales.to_excel(writer, sheet_name="sales.xlsx")
I imported these libraries:
import numpy as np
import pandas as pd
import re
from docx import Document
from docx.shared import Inches
Maybe this part it in't working... (when I call the csv files)
df_sales = pd.read_csv('./Sales.csv', sep=',', encoding='latin-1')
Thanks in advance. I really need help in this. Edit: I try too the auto-py-to-exe, and it didn't help :(