chriskiehl / Gooey

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

Add install workaround for (ubuntu, conda) installation #243

Open wasdee opened 6 years ago

wasdee commented 6 years ago

i'm using ubuntu 16.04 alongwith conda package management. Also note that i'm using python 3.6. I had a trouble when I installed it via pip. it seems installing wxwidget, wxpython dependency fails.

To overcome this, wxpython is install via conda by

conda install -c conda-forge wxpython

Then, I need to remove/comment these line

# if sys.version[0] == '3':
#     deps.append('wxpython==4.0.0b1')

in setup.py

then,

python setup.py install

result in working GOOEY :))))

chriskiehl commented 6 years ago

Awesome! Glad you were able to get it working.

Given the large number of environments, versions, and tool chains people are using with Gooey, I've started a Wiki to keep track of specific platform instructions (for use while I figure out how to get a single setup.py to reliably install WxPython on every os/version/packager/etc.. combination).

Would you mind adding your setup on the Troubleshooting WxPython Installation page under a heading describing your environment? Would be mucho appreciated!

Thanks!

bilderbuchi commented 6 years ago

One question would be why you had to remove that's line from setup.oy - what was the message you got? I suspect because the version specifier is too strict (should be >=), and 4.0.0b1 is not available on Monday?

wasdee commented 6 years ago

agree that == is too strict. @bilderbuchi

charles@ubuntu:~/test_gooey$ pipenv install gooey
Installing gooey…
Collecting gooey
  Downloading Gooey-1.0.0-py2.py3-none-any.whl (1.5MB)
Collecting Pillow==4.3.0 (from gooey)
  Downloading Pillow-4.3.0-cp36-cp36m-manylinux1_x86_64.whl (5.8MB)
Collecting wxpython==4.0.0b1 (from gooey)
  Downloading wxPython-4.0.0b1.tar.gz (50.6MB)
Collecting psutil==5.4.2 (from gooey)
  Downloading psutil-5.4.2.tar.gz (411kB)
Collecting olefile (from Pillow==4.3.0->gooey)
  Downloading olefile-0.45.1.zip (112kB)
Collecting six (from wxpython==4.0.0b1->gooey)
  Downloading six-1.11.0-py2.py3-none-any.whl
