wxWidgets / Phoenix

wxPython's Project Phoenix. A new implementation of wxPython, better, stronger, faster than he was before.
http://wxpython.org/
2.33k stars 515 forks source link

wxPython fails in venv #2044

Open jakobneufeld opened 2 years ago

jakobneufeld commented 2 years ago

Operating system: Nixos/ linux wxPython version & source: pypi Python version & source: 3.9

Description of the problem:

I get this error when I build wxPython in venv.

 Running setup.py clean for wxPython
Failed to build wxPython
Installing collected packages: wxPython, pyopengl, minecraft-resource-pack, amulet-core, amulet-map-editor
    Running setup.py install for wxPython ... error
    ERROR: Command errored out with exit status 1:
     command: /home/drzoidberg/pythonpkgshell/envtest/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/setup.py'"'"'; __file__='"'"'/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/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 /run/user/1000/pip-record-zk9roh6i/install-record.txt --single-version-externally-managed --compile --install-headers /home/drzoidberg/pythonpkgshell/envtest/include/site/python3.9/wxPython
         cwd: /run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/
    Complete output (185 lines):
    /home/drzoidberg/pythonpkgshell/envtest/lib/python3.9/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
      warnings.warn(
    /home/drzoidberg/pythonpkgshell/envtest/lib/python3.9/site-packages/setuptools/dist.py:294: DistDeprecationWarning: use_2to3 is ignored.
      warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
    running install
    /home/drzoidberg/pythonpkgshell/envtest/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    running build
    WARNING: Building this way assumes that all generated files have been
    generated already.  If that is not the case then use build.py directly
    to generate the source and perform the build stage.  You can use
    --skip-build with the bdist_* or install commands to avoid this
    message and the wxWidgets and Phoenix build steps in the future.

    "/home/drzoidberg/pythonpkgshell/envtest/bin/python" -u build.py build
    Will build using: "/home/drzoidberg/pythonpkgshell/envtest/bin/python"
    3.9.6 (default, Jun 28 2021, 08:57:49)
    [GCC 10.3.0]
    Python's architecture is 64bit
    cfg.VERSION: 4.1.1

    Running command: build
    Running command: build_wx
    wxWidgets build options: ['--wxpython', '--unicode', '--no_config', '--gtk3']
    Configure options: ['--enable-unicode', '--with-gtk=3', '--enable-sound', '--enable-graphics_ctx', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--enable-autoidman', '--with-sdl']
    /nix/store/wfzdk9vxayfnw7fqy05s7mmypg5a8lyr-gnumake-4.3/bin/make
    make --jobs=12
    (if test -f utils/wxrc/Makefile ; then cd utils/wxrc && make all ; fi)
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/build/wxbld/gtk3/utils/wxrc'
    make[1]: Nothing to be done for 'all'.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/build/wxbld/gtk3/utils/wxrc'
    Building message catalogs in /run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale
    make allmo
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'af.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'an.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'ar.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'ca.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'ca@valencia.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'cs.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'da.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'de.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'el.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'es.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'eu.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'fa_IR.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'fi.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'fr.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'gl_ES.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'hi.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'hr.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'hu.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'id.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'it.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'ja.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'ko_KR.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'lt.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'lv.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'ms.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'msw/it.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'nb.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'ne.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'nl.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'pl.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'pt_BR.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'pt.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'ro.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'ru.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'sk.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'sl.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'sq.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'sv.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'ta.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'tr.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'uk.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'vi.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'zh_CN.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: Entering directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    make[1]: 'zh_TW.mo' is up to date.
    make[1]: Leaving directory '/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/ext/wxWidgets/locale'
    Finished command: build_wx (0m1.252s)
    Running command: build_py
    Checking for /run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/bin/waf-2.0.19...
    "/home/drzoidberg/pythonpkgshell/envtest/bin/python" /run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/bin/waf-2.0.19 --wx_config=/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/build/wxbld/gtk3/wx-config --gtk3 --python="/home/drzoidberg/pythonpkgshell/envtest/bin/python" --out=build/waf/3.9/gtk3 configure build
    Setting top to                           : /run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799
    Setting out to                           : /run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/build/waf/3.9/gtk3
    Checking for 'gcc' (C compiler)          : gcc
    Checking for 'g++' (C++ compiler)        : g++
    Checking for program 'python'            : /home/drzoidberg/pythonpkgshell/envtest/bin/python
    Checking for python version >= 2.7.0     : 3.9.6
    python-config                            : /nix/store/jzaj3bjk5nzpimpsmjl4a2lbf2j76yz8-python3-3.9.6/bin/python3.9-config
    Asking python-config for pyext '--cflags --libs --ldflags' flags : yes
    Testing pyext configuration                                      : Could not build python extensions
    Testing pyext configuration                                      : Could not build python extensions
    The configuration failed
    (complete log in /run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/build/waf/3.9/gtk3/config.log)
    Command '"/home/drzoidberg/pythonpkgshell/envtest/bin/python" /run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/bin/waf-2.0.19 --wx_config=/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/build/wxbld/gtk3/wx-config --gtk3 --python="/home/drzoidberg/pythonpkgshell/envtest/bin/python" --out=build/waf/3.9/gtk3 configure build ' failed with exit code 1.
    Finished command: build_py (0m1.551s)
    Finished command: build (0m2.804s)
    Command '"/home/drzoidberg/pythonpkgshell/envtest/bin/python" -u build.py build' failed with exit code 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/drzoidberg/pythonpkgshell/envtest/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/setup.py'"'"'; __file__='"'"'/run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/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 /run/user/1000/pip-record-zk9roh6i/install-record.txt --single-version-externally-managed --compile --install-headers /home/drzoidberg/pythonpkgshell/envtest/include/site/python3.9/wxPython Check the logs for full command output.
Code Example (click to expand) ```python # Put code sample here ```
swt2c commented 2 years ago

Can you please attach /run/user/1000/pip-install-2s0l6qkp/wxpython_864fc262cda54d66b46fb61001cc1799/build/waf/3.9/gtk3/config.log so we can see what waf doesn't like about your environment?

jakobneufeld commented 2 years ago

@swt2c I fixed the issue kind of by adding the open gl headers, but now I get this issue

 checking if std::basic_string<wchar_t> works... no
    configure: error: Can't use --enable-std_string without std::wstring or std::basic_string<wchar_t>
    Error running configure
    ERROR: failed building wxWidgets
    Traceback (most recent call last):
      File "/run/user/1000/pip-install-cer34i5c/wxpython_9ac138f340274539afe1578ca86161fa/build.py", line 1510, in cmd_build_wx
        wxbuild.main(wxDir(), build_options)
      File "/run/user/1000/pip-install-cer34i5c/wxpython_9ac138f340274539afe1578ca86161fa/buildtools/build_wxwidgets.py", line 372, in main
        exitIfError(wxBuilder.configure(dir=wxRootDir, options=configure_opts),
      File "/run/user/1000/pip-install-cer34i5c/wxpython_9ac138f340274539afe1578ca86161fa/buildtools/build_wxwidgets.py", line 85, in exitIfError
        raise builder.BuildError(msg)
    buildtools.builder.BuildError: Error running configure
    Finished command: build_wx (0m4.448s)
    Finished command: build (0m4.448s)
    Command '"/home/drzoidberg/pythonpkgshell/envtest/bin/python" -u build.py build' failed with exit code 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/drzoidberg/pythonpkgshell/envtest/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/run/user/1000/pip-install-cer34i5c/wxpython_9ac138f340274539afe1578ca86161fa/setup.py'"'"'; __file__='"'"'/run/user/1000/pip-install-cer34i5c/wxpython_9ac138f340274539afe1578ca86161fa/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 /run/user/1000/pip-record-omb22_2y/install-record.txt --single-version-externally-managed --compile --install-headers /home/drzoidberg/pythonpkgshell/envtest/include/site/python3.9/wxPython Check the logs for full command output.
jakobneufeld commented 2 years ago

@swt2c Thanks so much for replying anyway!

jakobneufeld commented 2 years ago

Honestly I did not expect a response, because most package maintainers hate NixOS users :laughing:

swt2c commented 2 years ago

Honestly I did not expect a response, because most package maintainers hate NixOS users laughing

I try not to hate anybody. :-) I'm even more confused now about the error as it seems to be saying that your system doesn't support std::wstring.