0

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 :(

Community
  • 1
  • 1
  • Ummm like what exactly is not working can you read the error in the .exe console because if you can read the error it will be easy to debug the program also how did to convert to .exe like what code you put in cmd to convert it please mention that also – harsh jain May 31 '20 at 17:45
  • "doesn't give me the desired output". Please be more specific. – pppery Jun 25 '20 at 01:35

1 Answers1

2

I suggest using:

auto-py-to-exe 

It has one directory option which will put all dependencies in one folder :)

nouraellm
  • 357
  • 8
  • 15