2

I finished a python app, and now I want to packing into an executable, for an end user. I use windows 7 64 bit, and my python version it's Python 3.7.2

I already tried several solution and none worked for me, as follow:

  1. I tried to run pyinstaller inside an virtual environment, after installed all required packages: virtual environment

So I can't say it's because of my machine.

  1. As far I know I don't use enum or enum34 in my application. Maybe one of this dependency packages does:
    beautifulsoup4==4.11.1
    bs4==0.0.1
    certifi==2021.10.8
    charset-normalizer==2.0.12
    et-xmlfile==1.1.0
    idna==3.3
    openpyxl==3.0.9
    Pillow==9.1.0
    requests==2.27.1
    soupsieve==2.3.2.post1
    urllib3==1.26.9
  1. I already tried the most logical solution: pip uninstall enum34

which is kinda annoying... I have it installed, but I don't have it installed.

  1. I already tried the solution to uninstall both enum34 and enum, and then reinstall enum34:
    >pip uninstall enum34
    >pip uninstall enum
    >pip install --upgrade enum34
  1. I have tried both sugettion to upgade smartsheet-SDK and upgrade it by git clone:
    >pip install smartsheet-python-sdk --upgrade

and

    >git clone -b tw-updates-2.0 https://github.com/smartsheet-platform/smartsheet-python-sdk.git
    >cd smartsheet-python-sdk
    >python setup.py install
  1. I tried also to uninstall cryptography package first, and then uninstall enum and enum34:

Any ideas ? On python 3.8 have tried anyone ?

UPDATE 1

So after I gave up pyinstaller, I tried auto-py-to-exe to see that I get the same error of enum34 there also.

Cristian F.
  • 328
  • 2
  • 12

1 Answers1

1

Finally I resolved the issue, by:

  1. uninstall python (I used 3.7.13)
  2. manually delete all folders from the main python installation folder
  3. reinstall python (3.7.9)

Now it works both pyautoinstaller and auto-py-to-exe, despite the fact that in the documentation of pyinstaller it says:

PyInstaller runs in Windows 8 and newer. It can create graphical windowed apps (apps that do not need a command window).

Cristian F.
  • 328
  • 2
  • 12