DrM1173 |
Dimanche 17 Mai 2020 à 17:22
|
DrM1173
|
I have installed PlayOnLinux 4.4 under Linux Mint 19.3 Xfce 64 bit, which is based upon Ubuntu 18.04.4 LTS (Bionic Beaver).
When I want to run PlayOnLinux 4.4 by running the command playonlinux in the terminal, I get the following error message:
:~$ playonlinux
Looking for python3... 3.6.9 - Traceback (most recent call last):
File "/usr/share/playonlinux/python/check_python.py", line 3, in <module>
import wx
ModuleNotFoundError: No module named 'wx'
failed tests
Looking for python... 2.7.17 - selected
Traceback (most recent call last):
File "mainwindow.py", line 28, in <module>
import urllib.parse
ImportError: No module named parse
Checking Python:
:~$ python
Python 2.7.17 (default, Apr 15 2020, 17:20:14)
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Checking Python3:
:~$ python3
Python 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
What is going wrong here and what do I have to do to fix this problem?
Edité par DrM1173
|
Quentin PÂRIS |
Dimanche 17 Mai 2020 à 17:49
|
Quentin PÂRIS
|
Hi,
Do you have wxpython installed alongside with python3?
Might just be a dependency problem
|
DrM1173 |
Dimanche 17 Mai 2020 à 18:43
|
DrM1173
|
Showing the dependencies of PlayOnLinux 4.4 by running apt-rdepends in the terminal:
:$ apt-rdepends playonlinux | grep python
Reading package lists... Done
Building dependency tree
Reading state information... Done
Depends:
Depends: -wxgtk2.8
Depends: -wxgtk3.0
Depends: lib-stdlib (= 2.7.15~rc1-1)
Depends: 2.7 (>= 2.7.15~rc1-1~)
PreDepends: -minimal (= 2.7.15~rc1-1)
lib-stdlib
Depends: lib2.7-stdlib (>= 2.7.15~rc1-1~)
lib2.7-stdlib
Depends: lib2.7-minimal (= 2.7.17-1~18.04ubuntu1)
lib2.7-minimal
2.7
Depends: lib2.7-stdlib (= 2.7.17-1~18.04ubuntu1)
Depends: 2.7-minimal (= 2.7.17-1~18.04ubuntu1)
2.7-minimal
Depends: lib2.7-minimal (= 2.7.17-1~18.04ubuntu1)
-minimal
Depends: 2.7-minimal (>= 2.7.15~rc1-1~)
-wxgtk2.8
-wxgtk3.0
Depends: (>= 2.7~)
Depends: -wxversion
Depends: :any (>= 2.7.5-5~)
-wxversion
Depends: :any (>= 2.7.5-5~)
:any
Showing the installed version of python-wx by running dpkg-query -l in the terminal:
:$ dpkg-query -l | grep python-wx
ii gtk3.0 3.0.2.0+dfsg-7 amd64 Python interface to the wxWidgets Cross-platform C++ GUI toolkit
ii tools 3.0.2.0+dfsg-7 all Tools from the wxPython distribution
ii version 3.0.2.0+dfsg-7 all API for selecting the wxPython version to use
|
Quentin PÂRIS |
Dimanche 17 Mai 2020 à 18:44
|
Quentin PÂRIS
|
Do you have a wxpython4 version in your repository available?
|
DrM1173 |
Dimanche 17 Mai 2020 à 18:52
|
DrM1173
|
I don't know if wxpython4 is available in the respositories of Linux Mint 19.3. But why aren't these dependency problems with python-wx automatically fixed during the install of PlayOnLinux 4.4?
|
Quentin PÂRIS |
Dimanche 17 Mai 2020 à 18:53
|
Quentin PÂRIS
|
Yep, I'm just trying to find out how to fix the problem automatically :)
We just need to find a way to provide wxpython4 alongside with your python3 distribution
|
DrM1173 |
Dimanche 17 Mai 2020 à 19:21
|
DrM1173
|
I think that PlayOnlInux 4.4 was released too prematurely without fixing these issues with wxpython. I don't know if Linux Mint 19.3, based upon Ubuntu 18.04.4 LTS (Bionic Beaver), will support wxpython4.
|
Quentin PÂRIS |
Dimanche 17 Mai 2020 à 19:23
|
Quentin PÂRIS
|
This is why the repository has not been yet updated.
If we see that it causes too much problem, we are going to rollback.
Can you try this command?
pip install -U wxPython
|
DrM1173 |
Dimanche 17 Mai 2020 à 19:29
|
DrM1173
|
Runnin pip-install -U wxPython gave me the following output blow with critical errors. I think that you should rollback to PlayOnLinux 4.3.4 untill these problems with wxpython4 have been fixed, also for those who use Linux Mint 19.3 or Ubuntu 18.04 LTS Bionic Beaver.
:~$ pip install -U wxPython
Collecting wxPython
Downloading https://files.pythonhosted.org/packages/cb/4f/1e21d3c079c973ba862a18f3be73c2bbe2e6bc25c96d94df605b5cbb494d/wxPython-4.1.0.tar.gz (65.8MB)
100% |████████████████████████████████| 65.8MB 16kB/s
Collecting pillow (from wxPython)
Downloading https://files.pythonhosted.org/packages/12/ad/61f8dfba88c4e56196bf6d056cdbba64dc9c5dfdfbc97d02e6472feed913/Pillow-6.2.2-cp27-cp27mu-manylinux1_x86_64.whl (2.1MB)
100% |████████████████████████████████| 2.1MB 471kB/s
Collecting six (from wxPython)
Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting numpy<1.17 (from wxPython)
Downloading https://files.pythonhosted.org/packages/3a/5f/47e578b3ae79e2624e205445ab77a1848acdaa2929a00eeef6b16eaaeb20/numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl (17.0MB)
100% |████████████████████████████████| 17.0MB 61kB/s
Building wheels for collected packages: wxPython
Running setup.py bdist_wheel for wxPython ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-SyOEQ1/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/tmpNCKXURpip-wheel- --python-tag cp27:
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.
"/usr/bin/python" -u build.py build
Will build using: "/usr/bin/python"
2.7.17 (default, Apr 15 2020, 17:20:14)
[GCC 7.5.0]
Python's architecture is 64bit
cfg.VERSION: 4.1.0
Running command: build
Running command: build_wx
wxWidgets build options: ['--wxpython', '--unicode', '--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']
/tmp/pip-build-SyOEQ1/wxPython/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
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for toolkit... gtk
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 std::wstring in <string>... yes
checking for std::istream... yes
checking for std::ostream... yes
checking for 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
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... 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... no
configure: WARNING: system jpeg library not found, will use built-in instead
checking lzma.h usability... no
checking lzma.h presence... no
checking for lzma.h... no
checking for jbg_dec_init in -ljbig... no
checking for LIBTIFF... not found via pkg-config
checking for tiffio.h... no
configure: WARNING: system tiff library not found, will use built-in instead
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... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
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
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.
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 1471, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File "/tmp/pip-build-SyOEQ1/wxPython/buildtools/build_wxwidgets.py", line 373, in main
"Error running configure")
File "/tmp/pip-build-SyOEQ1/wxPython/buildtools/build_wxwidgets.py", line 85, in exitIfError
raise builder.BuildError(msg)
BuildError
Finished command: build_wx (6.414s)
Finished command: build (6.414s)
Command '"/usr/bin/python" -u build.py build' failed with exit code 1.
----------------------------------------
Failed building wheel for wxPython
Running setup.py clean for wxPython
Failed to build wxPython
Installing collected packages: pillow, six, numpy, wxPython
Running setup.py install for wxPython ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-SyOEQ1/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-vktmhL-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
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.
"/usr/bin/python" -u build.py build
Will build using: "/usr/bin/python"
2.7.17 (default, Apr 15 2020, 17:20:14)
[GCC 7.5.0]
Python's architecture is 64bit
cfg.VERSION: 4.1.0
Running command: build
Running command: build_wx
wxWidgets build options: ['--wxpython', '--unicode', '--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']
/tmp/pip-build-SyOEQ1/wxPython/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
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for toolkit... gtk
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 std::wstring in <string>... yes
checking for std::istream... yes
checking for std::ostream... yes
checking for 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
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... 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... no
configure: WARNING: system jpeg library not found, will use built-in instead
checking lzma.h usability... no
checking lzma.h presence... no
checking for lzma.h... no
checking for jbg_dec_init in -ljbig... no
checking for LIBTIFF... not found via pkg-config
checking for tiffio.h... no
configure: WARNING: system tiff library not found, will use built-in instead
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... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
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
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.
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 1471, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File "/tmp/pip-build-SyOEQ1/wxPython/buildtools/build_wxwidgets.py", line 373, in main
"Error running configure")
File "/tmp/pip-build-SyOEQ1/wxPython/buildtools/build_wxwidgets.py", line 85, in exitIfError
raise builder.BuildError(msg)
BuildError
Finished command: build_wx (5.779s)
Finished command: build (5.779s)
Command '"/usr/bin/python" -u build.py build' failed with exit code 1.
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-SyOEQ1/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-vktmhL-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-SyOEQ1/wxPython/
Edité par DrM1173
|
Quentin PÂRIS |
Dimanche 17 Mai 2020 à 19:33
|
Quentin PÂRIS
|
Ok, seems that it needs all gtk developement dependency... What if you try to do as it is explained on this page?
|
DrM1173 |
Dimanche 17 Mai 2020 à 19:37
|
DrM1173
|
I am going to rollback to PlayOnLinux 4.3.4, I don't want to be a Beta tester for PlayOnLinux 4.4 with its python related bugs. I think that you should fix it so that PlayOnLinux 4.4 can also be run on Linux Mint 19.3/Ubuntu 18.04 LTS Bionic Beaver without problems.
Edité par DrM1173
|
Quentin PÂRIS |
Dimanche 17 Mai 2020 à 19:37
|
Quentin PÂRIS
|
|
islanddon |
Dimanche 17 Mai 2020 à 19:54
|
islanddon
|
As you wish.
myusername@MYMACHINE:~$ playonlinux
Looking for python3... 3.6.9 - Traceback (most recent call last):
File "/usr/share/playonlinux/python/check_python.py", line 3, in <module>
import wx
ModuleNotFoundError: No module named 'wx'
failed tests
Looking for python... 2.7.17 - selected
Traceback (most recent call last):
File "mainwindow.py", line 28, in <module>
import urllib.parse
ImportError: No module named parse
myusername@MYMACHINE:~$ python -m pip install wx
/usr/bin/python: No module named pip
myusername@MYMACHINE:~$ pip install -U wxPython
Command 'pip' not found, but can be installed with:
sudo apt install python-pip
myusername@MYMACHINE:~$ sudo apt-get install python-pip
[sudo] password for myusername:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libwine-development wine64-development
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
python-pip-whl
Recommended packages:
build-essential python-all-dev python-setuptools python-wheel
The following NEW packages will be installed:
python-pip python-pip-whl
0 upgraded, 2 newly installed, 0 to remove and 6 not upgraded.
Need to get 1,803 kB of archives.
After this operation, 2,528 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://mirror.math.princeton.edu/pub/ubuntu bionic-updates/universe amd64 python-pip-whl all 9.0.1-2.3~ubuntu1.18.04.1 [1,653 kB]
Get:2 http://mirror.math.princeton.edu/pub/ubuntu bionic-updates/universe amd64 python-pip all 9.0.1-2.3~ubuntu1.18.04.1 [151 kB]
Fetched 1,803 kB in 0s (5,187 kB/s)
Selecting previously unselected package python-pip-whl.
(Reading database ... 347586 files and directories currently installed.)
Preparing to unpack .../python-pip-whl_9.0.1-2.3~ubuntu1.18.04.1_all.deb ...
Unpacking python-pip-whl (9.0.1-2.3~ubuntu1.18.04.1) ...
Selecting previously unselected package python-pip.
Preparing to unpack .../python-pip_9.0.1-2.3~ubuntu1.18.04.1_all.deb ...
Unpacking python-pip (9.0.1-2.3~ubuntu1.18.04.1) ...
Setting up python-pip-whl (9.0.1-2.3~ubuntu1.18.04.1) ...
Setting up python-pip (9.0.1-2.3~ubuntu1.18.04.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
myusername@MYMACHINE:~$ pip install -U wxPython
Collecting wxPython
Downloading https://files.pythonhosted.org/packages/cb/4f/1e21d3c079c973ba862a18f3be73c2bbe2e6bc25c96d94df605b5cbb494d/wxPython-4.1.0.tar.gz (65.8MB)
100% |████████████████████████████████| 65.8MB 6.9kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named setuptools
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-blECvM/wxPython/
myusername@MYMACHINE:~$ pip install -U setuptools
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/ab/b5/3679d7c98be5b65fa5522671ef437b792d909cf3908ba54fe9eca5d2a766/setuptools-44.1.0-py2.py3-none-any.whl (583kB)
100% |████████████████████████████████| 583kB 725kB/s
Installing collected packages: setuptools
Successfully installed setuptools-44.1.0
myusername@MYMACHINE:~$ pip install -U wxPython
Collecting wxPython
Using cached https://files.pythonhosted.org/packages/cb/4f/1e21d3c079c973ba862a18f3be73c2bbe2e6bc25c96d94df605b5cbb494d/wxPython-4.1.0.tar.gz
Collecting pillow (from wxPython)
Downloading https://files.pythonhosted.org/packages/12/ad/61f8dfba88c4e56196bf6d056cdbba64dc9c5dfdfbc97d02e6472feed913/Pillow-6.2.2-cp27-cp27mu-manylinux1_x86_64.whl (2.1MB)
100% |████████████████████████████████| 2.1MB 220kB/s
Collecting six (from wxPython)
Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting numpy<1.17 (from wxPython)
Downloading https://files.pythonhosted.org/packages/3a/5f/47e578b3ae79e2624e205445ab77a1848acdaa2929a00eeef6b16eaaeb20/numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl (17.0MB)
100% |████████████████████████████████| 17.0MB 27kB/s
Building wheels for collected packages: wxPython
Running setup.py bdist_wheel for wxPython ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nwhSy1/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/tmpVRErjTpip-wheel- --python-tag cp27:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for wxPython
Running setup.py clean for wxPython
Failed to build wxPython
Installing collected packages: pillow, six, numpy, wxPython
Running setup.py install for wxPython ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nwhSy1/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-J7GTVV-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
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.
"/usr/bin/python" -u build.py build
Will build using: "/usr/bin/python"
2.7.17 (default, Apr 15 2020, 17:20:14)
[GCC 7.5.0]
Python's architecture is 64bit
cfg.VERSION: 4.1.0
Running command: build
Running command: build_wx
wxWidgets build options: ['--wxpython', '--unicode', '--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']
/tmp/pip-build-nwhSy1/wxPython/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
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for toolkit... gtk
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++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking whether we are using the Intel C++ compiler... no
checking whether we are using the Sun C++ compiler... no
configure: error: C++ compiler is needed to build wxWidgets
Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
File "build.py", line 1471, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File "/tmp/pip-build-nwhSy1/wxPython/buildtools/build_wxwidgets.py", line 373, in main
"Error running configure")
File "/tmp/pip-build-nwhSy1/wxPython/buildtools/build_wxwidgets.py", line 85, in exitIfError
raise builder.BuildError(msg)
BuildError
Finished command: build_wx (4.419s)
Finished command: build (4.419s)
Command '"/usr/bin/python" -u build.py build' failed with exit code 1.
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nwhSy1/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-J7GTVV-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-nwhSy1/wxPython/
myusername@MYMACHINE:~$
Any thoughts on how to proceed?
|
islanddon |
Dimanche 17 Mai 2020 à 20:06
|
islanddon
|
So I originally messed up my installation by just trying to install using apt-get instead of reading the instructions. But then I installed by running sudo apt-get install winehq-stable:i386 and then downloading the 4.3.4 deb and using the gdebi-gtk installer, then repeated using the 4.4 deb.
Edité par islanddon
|
DrM1173 |
Dimanche 17 Mai 2020 à 20:14
|
DrM1173
|
I see that the download version has been rolled back to 4.3.4.
Edité par DrM1173
|