I am trying to compile a Kivy application to a windows exe, but I keep receiving an attribute error: AttributeError: \'str\' object has no attribute \'items\'
I have
pip install --force-reinstall --no-binary :all: pyinstaller
Did the trick for me but only when running it into a command prompt as administrator....(Win10)
I had a similar error when trying to compile my script to a macho using pyinstaller. I tried uninstalling/reinstalling six and setuptools as suggested elsewhere to no effect. I noticed another error regarding enum and tried uninstalling enum34 via pip. This did it.
pip uninstall enum34
If you are still having this issue, here is what solved it for me:
pip install --upgrade setuptools
I've tried installing six (in my case, it wasn't already installed), but since it seems that it is looking for _vendor.six
and not just six
, that didn't solve it. Somehow, upgrading setuptools solves it.
Things to check:
Upgrade setup tools using command :
pip install --upgrade setuptools
I have solved this by installing some dependencies,
pip install --force-reinstall --no-binary :all: pyinstaller
Here is the source issue link
I had similar error output from Pyinstaller with a wxPython project. It was solved it by upgrading setuptools (from 38.5.1 to 39.0.2).