Building wheels for collected packages: wxpython, psutil, olefile
  Running setup.py bdist_wheel for wxpython: started
  Running setup.py bdist_wheel for wxpython: finished with status 'error'
  Complete output from command /home/charles/.local/share/virtualenvs/test_gooey-6x9MdMIY/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-afetojg0/wxpython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpvlp7jgb2pip-wheel- --python-tag cp36:
  running bdist_wheel
  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/charles/.local/share/virtualenvs/test_gooey-6x9MdMIY/bin/python3" -u build.py build
  Will build using: "/home/charles/.local/share/virtualenvs/test_gooey-6x9MdMIY/bin/python3"
  3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)
  [GCC 7.2.0]
  Python's architecture is 64bit
  cfg.VERSION: 4.0.0b1

  Running command: build
  Running command: build_wx
  wxWidgets build options: ['--wxpython', '--unicode']
  Configure options: ['--enable-unicode', '--with-opengl', '--enable-sound', '--enable-graphics_ctx', '--enable-mediactrl', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--with-sdl']
  /tmp/pip-build-afetojg0/wxpython/ext/wxWidgets/configure --enable-unicode --with-opengl --enable-sound --enable-graphics_ctx --enable-mediactrl --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --with-sdl
  checking build system type... x86_64-unknown-linux-gnu
  checking host system type... x86_64-unknown-linux-gnu
  checking for --disable-gui... no
  checking for --enable-monolithic... no
  checking for --enable-plugins... no
  checking for --without-subdirs... no
  checking for --enable-official_build... no
  checking for --disable-all-features... no
  checking for --enable-universal... no
  checking for --enable-nanox... no
  checking for --enable-gpe... no
  checking for toolkit... gtk
  checking for --with-libpng... yes
  checking for --with-libjpeg... yes
  checking for --with-libtiff... yes
  checking for --without-libjbig... no
  checking for --without-liblzma... no
  checking for --with-libxpm... yes
  checking for --with-libiconv... yes
  checking for --with-libmspack... no
  checking for --without-gtkprint... no
  checking for --with-gnomevfs... no
  checking for --with-libnotify... yes
  checking for --with-hildon... no
  checking for --with-opengl... yes
  checking for --with-dmalloc... no
  checking for --with-sdl... yes
  checking for --with-regex... yes
  checking for --with-zlib... yes
  checking for --with-expat... yes
  checking for --with-macosx-sdk...
  checking for --with-macosx-version-min...
  checking for --enable-debug... default
  checking for --disable-debug_flag... no
  checking for --enable-debug_info... no
  checking for --enable-debug_gdb... no
  checking for --enable-debug_cntxt... no
  checking for --enable-mem_tracing... no
  checking for --disable-shared... no
  checking for --enable-stl... no
  checking for --enable-std_containers... no
  checking for --enable-std_iostreams... yes
  checking for --enable-std_string... yes
  checking for --enable-std_string_conv_in_wxstring... no
  checking for --disable-unicode... no
  checking for --enable-mslu... no
  checking for --enable-utf8... no
  checking for --enable-utf8only... no
  checking for --enable-extended_rtti... no
  checking for --disable-optimise... no
  checking for --enable-profile... no
  checking for --enable-no_rtti... no
  checking for --enable-no_exceptions... no
  checking for --enable-permissive... no
  checking for --enable-no_deps... no
  checking for --disable-vararg_macros... no
  checking for --enable-universal_binary... no
  checking for --enable-macosx_arch... no
  checking for --enable-compat26... no
  checking for --disable-compat28... no
  checking for --disable-rpath... no
  checking for --enable-objc_uniquifying... no
  checking for --disable-visibility... no
  checking for --disable-tls... no
  checking for --enable-intl... yes
  checking for --enable-xlocale... yes
  checking for --enable-config... yes
  checking for --enable-protocols... yes
  checking for --enable-ftp... yes
  checking for --enable-http... yes
  checking for --enable-fileproto... yes
  checking for --enable-sockets... yes
  checking for --enable-ipv6... no
  checking for --enable-ole... yes
  checking for --enable-dataobj... yes
  checking for --enable-ipc... yes
  checking for --enable-baseevtloop... yes
  checking for --enable-epollloop... yes
  checking for --enable-selectloop... yes
  checking for --enable-any... yes
  checking for --enable-apple_ieee... yes
  checking for --enable-arcstream... yes
  checking for --enable-base64... yes
  checking for --enable-backtrace... yes
  checking for --enable-catch_segvs... yes
  checking for --enable-cmdline... yes
  checking for --enable-datetime... yes
  checking for --enable-debugreport... no
  checking for --enable-dialupman... yes
  checking for --enable-dynlib... yes
  checking for --enable-dynamicloader... yes
  checking for --enable-exceptions... yes
  checking for --enable-ffile... yes
  checking for --enable-file... yes
  checking for --enable-filehistory... yes
  checking for --enable-filesystem... yes
  checking for --enable-fontenum... yes
  checking for --enable-fontmap... yes
  checking for --enable-fs_archive... yes
  checking for --enable-fs_inet... yes
  checking for --enable-fs_zip... yes
  checking for --enable-fsvolume... yes
  checking for --enable-fswatcher... yes
  checking for --enable-geometry... yes
  checking for --enable-log... yes
  checking for --enable-longlong... yes
  checking for --enable-mimetype... yes
  checking for --enable-printfposparam... yes
  checking for --enable-snglinst... yes
  checking for --enable-sound... yes
  checking for --enable-stdpaths... yes
  checking for --enable-stopwatch... yes
  checking for --enable-streams... yes
  checking for --enable-sysoptions... yes
  checking for --enable-tarstream... yes
  checking for --enable-textbuf... yes
  checking for --enable-textfile... yes
  checking for --enable-timer... yes
  checking for --enable-variant... yes
  checking for --enable-zipstream... yes
  checking for --enable-url... yes
  checking for --enable-protocol... yes
  checking for --enable-protocol_http... yes
  checking for --enable-protocol_ftp... yes
  checking for --enable-protocol_file... yes
  checking for --enable-threads... yes
  checking for --enable-iniconf... no
  checking for --enable-regkey... yes
  checking for --enable-docview... yes
  checking for --enable-help... yes
  checking for --enable-mshtmlhelp... yes
  checking for --enable-html... yes
  checking for --enable-htmlhelp... yes
  checking for --enable-xrc... yes
  checking for --enable-aui... yes
  checking for --enable-propgrid... yes
  checking for --enable-ribbon... yes
  checking for --enable-stc... yes
  checking for --enable-constraints... yes
  checking for --enable-loggui... yes
  checking for --enable-logwin... yes
  checking for --enable-logdialog... yes
  checking for --enable-mdi... yes
  checking for --enable-mdidoc... yes
  checking for --enable-mediactrl... yes
  checking for --enable-gstreamer8... no
  checking for --enable-richtext... yes
  checking for --enable-postscript... yes
  checking for --enable-printarch... yes
  checking for --enable-svg... yes
  checking for --enable-webkit... yes
  checking for --enable-webview... yes
  checking for --enable-graphics_ctx... yes
  checking for --enable-clipboard... yes
  checking for --enable-dnd... yes
  checking for --disable-controls... no
  checking for --enable-markup... yes
  checking for --enable-accel... yes
  checking for --enable-animatectrl... yes
  checking for --enable-bannerwindow... yes
  checking for --enable-artstd... yes
  checking for --enable-arttango... auto
  checking for --enable-bmpbutton... yes
  checking for --enable-bmpcombobox... yes
  checking for --enable-button... yes
  checking for --enable-calendar... yes
  checking for --enable-caret... yes
  checking for --enable-checkbox... yes
  checking for --enable-checklst... yes
  checking for --enable-choice... yes
  checking for --enable-choicebook... yes
  checking for --enable-collpane... yes
  checking for --enable-colourpicker... yes
  checking for --enable-combobox... yes
  checking for --enable-comboctrl... yes
  checking for --enable-commandlinkbutton... yes
  checking for --enable-dataviewctrl... yes
  checking for --enable-datepick... yes
  checking for --enable-detect_sm... yes
  checking for --enable-dirpicker... yes
  checking for --enable-display... yes
  checking for --enable-editablebox... yes
  checking for --enable-filectrl... yes
  checking for --enable-filepicker... yes
  checking for --enable-fontpicker... yes
  checking for --enable-gauge... yes
  checking for --enable-grid... yes
  checking for --enable-headerctrl... yes
  checking for --enable-hyperlink... yes
  checking for --enable-imaglist... yes
  checking for --enable-infobar... yes
  checking for --enable-listbook... yes
  checking for --enable-listbox... yes
  checking for --enable-listctrl... yes
  checking for --enable-notebook... yes
  checking for --enable-notifmsg... yes
  checking for --enable-odcombobox... yes
  checking for --enable-popupwin... yes
  checking for --enable-prefseditor... yes
  checking for --enable-radiobox... yes
  checking for --enable-radiobtn... yes
  checking for --enable-richmsgdlg... yes
  checking for --enable-richtooltip... yes
  checking for --enable-rearrangectrl... yes
  checking for --enable-sash... yes
  checking for --enable-scrollbar... yes
  checking for --enable-searchctrl... yes
  checking for --enable-slider... yes
  checking for --enable-spinbtn... yes
  checking for --enable-spinctrl... yes
  checking for --enable-splitter... yes
  checking for --enable-statbmp... yes
  checking for --enable-statbox... yes
  checking for --enable-statline... yes
  checking for --enable-stattext... yes
  checking for --enable-statusbar... yes
  checking for --enable-taskbaricon... yes
  checking for --enable-tbarnative... yes
  checking for --enable-textctrl... yes
  checking for --enable-datepick... yes
  checking for --enable-tipwindow... yes
  checking for --enable-togglebtn... yes
  checking for --enable-toolbar... yes
  checking for --enable-toolbook... yes
  checking for --enable-treebook... yes
  checking for --enable-treectrl... yes
  checking for --enable-treelist... yes
  checking for --enable-commondlg... yes
  checking for --enable-aboutdlg... yes
  checking for --enable-choicedlg... yes
  checking for --enable-coldlg... yes
  checking for --enable-filedlg... yes
  checking for --enable-finddlg... yes
  checking for --enable-fontdlg... yes
  checking for --enable-dirdlg... yes
  checking for --enable-msgdlg... yes
  checking for --enable-numberdlg... yes
  checking for --enable-splash... yes
  checking for --enable-textdlg... yes
  checking for --enable-tipdlg... yes
  checking for --enable-progressdlg... yes
  checking for --enable-wizarddlg... yes
  checking for --enable-menus... yes
  checking for --enable-miniframe... yes
  checking for --enable-tooltips... yes
  checking for --enable-splines... yes
  checking for --enable-mousewheel... yes
  checking for --enable-validators... yes
  checking for --enable-busyinfo... yes
  checking for --enable-hotkey... auto
  checking for --enable-joystick... yes
  checking for --enable-metafile... auto
  checking for --enable-dragimage... yes
  checking for --enable-accessibility... no
  checking for --enable-uiactionsim... yes
  checking for --enable-dctransform... yes
  checking for --enable-webviewwebkit... yes
  checking for --enable-palette... yes
  checking for --enable-image... yes
  checking for --enable-gif... yes
  checking for --enable-pcx... yes
  checking for --enable-tga... yes
  checking for --enable-iff... yes
  checking for --enable-pnm... yes
  checking for --enable-xpm... yes
  checking for --enable-ico_cur... yes
  checking for --enable-dccache... yes
  checking for --enable-ps-in-msw... yes
  checking for --enable-ownerdrawn... yes
  checking for --enable-uxtheme... yes
  checking for --enable-wxdib... yes
  checking for --enable-webviewie... yes
  checking for --enable-autoidman... no
  checking for gcc... gcc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables...
  checking whether we are cross compiling... no
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether gcc accepts -g... yes
  checking for gcc option to accept ISO C89... none needed
  checking whether we are using the Intel C compiler... no
  checking how to run the C preprocessor... gcc -E
  checking for grep that handles long lines and -e... /bin/grep
  checking for egrep... /bin/grep -E
  checking whether gcc needs -traditional... no
  checking for g++... g++
  checking whether we are using the GNU C++ compiler... yes
  checking whether g++ accepts -g... yes
  checking whether we are using the Intel C++ compiler... no
  checking whether we are using the Sun C++ compiler... no
  checking for ar... ar
  checking for ANSI C header files... yes
  checking for sys/types.h... yes
  checking for sys/stat.h... yes
  checking for stdlib.h... yes
  checking for string.h... yes
  checking for memory.h... yes
  checking for strings.h... yes
  checking for inttypes.h... yes
  checking for stdint.h... yes
  checking for unistd.h... yes
  checking for langinfo.h... yes
  checking for wchar.h... yes
  checking for sys/select.h... yes
  checking for cxxabi.h... yes
  checking for an ANSI C-conforming const... yes
  checking for inline... inline
  checking size of short... 2
  checking size of void *... 8
  checking size of int... 4
  checking size of long... 8
  checking size of size_t... 8
  checking size of long long... 8
  checking size of wchar_t... 4
  checking for va_copy... yes
  checking whether the compiler supports variadic macros... yes
  checking for _FILE_OFFSET_BITS value needed for large files... 64
  checking if large file support is available... yes
  checking for _LARGEFILE_SOURCE value needed for large files... no
  checking whether byte ordering is bigendian... no
  checking for iostream... yes
  checking if C++ compiler supports the explicit keyword... yes
  checking for std::wstring in <string>... yes
  checking for std::istream... yes
  checking for std::ostream... yes
  checking how to run the C++ preprocessor... g++ -E
  checking type_traits usability... no
  checking type_traits presence... no
  checking for type_traits... no
  checking tr1/type_traits usability... yes
  checking tr1/type_traits presence... yes
  checking for tr1/type_traits... yes
  checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... yes
  checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
  checking for cos... no
  checking for floor... no
  checking if floating point functions link without -lm... no
  checking for sin... yes
  checking for ceil... yes
  checking if floating point functions link with -lm... yes
  checking for strtoull... yes
  configure: WARNING: Defaulting to the builtin regex library for Unicode build.
  checking for zlib.h >= 1.1.4... no
  checking for zlib.h... (cached) no
  configure: WARNING: zlib library not found or too old, will use built-in instead
  checking for png.h > 0.90... no
  checking for png.h... (cached) no
  configure: WARNING: system png library not found or too old, will use built-in instead
  checking for jpeglib.h... no
  configure: WARNING: system jpeg library not found, will use built-in instead
  checking for tiffio.h... no
  configure: WARNING: system tiff library not found, will use built-in instead
  checking for lzma_code in -llzma... no
  checking for jbg_dec_init in -ljbig... no
  checking for expat.h... no
  configure: WARNING: system expat library not found, will use built-in instead
  checking for GTK+ version...
  checking for pkg-config... /usr/bin/pkg-config
  checking for GTK+ - version >= 2.6.0... Package gtk+-2.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gtk+-2.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gtk+-2.0' found
  Package gthread-2.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gthread-2.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gthread-2.0' found
  no
  *** Could not run GTK+ test program, checking why...
  *** The test program failed to compile or link. See the file config.log for the
  *** exact error that occurred. This usually means GTK+ is incorrectly installed.
  checking for pkg-config... (cached) /usr/bin/pkg-config
  checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gtk+-3.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gtk+-3.0' found
  Package gthread-2.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gthread-2.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gthread-2.0' found
  no
  *** Could not run GTK+ test program, checking why...
  *** The test program failed to compile or link. See the file config.log for the
  *** exact error that occured. This usually means GTK+ is incorrectly installed.
  checking for gtk-config... no
  checking for GTK - version >= 1.2.7... no
  *** The gtk-config script installed by GTK could not be found
  *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
  *** your path, or set the GTK_CONFIG environment variable to the
  *** full path to gtk-config.
  checking for gtk-config... (cached) no
  checking for GTK - version >= 1.2.3... no
  *** The gtk-config script installed by GTK could not be found
  *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
  *** your path, or set the GTK_CONFIG environment variable to the
  *** full path to gtk-config.
  configure: error:
  The development files for GTK+ were not found. For GTK+ 2, please
  ensure that pkg-config is in the path and that gtk+-2.0.pc is
  installed. For GTK+ 1.2 please check that gtk-config is in the path,
  and that the version is 1.2.3 or above. Also check that the
  libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
  --libs' are in the LD_LIBRARY_PATH or equivalent.

  Error running configure
  ERROR: failed building wxWidgets
  Traceback (most recent call last):
    File "build.py", line 1259, in cmd_build_wx
      wxbuild.main(wxDir(), build_options)
    File "/tmp/pip-build-afetojg0/wxpython/buildtools/build_wxwidgets.py", line 368, in main
      "Error running configure")
    File "/tmp/pip-build-afetojg0/wxpython/buildtools/build_wxwidgets.py", line 85, in exitIfError
      raise builder.BuildError(msg)
  buildtools.builder.BuildError: Error running configure
  Finished command: build_wx (0m2.881s)
  Finished command: build (0m2.881s)
  Command '"/home/charles/.local/share/virtualenvs/test_gooey-6x9MdMIY/bin/python3" -u build.py build' failed with exit code 1.

  ----------------------------------------
  Running setup.py clean for wxpython
  Running setup.py bdist_wheel for psutil: started
  Running setup.py bdist_wheel for psutil: finished with status 'done'
  Stored in directory: /home/charles/.cache/pip/wheels/62/36/0b/55b377328e81ae7345cd9a4b7b9d90c423c6cfad7d9c9b08b0
  Running setup.py bdist_wheel for olefile: started
  Running setup.py bdist_wheel for olefile: finished with status 'done'
  Stored in directory: /home/charles/.cache/pip/wheels/75/f2/18/9f073aab5b308aaccec50c17d4afb33dffc3265254e7962d67
