basic python debugging code freeze with pyinstaller
$10-30 USD
Selesai
Disiarkan lebih dari 3 tahun yang lalu
$10-30 USD
Dibayar semasa penghantaran
consider following [login to view URL] file:
from my_message import message
import sys
import os
import glob
from [login to view URL] import Workbook
import csv
import openpyxl
try:
# PyInstaller creates a temp folder and stores path in _MEIPASS
base_path = sys._MEIPASS
except Exception:
base_path = [login to view URL](".")
relative_path_in = 'in'
relative_path_out = 'outp'
filenames_in = [login to view URL](base_path, relative_path_in,'*.csv')
filename_out = [login to view URL](base_path,'[login to view URL]')
#print([login to view URL]([login to view URL]('.', '*.csv')))
#print([login to view URL](filenames))
print(base_path)
for csvfile in [login to view URL](filenames_in):
with open(csvfile, 'rt') as f: #'rt'
reader = [login to view URL](f)
for r, row in enumerate(reader):
for c, col in enumerate(row):
print(col)
wb=openpyxl.load_workbook(filename_out)
wb['Sheet1']['A1'].value = message + col
[login to view URL](filename_out)
[login to view URL]()
--------------------------------------------------------
[login to view URL] is a single line containing: message = '' hello world"
input file is a csv file named [login to view URL] in a sub folder \in\ with a single string: "what's up?"
output file is an empty .xlsx file in the same directory as [login to view URL] that should result in "hello world what's up?"
I am trying to use pyinstaller to freeze my code to a single file or single directory peforms this task, but am getting failed to execute script "pyi_rth_certifi" types of errors. I believe the problem is with the files and directories it is using.
i am using python 3.7.4 and pyinstaller 3.6
Hello,
I already bundled python facial recognition app to single app using pyinstaller.
With your issue, I would like to help you with my past experience.
Regards,
Julio
Hello,
I read your project description and I think your requirement is matching with my skills So, I am happy to introduce myself to you.
I am a professional software engineer with more than 7 years of experience in building software/Website using .NET technologies and tools.
I have experience in working with pyinstaller So, I can solve your problem
Let's connect in chat for further discussion.
Regards,
Fakhruddin