Pyinstaller can run into some minor issues with MacOS, but solving it might take you longer if you do not get the right guidance. We have kept the solution simple to help you resolve the issue faster.
Below is a snippet of the error
Traceback (most recent call last):
File “PyInstaller/loader/rthooks/pyi_rth__tkinter.py”, line 28, in <module>
FileNotFoundError: Tcl data directory “/var/folders/nl/2wxh3z313l129zpzq2f8ww5m0000gn/T/_MEILUmJRc/tcl” not found.
 Failed to execute script pyi_rth__tkinter
The Error Message basically refers to a file that cannot be found. In most cases, this file may not be necessary to run your application. The only way to know it is to refer to the file pyi_rth_tkinter.py
The file pyi_rth_tkinter.py can be found under the venv folder of your project.
You will find a simple IF Statement that returns an error if a specific file is not found in the tk or tcl directory. You can comment the IF Statement as provided below and try running your PyInstaller code once again.
#if not os.path.isdir(tcldir):
#raise FileNotFoundError('Tcl data directory "%s" not found.' % (tcldir))
#if not os.path.isdir(tkdir):
#raise FileNotFoundError('Tk data directory "%s" not found.' % (tkdir))
In 2016, I started my own Resume Writing Service as a part-time venture. I went at it with a lot of thought. Built a professional website, wrote appealing content and published several blogs. But that wasn’t enough to get the phones ringing. I was receiving an average 1 order per week through SEO and about 2-3 orders per week through word-of-mouth and other sources. Well, that does not sound much of a business, does it?
It was time to get back to the drawing board. It was not my business that was the problem. It was just my marketing strategy that needed a rethink. With my small business idea, spending heavily on marketing would be foolish. I had to choose a Paid advertising medium that was smart.
Google AdWords was my preferred Paid advertising choice and within a few weeks of research my ads were live on Google.
With just USD 100 per month on Google AdWords, I was able to generate an approximate 3 orders per day with a phenomenal Click-Through-Rate of 8 to 10%.
The average Click-Through-Rate of Google AdWords is about 2%. Anything above 2% is considered above average CTR.
With a successful Google AdWords Campaign, I was able to keep my Marketing Budget to below 2% of the Revenue Share. The recommended digital marketing budget for most companies my size is anywhere between 5% to 8%.
If you are wondering why I chose Google AdWords, and not Facebook, Instagram or other mediums. Well, I will leave that for another blog post.