Successfully built psutil olefile
Failed to build wxpython
Installing collected packages: olefile, Pillow, six, wxpython, psutil, gooey
  Running setup.py install for wxpython: started
    Running setup.py install for wxpython: finished with status 'error'
    Complete output from command /home/charles/.local/share/virtualenvs/test_gooey-6x9MdMIY/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-afetojg0/wxpython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4ztiqy0z-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/charles/.local/share/virtualenvs/test_gooey-6x9MdMIY/include/site/python3.6/wxpython:
    running install
    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/charles/.local/share/virtualenvs/test_gooey-6x9MdMIY/bin/python3" -u build.py build
    Will build using: "/home/charles/.local/share/virtualenvs/test_gooey-6x9MdMIY/bin/python3"
    3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)
    [GCC 7.2.0]
    Python's architecture is 64bit
    cfg.VERSION: 4.0.0b1

    Running command: build
    Running command: build_wx
    wxWidgets build options: ['--wxpython', '--unicode']
    Configure options: ['--enable-unicode', '--with-opengl', '--enable-sound', '--enable-graphics_ctx', '--enable-mediactrl', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--with-sdl']
    /tmp/pip-build-afetojg0/wxpython/ext/wxWidgets/configure --enable-unicode --with-opengl --enable-sound --enable-graphics_ctx --enable-mediactrl --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --with-sdl
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for --disable-gui... no
    checking for --enable-monolithic... no
    checking for --enable-plugins... no
    checking for --without-subdirs... no
    checking for --enable-official_build... no
    checking for --disable-all-features... no
    checking for --enable-universal... no
    checking for --enable-nanox... no
    checking for --enable-gpe... no
    checking for toolkit... gtk
    checking for --with-libpng... yes
    checking for --with-libjpeg... yes
    checking for --with-libtiff... yes
    checking for --without-libjbig... no
    checking for --without-liblzma... no
    checking for --with-libxpm... yes
    checking for --with-libiconv... yes
    checking for --with-libmspack... no
    checking for --without-gtkprint... no
    checking for --with-gnomevfs... no
    checking for --with-libnotify... yes
    checking for --with-hildon... no
    checking for --with-opengl... yes
    checking for --with-dmalloc... no
    checking for --with-sdl... yes
    checking for --with-regex... yes
    checking for --with-zlib... yes
    checking for --with-expat... yes
    checking for --with-macosx-sdk...
    checking for --with-macosx-version-min...
    checking for --enable-debug... default
    checking for --disable-debug_flag... no
    checking for --enable-debug_info... no
    checking for --enable-debug_gdb... no
    checking for --enable-debug_cntxt... no
    checking for --enable-mem_tracing... no
    checking for --disable-shared... no
    checking for --enable-stl... no
    checking for --enable-std_containers... no
    checking for --enable-std_iostreams... yes
    checking for --enable-std_string... yes
    checking for --enable-std_string_conv_in_wxstring... no
    checking for --disable-unicode... no
    checking for --enable-mslu... no
    checking for --enable-utf8... no
    checking for --enable-utf8only... no
    checking for --enable-extended_rtti... no
    checking for --disable-optimise... no
    checking for --enable-profile... no
    checking for --enable-no_rtti... no
    checking for --enable-no_exceptions... no
    checking for --enable-permissive... no
    checking for --enable-no_deps... no
    checking for --disable-vararg_macros... no
    checking for --enable-universal_binary... no
    checking for --enable-macosx_arch... no
    checking for --enable-compat26... no
    checking for --disable-compat28... no
    checking for --disable-rpath... no
    checking for --enable-objc_uniquifying... no
    checking for --disable-visibility... no
    checking for --disable-tls... no
    checking for --enable-intl... yes
    checking for --enable-xlocale... yes
    checking for --enable-config... yes
    checking for --enable-protocols... yes
    checking for --enable-ftp... yes
    checking for --enable-http... yes
    checking for --enable-fileproto... yes
    checking for --enable-sockets... yes
    checking for --enable-ipv6... no
    checking for --enable-ole... yes
    checking for --enable-dataobj... yes
    checking for --enable-ipc... yes
    checking for --enable-baseevtloop... yes
    checking for --enable-epollloop... yes
    checking for --enable-selectloop... yes
    checking for --enable-any... yes
    checking for --enable-apple_ieee... yes
    checking for --enable-arcstream... yes
    checking for --enable-base64... yes
    checking for --enable-backtrace... yes
    checking for --enable-catch_segvs... yes
    checking for --enable-cmdline... yes
    checking for --enable-datetime... yes
    checking for --enable-debugreport... no
    checking for --enable-dialupman... yes
    checking for --enable-dynlib... yes
    checking for --enable-dynamicloader... yes
    checking for --enable-exceptions... yes
    checking for --enable-ffile... yes
    checking for --enable-file... yes
    checking for --enable-filehistory... yes
    checking for --enable-filesystem... yes
    checking for --enable-fontenum... yes
    checking for --enable-fontmap... yes
    checking for --enable-fs_archive... yes
    checking for --enable-fs_inet... yes
    checking for --enable-fs_zip... yes
    checking for --enable-fsvolume... yes
    checking for --enable-fswatcher... yes
    checking for --enable-geometry... yes
    checking for --enable-log... yes
    checking for --enable-longlong... yes
    checking for --enable-mimetype... yes
    checking for --enable-printfposparam... yes
    checking for --enable-snglinst... yes
    checking for --enable-sound... yes
    checking for --enable-stdpaths... yes
    checking for --enable-stopwatch... yes
    checking for --enable-streams... yes
    checking for --enable-sysoptions... yes
    checking for --enable-tarstream... yes
    checking for --enable-textbuf... yes
    checking for --enable-textfile... yes
    checking for --enable-timer... yes
    checking for --enable-variant... yes
    checking for --enable-zipstream... yes
    checking for --enable-url... yes
    checking for --enable-protocol... yes
    checking for --enable-protocol_http... yes
    checking for --enable-protocol_ftp... yes
    checking for --enable-protocol_file... yes
    checking for --enable-threads... yes
    checking for --enable-iniconf... no
    checking for --enable-regkey... yes
    checking for --enable-docview... yes
    checking for --enable-help... yes
    checking for --enable-mshtmlhelp... yes
    checking for --enable-html... yes
    checking for --enable-htmlhelp... yes
    checking for --enable-xrc... yes
    checking for --enable-aui... yes
    checking for --enable-propgrid... yes
    checking for --enable-ribbon... yes
    checking for --enable-stc... yes
    checking for --enable-constraints... yes
    checking for --enable-loggui... yes
    checking for --enable-logwin... yes
    checking for --enable-logdialog... yes
    checking for --enable-mdi... yes
    checking for --enable-mdidoc... yes
    checking for --enable-mediactrl... yes
    checking for --enable-gstreamer8... no
    checking for --enable-richtext... yes
    checking for --enable-postscript... yes
    checking for --enable-printarch... yes
    checking for --enable-svg... yes
    checking for --enable-webkit... yes
    checking for --enable-webview... yes
    checking for --enable-graphics_ctx... yes
    checking for --enable-clipboard... yes
    checking for --enable-dnd... yes
    checking for --disable-controls... no
    checking for --enable-markup... yes
    checking for --enable-accel... yes
    checking for --enable-animatectrl... yes
    checking for --enable-bannerwindow... yes
    checking for --enable-artstd... yes
    checking for --enable-arttango... auto
    checking for --enable-bmpbutton... yes
    checking for --enable-bmpcombobox... yes
    checking for --enable-button... yes
    checking for --enable-calendar... yes
    checking for --enable-caret... yes
    checking for --enable-checkbox... yes
    checking for --enable-checklst... yes
    checking for --enable-choice... yes
    checking for --enable-choicebook... yes
    checking for --enable-collpane... yes
    checking for --enable-colourpicker... yes
    checking for --enable-combobox... yes
    checking for --enable-comboctrl... yes
    checking for --enable-commandlinkbutton... yes
    checking for --enable-dataviewctrl... yes
    checking for --enable-datepick... yes
    checking for --enable-detect_sm... yes
    checking for --enable-dirpicker... yes
    checking for --enable-display... yes
    checking for --enable-editablebox... yes
    checking for --enable-filectrl... yes
    checking for --enable-filepicker... yes
    checking for --enable-fontpicker... yes
    checking for --enable-gauge... yes
    checking for --enable-grid... yes
    checking for --enable-headerctrl... yes
    checking for --enable-hyperlink... yes
    checking for --enable-imaglist... yes
    checking for --enable-infobar... yes
    checking for --enable-listbook... yes
    checking for --enable-listbox... yes
    checking for --enable-listctrl... yes
    checking for --enable-notebook... yes
    checking for --enable-notifmsg... yes
    checking for --enable-odcombobox... yes
    checking for --enable-popupwin... yes
    checking for --enable-prefseditor... yes
    checking for --enable-radiobox... yes
    checking for --enable-radiobtn... yes
    checking for --enable-richmsgdlg... yes
    checking for --enable-richtooltip... yes
    checking for --enable-rearrangectrl... yes
    checking for --enable-sash... yes
    checking for --enable-scrollbar... yes
    checking for --enable-searchctrl... yes
    checking for --enable-slider... yes
    checking for --enable-spinbtn... yes
    checking for --enable-spinctrl... yes
    checking for --enable-splitter... yes
    checking for --enable-statbmp... yes
    checking for --enable-statbox... yes
    checking for --enable-statline... yes
    checking for --enable-stattext... yes
    checking for --enable-statusbar... yes
    checking for --enable-taskbaricon... yes
    checking for --enable-tbarnative... yes
    checking for --enable-textctrl... yes
    checking for --enable-datepick... yes
    checking for --enable-tipwindow... yes
    checking for --enable-togglebtn... yes
    checking for --enable-toolbar... yes
    checking for --enable-toolbook... yes
    checking for --enable-treebook... yes
    checking for --enable-treectrl... yes
    checking for --enable-treelist... yes
    checking for --enable-commondlg... yes
    checking for --enable-aboutdlg... yes
    checking for --enable-choicedlg... yes
    checking for --enable-coldlg... yes
    checking for --enable-filedlg... yes
    checking for --enable-finddlg... yes
    checking for --enable-fontdlg... yes
    checking for --enable-dirdlg... yes
    checking for --enable-msgdlg... yes
    checking for --enable-numberdlg... yes
    checking for --enable-splash... yes
    checking for --enable-textdlg... yes
    checking for --enable-tipdlg... yes
    checking for --enable-progressdlg... yes
    checking for --enable-wizarddlg... yes
    checking for --enable-menus... yes
    checking for --enable-miniframe... yes
    checking for --enable-tooltips... yes
    checking for --enable-splines... yes
    checking for --enable-mousewheel... yes
    checking for --enable-validators... yes
    checking for --enable-busyinfo... yes
    checking for --enable-hotkey... auto
    checking for --enable-joystick... yes
    checking for --enable-metafile... auto
    checking for --enable-dragimage... yes
    checking for --enable-accessibility... no
    checking for --enable-uiactionsim... yes
    checking for --enable-dctransform... yes
    checking for --enable-webviewwebkit... yes
    checking for --enable-palette... yes
    checking for --enable-image... yes
    checking for --enable-gif... yes
    checking for --enable-pcx... yes
    checking for --enable-tga... yes
    checking for --enable-iff... yes
    checking for --enable-pnm... yes
    checking for --enable-xpm... yes
    checking for --enable-ico_cur... yes
    checking for --enable-dccache... yes
    checking for --enable-ps-in-msw... yes
    checking for --enable-ownerdrawn... yes
    checking for --enable-uxtheme... yes
    checking for --enable-wxdib... yes
    checking for --enable-webviewie... yes
    checking for --enable-autoidman... no
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether we are using the Intel C compiler... no
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking whether gcc needs -traditional... no
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking whether we are using the Intel C++ compiler... no
    checking whether we are using the Sun C++ compiler... no
    checking for ar... ar
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for langinfo.h... yes
    checking for wchar.h... yes
    checking for sys/select.h... yes
    checking for cxxabi.h... yes
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking size of short... 2
    checking size of void *... 8
    checking size of int... 4
    checking size of long... 8
    checking size of size_t... 8
    checking size of long long... 8
    checking size of wchar_t... 4
    checking for va_copy... yes
    checking whether the compiler supports variadic macros... yes
    checking for _FILE_OFFSET_BITS value needed for large files... 64
    checking if large file support is available... yes
    checking for _LARGEFILE_SOURCE value needed for large files... no
    checking whether byte ordering is bigendian... no
    checking for iostream... yes
    checking if C++ compiler supports the explicit keyword... yes
    checking for std::wstring in <string>... yes
    checking for std::istream... yes
    checking for std::ostream... yes
    checking how to run the C++ preprocessor... g++ -E
    checking type_traits usability... no
    checking type_traits presence... no
    checking for type_traits... no
    checking tr1/type_traits usability... yes
    checking tr1/type_traits presence... yes
    checking for tr1/type_traits... yes
    checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... yes
    checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
    checking for cos... no
    checking for floor... no
    checking if floating point functions link without -lm... no
    checking for sin... yes
    checking for ceil... yes
    checking if floating point functions link with -lm... yes
    checking for strtoull... yes
    configure: WARNING: Defaulting to the builtin regex library for Unicode build.
    checking for zlib.h >= 1.1.4... no
    checking for zlib.h... (cached) no
    configure: WARNING: zlib library not found or too old, will use built-in instead
    checking for png.h > 0.90... no
    checking for png.h... (cached) no
    configure: WARNING: system png library not found or too old, will use built-in instead
    checking for jpeglib.h... no
    configure: WARNING: system jpeg library not found, will use built-in instead
    checking for tiffio.h... no
    configure: WARNING: system tiff library not found, will use built-in instead
    checking for lzma_code in -llzma... no
    checking for jbg_dec_init in -ljbig... no
    checking for expat.h... no
    configure: WARNING: system expat library not found, will use built-in instead
    checking for GTK+ version...
    checking for pkg-config... /usr/bin/pkg-config
    checking for GTK+ - version >= 2.6.0... Package gtk+-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gtk+-2.0' found
    Package gthread-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gthread-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gthread-2.0' found
    no
    *** Could not run GTK+ test program, checking why...
    *** The test program failed to compile or link. See the file config.log for the
    *** exact error that occurred. This usually means GTK+ is incorrectly installed.
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-3.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gtk+-3.0' found
    Package gthread-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gthread-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gthread-2.0' found
    no
    *** Could not run GTK+ test program, checking why...
    *** The test program failed to compile or link. See the file config.log for the
    *** exact error that occured. This usually means GTK+ is incorrectly installed.
    checking for gtk-config... no
    checking for GTK - version >= 1.2.7... no
    *** The gtk-config script installed by GTK could not be found
    *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
    *** your path, or set the GTK_CONFIG environment variable to the
    *** full path to gtk-config.
    checking for gtk-config... (cached) no
    checking for GTK - version >= 1.2.3... no
    *** The gtk-config script installed by GTK could not be found
    *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
    *** your path, or set the GTK_CONFIG environment variable to the
    *** full path to gtk-config.
    configure: error:
    The development files for GTK+ were not found. For GTK+ 2, please
    ensure that pkg-config is in the path and that gtk+-2.0.pc is
    installed. For GTK+ 1.2 please check that gtk-config is in the path,
    and that the version is 1.2.3 or above. Also check that the
    libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
    --libs' are in the LD_LIBRARY_PATH or equivalent.

    Error running configure
    ERROR: failed building wxWidgets
    Traceback (most recent call last):
      File "build.py", line 1259, in cmd_build_wx
        wxbuild.main(wxDir(), build_options)
      File "/tmp/pip-build-afetojg0/wxpython/buildtools/build_wxwidgets.py", line 368, in main
        "Error running configure")
      File "/tmp/pip-build-afetojg0/wxpython/buildtools/build_wxwidgets.py", line 85, in exitIfError
        raise builder.BuildError(msg)
    buildtools.builder.BuildError: Error running configure
    Finished command: build_wx (0m2.775s)
    Finished command: build (0m2.775s)
    Command '"/home/charles/.local/share/virtualenvs/test_gooey-6x9MdMIY/bin/python3" -u build.py build' failed with exit code 1.

    ----------------------------------------

