Advertisement
Guest User

pip

a guest
Sep 20th, 2023
60
0
136 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 17.07 KB | None | 0 0
  1. maxim@orangepiprime:~$ pip install wxPython
  2. Defaulting to user installation because normal site-packages is not writeable
  3. Collecting wxPython
  4.   Using cached wxPython-4.2.1.tar.gz (73.7 MB)
  5.   Preparing metadata (setup.py) ... done
  6. Requirement already satisfied: pillow in /usr/lib/python3/dist-packages (from wxPython) (9.0.1)
  7. Requirement already satisfied: six in /usr/lib/python3/dist-packages (from wxPython) (1.16.0)
  8. Requirement already satisfied: numpy in ./.local/lib/python3.10/site-packages (from wxPython) (1.26.0)
  9. Building wheels for collected packages: wxPython
  10.   Building wheel for wxPython (setup.py) ... error
  11.   error: subprocess-exited-with-error
  12.  
  13.   × python setup.py bdist_wheel did not run successfully.
  14.   │ exit code: 1
  15.   ╰─> [138 lines of output]
  16.       running bdist_wheel
  17.       running build
  18.       WARNING: Building this way assumes that all generated files have been
  19.       generated already.  If that is not the case then use build.py directly
  20.       to generate the source and perform the build stage.  You can use
  21.       --skip-build with the bdist_* or install commands to avoid this
  22.       message and the wxWidgets and Phoenix build steps in the future.
  23.      
  24.       "/usr/bin/python3" -u build.py build
  25.       Will build using: "/usr/bin/python3"
  26.       3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
  27.       Python's architecture is 64bit
  28.      cfg.VERSION: 4.2.1
  29.      
  30.      Running command: build
  31.      Running command: build_wx
  32.      wxWidgets build options: ['--wxpython', '--unicode', '--gtk3']
  33.      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']
  34.      /tmp/pip-install-gc1enrw4/wxpython_c40f4f02b1c04be1b61b92a10e51d845/ext/wxWidgets/configure --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
  35.      checking build system type... aarch64-unknown-linux-gnu
  36.      checking host system type... aarch64-unknown-linux-gnu
  37.      checking for toolkit... gtk
  38.      checking for gcc... gcc
  39.      checking whether the C compiler works... yes
  40.      checking for C compiler default output file name... a.out
  41.      checking for suffix of executables...
  42.      checking whether we are cross compiling... no
  43.      checking for suffix of object files... o
  44.      checking whether we are using the GNU C compiler... yes
  45.      checking whether gcc accepts -g... yes
  46.      checking for gcc option to accept ISO C89... none needed
  47.      checking whether we are using the Intel C compiler... no
  48.      checking how to run the C preprocessor... gcc -E
  49.      checking for grep that handles long lines and -e... /usr/bin/grep
  50.      checking for egrep... /usr/bin/grep -E
  51.      checking whether gcc needs -traditional... no
  52.      checking for g++... g++
  53.      checking whether we are using the GNU C++ compiler... yes
  54.      checking whether g++ accepts -g... yes
  55.      checking whether we are using the Intel C++ compiler... no
  56.      checking whether we are using the Sun C++ compiler... no
  57.      checking for ar... ar
  58.      checking for ANSI C header files... yes
  59.      checking for sys/types.h... yes
  60.      checking for sys/stat.h... yes
  61.      checking for stdlib.h... yes
  62.      checking for string.h... yes
  63.      checking for memory.h... yes
  64.      checking for strings.h... yes
  65.      checking for inttypes.h... yes
  66.      checking for stdint.h... yes
  67.      checking for unistd.h... yes
  68.      checking for langinfo.h... yes
  69.      checking for wchar.h... yes
  70.      checking for sys/select.h... yes
  71.      checking for cxxabi.h... yes
  72.      checking for an ANSI C-conforming const... yes
  73.      checking for inline... inline
  74.      checking size of short... 2
  75.      checking size of void *... 8
  76.      checking size of int... 4
  77.      checking size of long... 8
  78.      checking size of size_t... 8
  79.      checking size of long long... 8
  80.      checking size of wchar_t... 4
  81.      checking for va_copy... yes
  82.      checking for _FILE_OFFSET_BITS value needed for large files... 64
  83.      checking if large file support is available... yes
  84.      checking for _LARGEFILE_SOURCE value needed for large files... no
  85.      checking whether byte ordering is bigendian... no
  86.      checking for std::wstring in <string>... yes
  87.      checking for std::istream... yes
  88.      checking for std::ostream... yes
  89.      checking for type_traits... yes
  90.      checking for __sync_xxx_and_fetch builtins... yes
  91.      checking for libraries directories... /usr/lib/aarch64-linux-gnu /usr/lib
  92.      checking for cos... no
  93.      checking for floor... no
  94.      checking if floating point functions link without -lm... no
  95.      checking for sin... yes
  96.      checking for ceil... yes
  97.      checking if floating point functions link with -lm... yes
  98.      checking for strtoull... yes
  99.      checking for pkg-config... /usr/bin/pkg-config
  100.      checking pkg-config is at least version 0.9.0... yes
  101.      checking for LIBPCRE... yes
  102.      checking for zlib.h >= 1.1.4... yes
  103.      checking for zlib.h... (cached) yes
  104.      checking for deflate in -lz... yes
  105.      checking for png.h > 0.90... no
  106.      checking for png.h... (cached) no
  107.      configure: WARNING: system png library not found or too old, will use built-in instead
  108.      checking whether png.c file exists... yes
  109.      checking for jpeglib.h... no
  110.      configure: WARNING: system jpeg library not found, will use built-in instead
  111.      checking whether jpeglib.h file exists... yes
  112.      checking for jbg_dec_init in -ljbig... no
  113.      checking for LIBTIFF... not found via pkg-config
  114.      checking for tiffio.h... no
  115.      configure: WARNING: system tiff library not found, will use built-in instead
  116.      checking whether tiff.h file exists... yes
  117.      checking for expat.h... no
  118.      configure: WARNING: system expat library not found, will use built-in instead
  119.      checking whether expat.h file exists... yes
  120.      checking for gcc option to accept ISO C99... none needed
  121.      checking for LIBCURL... not found
  122.      checking for GTK+ version...
  123.      checking for pkg-config... (cached) /usr/bin/pkg-config
  124.      checking pkg-config is at least version 0.16... yes
  125.      checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
  126.      Perhaps you should add the directory containing `gtk+-3.0.pc'
  127.       to the PKG_CONFIG_PATH environment variable
  128.       No package 'gtk+-3.0' found
  129.       no
  130.       *** Could not run GTK+ test program, checking why...
  131.       *** The test program failed to compile or link. See the file config.log for the
  132.       *** exact error that occurred. This usually means GTK+ is incorrectly installed.
  133.       configure: error:
  134.       The development files for GTK+ were not found. For GTK+ 2, please
  135.       ensure that pkg-config is in the path and that gtk+-2.0.pc is
  136.       installed. For GTK+ 1.2 please check that gtk-config is in the path,
  137.       and that the version is 1.2.3 or above. Also check that the
  138.       libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
  139.      --libs' are in the LD_LIBRARY_PATH or equivalent.
  140.      
  141.       Error running configure
  142.       ERROR: failed building wxWidgets
  143.       Traceback (most recent call last):
  144.         File "/tmp/pip-install-gc1enrw4/wxpython_c40f4f02b1c04be1b61b92a10e51d845/build.py", line 1563, in cmd_build_wx
  145.           wxbuild.main(wxDir(), build_options)
  146.         File "/tmp/pip-install-gc1enrw4/wxpython_c40f4f02b1c04be1b61b92a10e51d845/buildtools/build_wxwidgets.py", line 379, in main
  147.           exitIfError(wxBuilder.configure(dir=wxRootDir, options=configure_opts),
  148.         File "/tmp/pip-install-gc1enrw4/wxpython_c40f4f02b1c04be1b61b92a10e51d845/buildtools/build_wxwidgets.py", line 72, in exitIfError
  149.           raise builder.BuildError(msg)
  150.       buildtools.builder.BuildError: Error running configure
  151.       Finished command: build_wx (0m30.452s)
  152.       Finished command: build (0m30.452s)
  153.       Command '"/usr/bin/python3" -u build.py build' failed with exit code 1.
  154.       [end of output]
  155.  
  156.   note: This error originates from a subprocess, and is likely not a problem with pip.
  157.   ERROR: Failed building wheel for wxPython
  158.   Running setup.py clean for wxPython
  159. Failed to build wxPython
  160. Installing collected packages: wxPython
  161.   Running setup.py install for wxPython ... error
  162.   error: subprocess-exited-with-error
  163.  
  164.   × Running setup.py install for wxPython did not run successfully.
  165.   │ exit code: 1
  166.   ╰─> [151 lines of output]
  167.       running install
  168.       /home/maxim/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
  169.       !!
  170.      
  171.               ********************************************************************************
  172.               Please avoid running ``setup.py`` directly.
  173.               Instead, use pypa/build, pypa/installer or other
  174.               standards-based tools.
  175.      
  176.               See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
  177.               ********************************************************************************
  178.      
  179.       !!
  180.         self.initialize_options()
  181.       running build
  182.       WARNING: Building this way assumes that all generated files have been
  183.       generated already.  If that is not the case then use build.py directly
  184.       to generate the source and perform the build stage.  You can use
  185.       --skip-build with the bdist_* or install commands to avoid this
  186.       message and the wxWidgets and Phoenix build steps in the future.
  187.      
  188.       "/usr/bin/python3" -u build.py build
  189.       Will build using: "/usr/bin/python3"
  190.       3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
  191.       Python's architecture is 64bit
  192.      cfg.VERSION: 4.2.1
  193.      
  194.      Running command: build
  195.      Running command: build_wx
  196.      wxWidgets build options: ['--wxpython', '--unicode', '--gtk3']
  197.      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']
  198.      /tmp/pip-install-gc1enrw4/wxpython_c40f4f02b1c04be1b61b92a10e51d845/ext/wxWidgets/configure --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
  199.      checking build system type... aarch64-unknown-linux-gnu
  200.      checking host system type... aarch64-unknown-linux-gnu
  201.      checking for toolkit... gtk
  202.      checking for gcc... gcc
  203.      checking whether the C compiler works... yes
  204.      checking for C compiler default output file name... a.out
  205.      checking for suffix of executables...
  206.      checking whether we are cross compiling... no
  207.      checking for suffix of object files... o
  208.      checking whether we are using the GNU C compiler... yes
  209.      checking whether gcc accepts -g... yes
  210.      checking for gcc option to accept ISO C89... none needed
  211.      checking whether we are using the Intel C compiler... no
  212.      checking how to run the C preprocessor... gcc -E
  213.      checking for grep that handles long lines and -e... /usr/bin/grep
  214.      checking for egrep... /usr/bin/grep -E
  215.      checking whether gcc needs -traditional... no
  216.      checking for g++... g++
  217.      checking whether we are using the GNU C++ compiler... yes
  218.      checking whether g++ accepts -g... yes
  219.      checking whether we are using the Intel C++ compiler... no
  220.      checking whether we are using the Sun C++ compiler... no
  221.      checking for ar... ar
  222.      checking for ANSI C header files... yes
  223.      checking for sys/types.h... yes
  224.      checking for sys/stat.h... yes
  225.      checking for stdlib.h... yes
  226.      checking for string.h... yes
  227.      checking for memory.h... yes
  228.      checking for strings.h... yes
  229.      checking for inttypes.h... yes
  230.      checking for stdint.h... yes
  231.      checking for unistd.h... yes
  232.      checking for langinfo.h... yes
  233.      checking for wchar.h... yes
  234.      checking for sys/select.h... yes
  235.      checking for cxxabi.h... yes
  236.      checking for an ANSI C-conforming const... yes
  237.      checking for inline... inline
  238.      checking size of short... 2
  239.      checking size of void *... 8
  240.      checking size of int... 4
  241.      checking size of long... 8
  242.      checking size of size_t... 8
  243.      checking size of long long... 8
  244.      checking size of wchar_t... 4
  245.      checking for va_copy... yes
  246.      checking for _FILE_OFFSET_BITS value needed for large files... 64
  247.      checking if large file support is available... yes
  248.      checking for _LARGEFILE_SOURCE value needed for large files... no
  249.      checking whether byte ordering is bigendian... no
  250.      checking for std::wstring in <string>... yes
  251.      checking for std::istream... yes
  252.      checking for std::ostream... yes
  253.      checking for type_traits... yes
  254.      checking for __sync_xxx_and_fetch builtins... yes
  255.      checking for libraries directories... /usr/lib/aarch64-linux-gnu /usr/lib
  256.      checking for cos... no
  257.      checking for floor... no
  258.      checking if floating point functions link without -lm... no
  259.      checking for sin... yes
  260.      checking for ceil... yes
  261.      checking if floating point functions link with -lm... yes
  262.      checking for strtoull... yes
  263.      checking for pkg-config... /usr/bin/pkg-config
  264.      checking pkg-config is at least version 0.9.0... yes
  265.      checking for LIBPCRE... yes
  266.      checking for zlib.h >= 1.1.4... yes
  267.      checking for zlib.h... (cached) yes
  268.      checking for deflate in -lz... yes
  269.      checking for png.h > 0.90... no
  270.      checking for png.h... (cached) no
  271.      configure: WARNING: system png library not found or too old, will use built-in instead
  272.      checking whether png.c file exists... yes
  273.      checking for jpeglib.h... no
  274.      configure: WARNING: system jpeg library not found, will use built-in instead
  275.      checking whether jpeglib.h file exists... yes
  276.      checking for jbg_dec_init in -ljbig... no
  277.      checking for LIBTIFF... not found via pkg-config
  278.      checking for tiffio.h... no
  279.      configure: WARNING: system tiff library not found, will use built-in instead
  280.      checking whether tiff.h file exists... yes
  281.      checking for expat.h... no
  282.      configure: WARNING: system expat library not found, will use built-in instead
  283.      checking whether expat.h file exists... yes
  284.      checking for gcc option to accept ISO C99... none needed
  285.      checking for LIBCURL... not found
  286.      checking for GTK+ version...
  287.      checking for pkg-config... (cached) /usr/bin/pkg-config
  288.      checking pkg-config is at least version 0.16... yes
  289.      checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
  290.      Perhaps you should add the directory containing `gtk+-3.0.pc'
  291.       to the PKG_CONFIG_PATH environment variable
  292.       No package 'gtk+-3.0' found
  293.       no
  294.       *** Could not run GTK+ test program, checking why...
  295.       *** The test program failed to compile or link. See the file config.log for the
  296.       *** exact error that occurred. This usually means GTK+ is incorrectly installed.
  297.       configure: error:
  298.       The development files for GTK+ were not found. For GTK+ 2, please
  299.       ensure that pkg-config is in the path and that gtk+-2.0.pc is
  300.       installed. For GTK+ 1.2 please check that gtk-config is in the path,
  301.       and that the version is 1.2.3 or above. Also check that the
  302.       libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
  303.      --libs' are in the LD_LIBRARY_PATH or equivalent.
  304.      
  305.       Error running configure
  306.       ERROR: failed building wxWidgets
  307.       Traceback (most recent call last):
  308.         File "/tmp/pip-install-gc1enrw4/wxpython_c40f4f02b1c04be1b61b92a10e51d845/build.py", line 1563, in cmd_build_wx
  309.           wxbuild.main(wxDir(), build_options)
  310.         File "/tmp/pip-install-gc1enrw4/wxpython_c40f4f02b1c04be1b61b92a10e51d845/buildtools/build_wxwidgets.py", line 379, in main
  311.           exitIfError(wxBuilder.configure(dir=wxRootDir, options=configure_opts),
  312.         File "/tmp/pip-install-gc1enrw4/wxpython_c40f4f02b1c04be1b61b92a10e51d845/buildtools/build_wxwidgets.py", line 72, in exitIfError
  313.           raise builder.BuildError(msg)
  314.       buildtools.builder.BuildError: Error running configure
  315.       Finished command: build_wx (0m30.212s)
  316.       Finished command: build (0m30.212s)
  317.       Command '"/usr/bin/python3" -u build.py build' failed with exit code 1.
  318.       [end of output]
  319.  
  320.   note: This error originates from a subprocess, and is likely not a problem with pip.
  321. error: legacy-install-failure
  322.  
  323. × Encountered error while trying to install package.
  324. ╰─> wxPython
  325.  
  326. note: This is an issue with the package mentioned above, not pip.
  327. hint: See above for output from the failure.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement