chriskiehl / Gooey

Turn (almost) any Python command line program into a full GUI application with one line
MIT License
20.68k stars 1.02k forks source link

installing version 1.2.0 on m1 chip #867

Open liv-watson opened 1 year ago

liv-watson commented 1 year ago

Trying to update gooey to the new 1.2.0 release and getting various different errors depending on the python version. I am using pyenv environments to do this.

For Python 3.7+ I'm getting this error:

$ pip install gooey==1.2.0a0

Collecting gooey==1.2.0a0
  Using cached Gooey-1.2.0a0-py2.py3-none-any.whl (766 kB)
ERROR: Ignored the following versions that require a different python version: 0.7 Requires-Python >=3.6, <3.7; 0.8 Requires-Python >=3.6, <3.7
ERROR: Could not find a version that satisfies the requirement dataclasses>=0.8 (from gooey) (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6)
ERROR: No matching distribution found for dataclasses>=0.8

So I swap to python 3.6 and instead I get this error:

$ pip install gooey==1.2.0a0

Error building
    ERROR: failed building wxWidgets
    Traceback (most recent call last):
      File "build.py", line 1563, in cmd_build_wx
        wxbuild.main(wxDir(), build_options)
      File "/private/var/folders/y5/g2f5wxzs0nj82qzx735hwjmr0000gp/T/pip-install-xoozpnwv/wxpython_390f65c05b564b1da70ef1d8331c4b13/buildtools/build_wxwidgets.py", line 503, in main
        exitIfError(wxBuilder.build(dir=buildDir, options=args), "Error building")
      File "/private/var/folders/y5/g2f5wxzs0nj82qzx735hwjmr0000gp/T/pip-install-xoozpnwv/wxpython_390f65c05b564b1da70ef1d8331c4b13/buildtools/build_wxwidgets.py", line 72, in exitIfError
        raise builder.BuildError(msg)
    buildtools.builder.BuildError: Error building
    Finished command: build_wx (5m50.103s)
    Finished command: build (5m50.103s)
    Command '"~/.pyenv/versions/3.6.15/envs/test/bin/python3.6" -u build.py build' failed with exit code 1.

 ----------------------------------------
ERROR: Command errored out with exit status 1: ~/.pyenv/versions/3.6.15/envs/test/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y5/g2f5wxzs0nj82qzx735hwjmr0000gp/T/pip-install-xoozpnwv/wxpython_390f65c05b564b1da70ef1d8331c4b13/setup.py'"'"'; __file__='"'"'/private/var/folders/y5/g2f5wxzs0nj82qzx735hwjmr0000gp/T/pip-install-xoozpnwv/wxpython_390f65c05b564b1da70ef1d8331c4b13/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/y5/g2f5wxzs0nj82qzx735hwjmr0000gp/T/pip-record-_xaaqa52/install-record.txt --single-version-externally-managed --compile --install-headers ~/.pyenv/versions/3.6.15/envs/test/include/site/python3.6/wxpython Check the logs for full command output.