Error:  An error occurred while installing gooey!
  Failed building wheel for wxpython
Command "/home/charles/.local/share/virtualenvs/test_gooey-6x9MdMIY/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-afetojg0/wxpython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4ztiqy0z-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/charles/.local/share/virtualenvs/test_gooey-6x9MdMIY/include/site/python3.6/wxpython" failed with error code 1 in /tmp/pip-build-afetojg0/wxpython/

I test it again this morning. This is Just install ubuntu.

wasdee commented 6 years ago

@chriskiehl Sure!

rpadovani commented 6 years ago

Unfortunately I have the same problem, Ubuntu 16.04 with pip:

  pip install Gooey 
Collecting Gooey
  Using cached https://files.pythonhosted.org/packages/74/13/c8cffa20f752c733ca38267c763c73a8bb791ec62e78bb82a1ad02aa2055/Gooey-1.0.0-py2.py3-none-any.whl
Collecting wxpython==4.0.0b1 (from Gooey)
  Using cached https://files.pythonhosted.org/packages/be/b5/fc263904687769cb1db2801fb2899f461bd6a7d65f729455cd378456ac41/wxPython-4.0.0b1.tar.gz
Collecting psutil==5.4.2 (from Gooey)
  Using cached https://files.pythonhosted.org/packages/54/24/aa854703715fa161110daa001afce75d21d1840e9ab5eb28708d6a5058b0/psutil-5.4.2.tar.gz
Requirement already satisfied: Pillow==4.3.0 in ./venv/lib/python3.5/site-packages (from Gooey) (4.3.0)
Requirement already satisfied: six in ./venv/lib/python3.5/site-packages (from wxpython==4.0.0b1->Gooey) (1.11.0)
Requirement already satisfied: olefile in ./venv/lib/python3.5/site-packages (from Pillow==4.3.0->Gooey) (0.45.1)
Installing collected packages: wxpython, psutil, Gooey
  Running setup.py install for wxpython ... error
    Complete output from command /home/rpadovani/something/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-_9f89t3o/wxpython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-vpt_pa_h/install-record.txt --single-version-externally-managed --compile --install-headers /home/rpadovani/something/venv/include/site/python3.5/wxpython:
    running install
    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/rpadovani/something/venv/bin/python" -u build.py build
    Will build using: "/home/rpadovani/something/venv/bin/python"
    3.5.2 (default, Nov 23 2017, 16:37:01)
    [GCC 5.4.0 20160609]
    Python's architecture is 64bit
    cfg.VERSION: 4.0.0b1

    Running command: build
    Running command: build_wx
    wxWidgets build options: ['--wxpython', '--unicode']
    Configure options: ['--enable-unicode', '--with-opengl', '--enable-sound', '--enable-graphics_ctx', '--enable-mediactrl', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--with-sdl']
    /tmp/pip-install-_9f89t3o/wxpython/ext/wxWidgets/configure --enable-unicode --with-opengl --enable-sound --enable-graphics_ctx --enable-mediactrl --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --with-sdl
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for --disable-gui... no
    checking for --enable-monolithic... no
    checking for --enable-plugins... no
    checking for --without-subdirs... no
    checking for --enable-official_build... no
    checking for --disable-all-features... no
    checking for --enable-universal... no
    checking for --enable-nanox... no
    checking for --enable-gpe... no
    checking for toolkit... gtk
    checking for --with-libpng... yes
    checking for --with-libjpeg... yes
    checking for --with-libtiff... yes
    checking for --without-libjbig... no
    checking for --without-liblzma... no
    checking for --with-libxpm... yes
    checking for --with-libiconv... yes
    checking for --with-libmspack... no
    checking for --without-gtkprint... no
    checking for --with-gnomevfs... no
    checking for --with-libnotify... yes
    checking for --with-hildon... no
    checking for --with-opengl... yes
    checking for --with-dmalloc... no
    checking for --with-sdl... yes
    checking for --with-regex... yes
    checking for --with-zlib... yes
    checking for --with-expat... yes
    checking for --with-macosx-sdk...
    checking for --with-macosx-version-min...
    checking for --enable-debug... default
    checking for --disable-debug_flag... no
    checking for --enable-debug_info... no
    checking for --enable-debug_gdb... no
    checking for --enable-debug_cntxt... no
    checking for --enable-mem_tracing... no
    checking for --disable-shared... no
    checking for --enable-stl... no
    checking for --enable-std_containers... no
    checking for --enable-std_iostreams... yes
    checking for --enable-std_string... yes
    checking for --enable-std_string_conv_in_wxstring... no
    checking for --disable-unicode... no
    checking for --enable-mslu... no
    checking for --enable-utf8... no
    checking for --enable-utf8only... no
    checking for --enable-extended_rtti... no
    checking for --disable-optimise... no
    checking for --enable-profile... no
    checking for --enable-no_rtti... no
    checking for --enable-no_exceptions... no
    checking for --enable-permissive... no
    checking for --enable-no_deps... no
    checking for --disable-vararg_macros... no
    checking for --enable-universal_binary... no
    checking for --enable-macosx_arch... no
    checking for --enable-compat26... no
    checking for --disable-compat28... no
    checking for --disable-rpath... no
    checking for --enable-objc_uniquifying... no
    checking for --disable-visibility... no
    checking for --disable-tls... no
    checking for --enable-intl... yes
    checking for --enable-xlocale... yes
    checking for --enable-config... yes
    checking for --enable-protocols... yes
    checking for --enable-ftp... yes
    checking for --enable-http... yes
    checking for --enable-fileproto... yes
    checking for --enable-sockets... yes
    checking for --enable-ipv6... no
    checking for --enable-ole... yes
    checking for --enable-dataobj... yes
    checking for --enable-ipc... yes
    checking for --enable-baseevtloop... yes
    checking for --enable-epollloop... yes
    checking for --enable-selectloop... yes
    checking for --enable-any... yes
    checking for --enable-apple_ieee... yes
    checking for --enable-arcstream... yes
    checking for --enable-base64... yes
    checking for --enable-backtrace... yes
    checking for --enable-catch_segvs... yes
    checking for --enable-cmdline... yes
    checking for --enable-datetime... yes
    checking for --enable-debugreport... no
    checking for --enable-dialupman... yes
    checking for --enable-dynlib... yes
    checking for --enable-dynamicloader... yes
    checking for --enable-exceptions... yes
    checking for --enable-ffile... yes
    checking for --enable-file... yes
    checking for --enable-filehistory... yes
    checking for --enable-filesystem... yes
    checking for --enable-fontenum... yes
    checking for --enable-fontmap... yes
    checking for --enable-fs_archive... yes
    checking for --enable-fs_inet... yes
    checking for --enable-fs_zip... yes
    checking for --enable-fsvolume... yes
    checking for --enable-fswatcher... yes
    checking for --enable-geometry... yes
    checking for --enable-log... yes
    checking for --enable-longlong... yes
    checking for --enable-mimetype... yes
    checking for --enable-printfposparam... yes
    checking for --enable-snglinst... yes
    checking for --enable-sound... yes
    checking for --enable-stdpaths... yes
    checking for --enable-stopwatch... yes
    checking for --enable-streams... yes
    checking for --enable-sysoptions... yes
    checking for --enable-tarstream... yes
    checking for --enable-textbuf... yes
    checking for --enable-textfile... yes
    checking for --enable-timer... yes
    checking for --enable-variant... yes
    checking for --enable-zipstream... yes
    checking for --enable-url... yes
    checking for --enable-protocol... yes
    checking for --enable-protocol_http... yes
    checking for --enable-protocol_ftp... yes
    checking for --enable-protocol_file... yes
    checking for --enable-threads... yes
    checking for --enable-iniconf... no
    checking for --enable-regkey... yes
    checking for --enable-docview... yes
    checking for --enable-help... yes
    checking for --enable-mshtmlhelp... yes
    checking for --enable-html... yes
    checking for --enable-htmlhelp... yes
    checking for --enable-xrc... yes
    checking for --enable-aui... yes
    checking for --enable-propgrid... yes
    checking for --enable-ribbon... yes
    checking for --enable-stc... yes
    checking for --enable-constraints... yes
    checking for --enable-loggui... yes
    checking for --enable-logwin... yes
    checking for --enable-logdialog... yes
    checking for --enable-mdi... yes
    checking for --enable-mdidoc... yes
    checking for --enable-mediactrl... yes
    checking for --enable-gstreamer8... no
    checking for --enable-richtext... yes
    checking for --enable-postscript... yes
    checking for --enable-printarch... yes
    checking for --enable-svg... yes
    checking for --enable-webkit... yes
    checking for --enable-webview... yes
    checking for --enable-graphics_ctx... yes
    checking for --enable-clipboard... yes
    checking for --enable-dnd... yes
    checking for --disable-controls... no
    checking for --enable-markup... yes
    checking for --enable-accel... yes
    checking for --enable-animatectrl... yes
    checking for --enable-bannerwindow... yes
    checking for --enable-artstd... yes
    checking for --enable-arttango... auto
    checking for --enable-bmpbutton... yes
    checking for --enable-bmpcombobox... yes
    checking for --enable-button... yes
    checking for --enable-calendar... yes
    checking for --enable-caret... yes
    checking for --enable-checkbox... yes
    checking for --enable-checklst... yes
    checking for --enable-choice... yes
    checking for --enable-choicebook... yes
    checking for --enable-collpane... yes
    checking for --enable-colourpicker... yes
    checking for --enable-combobox... yes
    checking for --enable-comboctrl... yes
    checking for --enable-commandlinkbutton... yes
    checking for --enable-dataviewctrl... yes
    checking for --enable-datepick... yes
    checking for --enable-detect_sm... yes
    checking for --enable-dirpicker... yes
    checking for --enable-display... yes
    checking for --enable-editablebox... yes
    checking for --enable-filectrl... yes
    checking for --enable-filepicker... yes
    checking for --enable-fontpicker... yes
    checking for --enable-gauge... yes
    checking for --enable-grid... yes
    checking for --enable-headerctrl... yes
    checking for --enable-hyperlink... yes
    checking for --enable-imaglist... yes
    checking for --enable-infobar... yes
    checking for --enable-listbook... yes
    checking for --enable-listbox... yes
    checking for --enable-listctrl... yes
    checking for --enable-notebook... yes
    checking for --enable-notifmsg... yes
    checking for --enable-odcombobox... yes
    checking for --enable-popupwin... yes
    checking for --enable-prefseditor... yes
    checking for --enable-radiobox... yes
    checking for --enable-radiobtn... yes
    checking for --enable-richmsgdlg... yes
    checking for --enable-richtooltip... yes
    checking for --enable-rearrangectrl... yes
    checking for --enable-sash... yes
    checking for --enable-scrollbar... yes
    checking for --enable-searchctrl... yes
    checking for --enable-slider... yes
    checking for --enable-spinbtn... yes
    checking for --enable-spinctrl... yes
    checking for --enable-splitter... yes
    checking for --enable-statbmp... yes
    checking for --enable-statbox... yes
    checking for --enable-statline... yes
    checking for --enable-stattext... yes
    checking for --enable-statusbar... yes
    checking for --enable-taskbaricon... yes
    checking for --enable-tbarnative... yes
    checking for --enable-textctrl... yes
    checking for --enable-datepick... yes
    checking for --enable-tipwindow... yes
    checking for --enable-togglebtn... yes
    checking for --enable-toolbar... yes
    checking for --enable-toolbook... yes
    checking for --enable-treebook... yes
    checking for --enable-treectrl... yes
    checking for --enable-treelist... yes
    checking for --enable-commondlg... yes
    checking for --enable-aboutdlg... yes
    checking for --enable-choicedlg... yes
    checking for --enable-coldlg... yes
    checking for --enable-filedlg... yes
    checking for --enable-finddlg... yes
    checking for --enable-fontdlg... yes
    checking for --enable-dirdlg... yes
    checking for --enable-msgdlg... yes
    checking for --enable-numberdlg... yes
    checking for --enable-splash... yes
    checking for --enable-textdlg... yes
    checking for --enable-tipdlg... yes
    checking for --enable-progressdlg... yes
    checking for --enable-wizarddlg... yes
    checking for --enable-menus... yes
    checking for --enable-miniframe... yes
    checking for --enable-tooltips... yes
    checking for --enable-splines... yes
    checking for --enable-mousewheel... yes
    checking for --enable-validators... yes
    checking for --enable-busyinfo... yes
    checking for --enable-hotkey... auto
    checking for --enable-joystick... yes
    checking for --enable-metafile... auto
    checking for --enable-dragimage... yes
    checking for --enable-accessibility... no
    checking for --enable-uiactionsim... yes
    checking for --enable-dctransform... yes
    checking for --enable-webviewwebkit... yes
    checking for --enable-palette... yes
    checking for --enable-image... yes
    checking for --enable-gif... yes
    checking for --enable-pcx... yes
    checking for --enable-tga... yes
    checking for --enable-iff... yes
    checking for --enable-pnm... yes
    checking for --enable-xpm... yes
    checking for --enable-ico_cur... yes
    checking for --enable-dccache... yes
    checking for --enable-ps-in-msw... yes
    checking for --enable-ownerdrawn... yes
    checking for --enable-uxtheme... yes
    checking for --enable-wxdib... yes
    checking for --enable-webviewie... yes
    checking for --enable-autoidman... no
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether we are using the Intel C compiler... no
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking whether gcc needs -traditional... no
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking whether we are using the Intel C++ compiler... no
    checking whether we are using the Sun C++ compiler... no
    checking for ar... ar
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for langinfo.h... yes
    checking for wchar.h... yes
    checking for sys/select.h... yes
    checking for cxxabi.h... yes
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking size of short... 2
    checking size of void *... 8
    checking size of int... 4
    checking size of long... 8
    checking size of size_t... 8
    checking size of long long... 8
    checking size of wchar_t... 4
    checking for va_copy... yes
    checking whether the compiler supports variadic macros... yes
    checking for _FILE_OFFSET_BITS value needed for large files... 64
    checking if large file support is available... yes
    checking for _LARGEFILE_SOURCE value needed for large files... no
    checking whether byte ordering is bigendian... no
    checking for iostream... yes
    checking if C++ compiler supports the explicit keyword... yes
    checking for std::wstring in <string>... yes
    checking for std::istream... yes
    checking for std::ostream... yes
    checking how to run the C++ preprocessor... g++ -E
    checking type_traits usability... no
    checking type_traits presence... no
    checking for type_traits... no
    checking tr1/type_traits usability... yes
    checking tr1/type_traits presence... yes
    checking for tr1/type_traits... yes
    checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... yes
    checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
    checking for cos... no
    checking for floor... no
    checking if floating point functions link without -lm... no
    checking for sin... yes
    checking for ceil... yes
    checking if floating point functions link with -lm... yes
    checking for strtoull... yes
    configure: WARNING: Defaulting to the builtin regex library for Unicode build.
    checking for zlib.h >= 1.1.4... yes
    checking for zlib.h... (cached) yes
    checking for deflate in -lz... yes
    checking for png.h > 0.90... no
    checking for png.h... (cached) no
    configure: WARNING: system png library not found or too old, will use built-in instead
    checking for jpeglib.h... yes
    checking for jpeg_read_header in -ljpeg... yes
    checking for tiffio.h... no
    configure: WARNING: system tiff library not found, will use built-in instead
    checking for lzma_code in -llzma... no
    checking for jbg_dec_init in -ljbig... no
    checking for expat.h... yes
    checking if expat.h is valid C++ header... yes
    checking for XML_ParserCreate in -lexpat... yes
    checking for GTK+ version...
    checking for pkg-config... /usr/bin/pkg-config
    checking for GTK+ - version >= 2.6.0... Package gtk+-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gtk+-2.0' found
    Package gthread-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gthread-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gthread-2.0' found
    no
    *** Could not run GTK+ test program, checking why...
    *** The test program failed to compile or link. See the file config.log for the
    *** exact error that occurred. This usually means GTK+ is incorrectly installed.
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-3.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gtk+-3.0' found
    Package gthread-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gthread-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gthread-2.0' found
    no
    *** Could not run GTK+ test program, checking why...
    *** The test program failed to compile or link. See the file config.log for the
    *** exact error that occured. This usually means GTK+ is incorrectly installed.
    checking for gtk-config... no
    checking for GTK - version >= 1.2.7... no
    *** The gtk-config script installed by GTK could not be found
    *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
    *** your path, or set the GTK_CONFIG environment variable to the
    *** full path to gtk-config.
    checking for gtk-config... (cached) no
    checking for GTK - version >= 1.2.3... no
    *** The gtk-config script installed by GTK could not be found
    *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
    *** your path, or set the GTK_CONFIG environment variable to the
    *** full path to gtk-config.
    configure: error:
    The development files for GTK+ were not found. For GTK+ 2, please
    ensure that pkg-config is in the path and that gtk+-2.0.pc is
    installed. For GTK+ 1.2 please check that gtk-config is in the path,
    and that the version is 1.2.3 or above. Also check that the
    libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
    --libs' are in the LD_LIBRARY_PATH or equivalent.

    Error running configure
    ERROR: failed building wxWidgets
    Traceback (most recent call last):
      File "build.py", line 1259, in cmd_build_wx
        wxbuild.main(wxDir(), build_options)
      File "/tmp/pip-install-_9f89t3o/wxpython/buildtools/build_wxwidgets.py", line 368, in main
        "Error running configure")
      File "/tmp/pip-install-_9f89t3o/wxpython/buildtools/build_wxwidgets.py", line 85, in exitIfError
        raise builder.BuildError(msg)
    buildtools.builder.BuildError: Error running configure
    Finished command: build_wx (0m4.338s)
    Finished command: build (0m4.338s)
    Command '"/home/rpadovani/something/venv/bin/python" -u build.py build' failed with exit code 1.

    ----------------------------------------
Command "/home/rpadovani/something/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-_9f89t3o/wxpython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-vpt_pa_h/install-record.txt --single-version-externally-managed --compile --install-headers /home/rpadovani/something/venv/include/site/python3.5/wxpython" failed with error code 1 in /tmp/pip-install-_9f89t3o/wxpython/
GhostofGoes commented 6 years ago

Same issue on Ubuntu 18.04 with Python 3.6.5 in a virtual environment.

Fixed by installing a number of apt packages, as suggested in a thread on the wxWidget's Phoenix GitHub. Simply installing libgtk2.0 resolved one of the errors, but not the rest. I'm sure not all of the following packages are required, but I don't have the time or desire currently to narrow them down.

sudo apt install libwebkitgtk-dev libjpeg-dev libtiff-dev libgtk2.0-dev libsdl1.2-dev freeglut3 freeglut3-dev libnotify-dev libgstreamerd-3-dev

Also, I should note that the failure happens pretty quickly during the "./configure" step. If it gets to the point of waiting for half a decade to build, you're good 😄

Uplink03 commented 5 years ago

Ubuntu 18.04, Python installed by the system: sudo apt install libgtk-3-dev seemed to be enough. Had to use pip (Python 2.7) not pip3 (Pyhton 3.6) because it wanted a pathlib2, which is a Python 2 package.

tscizzlebg commented 4 years ago

On Ubuntu 18.04, like @Uplink03 said, sudo apt install libgtk-3-dev was enough to allow pip installing wxPython... but it took 20 minutes.

To get wxPython, much faster for me was: pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 wxPython

References https://wiki.wxpython.org/How%20to%20install%20wxPython#How_to_install_wxPython (see the bottom: "Installing wxPython-Phoenix using pip") https://wxpython.org/blog/2017-08-17-builds-for-linux-with-pip/index.html https://extras.wxpython.org/wxPython4/extras/linux/ (you can navigate to the version relevant to you)