I have set up an OpenSuSE 15 machine and wish to create a wxPython application. Previously, I did this with OpenSuSE 15 and Python 2.7 and wxPython3. Unfortunately, I crashed that machine and want to start over. Based on recommendations that I’ve been given, the correct version of wxPython Phoenix, GTK3 and Python3. So, I tried to perform the steps to create a wheel using instructions from https://wxpython/2017-08-17-builds-for-linux-with-pip/index.html. The process crashes with a message that wx/setup.h is missing.
In the step in the Web document regarding dependencies I installed to the best of my ability, all of the dependencies listed in the instructions. Unfortunately, OpenSuse has different package names. I did install the devel packages related to the packages I installed or confirmed were already installed. I also installed gcc-c++. Then, in addition to those packages I also tried installing the libldl-2_2_6, wxGTK3-3-devel and python-wxWidgets-3_0 packages after each failed attempt to create the wheel. Still have the same error about the wx/setup.h file missing.
I’ve included the output file. The error message is near the bottom, probably 30 to 40 lines up.
I write business applications and come from the Windows world for that. I am trying to learn Python and GUI application development at the same time. I’m not accustomed to compiling source code. Until now, everything I’ve used has come from a repository.
Please help me to get wxPython Phoenix working on OpenSuSE and Python3.
I have set up an OpenSuSE 15 machine and wish to create a wxPython application. Previously, I did this with OpenSuSE 15 and Python 2.7 and wxPython3. Unfortunately, I crashed that machine and want to start over. Based on recommendations that I’ve been given, the correct version of wxPython Phoenix, GTK3 and Python3. So, I tried to perform the steps to create a wheel using instructions from https://wxpython/2017-08-17-builds-for-linux-with-pip/index.html. The process crashes with a message that wx/setup.h is missing.
I’ve included the output file. The error message is near the bottom, probably 30 to 40 lines up.
I think maybe you’ve attached the wrong log file. It starts off with an error about wxPython-4.0.3.tar.gz missing and then goes on to what looks like it is checking if pip needs updated.
I would start over with a new empty virtual environment (the venv step) and then make sure that each step is successful before moving on the next. And just to be sure that the correct pip is executing, you may want to use python -m pip instead of just pip for the remaining steps. Don’t forget to activate that venv so the python being executed is the one in the venv.
Then, in addition to those packages I also tried installing the libldl-2_2_6, wxGTK3-3-devel and python-wxWidgets-3_0 packages after each failed attempt to create the wheel. Still have the same error about the wx/setup.h file missing.
Those would be the wrong versions of wxWidgets and wxPython anyway, and if anything may have just confused things even more.
···
On Monday, July 16, 2018 at 8:09:22 AM UTC-7, Patrick Headley wrote:
Not sure what happened with the log. I’ve attached the right one. I ran the same steps on an Ubuntu machine and it worked. It appears that there is one or more dependencies missing but I can’t tell from the log what it could be.
On Monday, July 16, 2018 at 9:09:22 AM UTC-6, Patrick Headley wrote:
I have set up an OpenSuSE 15 machine and wish to create a wxPython application. Previously, I did this with OpenSuSE 15 and Python 2.7 and wxPython3. Unfortunately, I crashed that machine and want to start over. Based on recommendations that I’ve been given, the correct version of wxPython Phoenix, GTK3 and Python3. So, I tried to perform the steps to create a wheel using instructions from https://wxpython/2017-08-17-builds-for-linux-with-pip/index.html. The process crashes with a message that wx/setup.h is missing.
In the step in the Web document regarding dependencies I installed to the best of my ability, all of the dependencies listed in the instructions. Unfortunately, OpenSuse has different package names. I did install the devel packages related to the packages I installed or confirmed were already installed. I also installed gcc-c++. Then, in addition to those packages I also tried installing the libldl-2_2_6, wxGTK3-3-devel and python-wxWidgets-3_0 packages after each failed attempt to create the wheel. Still have the same error about the wx/setup.h file missing.
I’ve included the output file. The error message is near the bottom, probably 30 to 40 lines up.
I write business applications and come from the Windows world for that. I am trying to learn Python and GUI application development at the same time. I’m not accustomed to compiling source code. Until now, everything I’ve used has come from a repository.
Please help me to get wxPython Phoenix working on OpenSuSE and Python3.
I saw where someone else asked you if you would post a wheel on the website for Centos, citing the lack of ability to troubleshoot due to the work folders being deleted. Any chance you could perform a build using OpenSuSE 15 and either post the wheel or let me know what’s missing?
···
On Monday, July 16, 2018 at 9:09:22 AM UTC-6, Patrick Headley wrote:
I have set up an OpenSuSE 15 machine and wish to create a wxPython application. Previously, I did this with OpenSuSE 15 and Python 2.7 and wxPython3. Unfortunately, I crashed that machine and want to start over. Based on recommendations that I’ve been given, the correct version of wxPython Phoenix, GTK3 and Python3. So, I tried to perform the steps to create a wheel using instructions from https://wxpython/2017-08-17-builds-for-linux-with-pip/index.html. The process crashes with a message that wx/setup.h is missing.
In the step in the Web document regarding dependencies I installed to the best of my ability, all of the dependencies listed in the instructions. Unfortunately, OpenSuse has different package names. I did install the devel packages related to the packages I installed or confirmed were already installed. I also installed gcc-c++. Then, in addition to those packages I also tried installing the libldl-2_2_6, wxGTK3-3-devel and python-wxWidgets-3_0 packages after each failed attempt to create the wheel. Still have the same error about the wx/setup.h file missing.
I’ve included the output file. The error message is near the bottom, probably 30 to 40 lines up.
I write business applications and come from the Windows world for that. I am trying to learn Python and GUI application development at the same time. I’m not accustomed to compiling source code. Until now, everything I’ve used has come from a repository.
Please help me to get wxPython Phoenix working on OpenSuSE and Python3.
That will build wxWidgets and put the results in build/wxbld, double-check that there is a setup.h file in build/wxbld/lib/wx/include/gtk3-unicode-3.0/wx
Now run this to build wxPython, saving the output to build.log:
python build.py build_py --verbose 2>&1 | tee build.log
If that fails then send that log file.
If it succeeds then you can build the wheel with one more command, and the wheel file will be placed in the dist folder:
python build.py bdist_wheel
···
–
Robin
On Monday, July 16, 2018 at 7:06:09 PM UTC-7, Patrick Headley wrote:
Not sure what happened with the log. I’ve attached the right one. I ran the same steps on an Ubuntu machine and it worked. It appears that there is one or more dependencies missing but I can’t tell from the log what it could be.
On Monday, July 16, 2018 at 9:09:22 AM UTC-6, Patrick Headley wrote:
I have set up an OpenSuSE 15 machine and wish to create a wxPython application. Previously, I did this with OpenSuSE 15 and Python 2.7 and wxPython3. Unfortunately, I crashed that machine and want to start over. Based on recommendations that I’ve been given, the correct version of wxPython Phoenix, GTK3 and Python3. So, I tried to perform the steps to create a wheel using instructions from https://wxpython/2017-08-17-builds-for-linux-with-pip/index.html. The process crashes with a message that wx/setup.h is missing.
In the step in the Web document regarding dependencies I installed to the best of my ability, all of the dependencies listed in the instructions. Unfortunately, OpenSuse has different package names. I did install the devel packages related to the packages I installed or confirmed were already installed. I also installed gcc-c++. Then, in addition to those packages I also tried installing the libldl-2_2_6, wxGTK3-3-devel and python-wxWidgets-3_0 packages after each failed attempt to create the wheel. Still have the same error about the wx/setup.h file missing.
I’ve included the output file. The error message is near the bottom, probably 30 to 40 lines up.
I write business applications and come from the Windows world for that. I am trying to learn Python and GUI application development at the same time. I’m not accustomed to compiling source code. Until now, everything I’ve used has come from a repository.
Please help me to get wxPython Phoenix working on OpenSuSE and Python3.
In that case I already had the VM set up and working, so it was just a matter of adding a couple lines to do a Python 3.7 build. For OpenSuSE I would be starting from scratch, and I haven’t use Open SuSE for fifteen years or more so there would be a learning curve too. I just don’t have time for that right now.
···
On Monday, July 16, 2018 at 7:09:27 PM UTC-7, Patrick Headley wrote:
I saw where someone else asked you if you would post a wheel on the website for Centos, citing the lack of ability to troubleshoot due to the work folders being deleted. Any chance you could perform a build using OpenSuSE 15 and either post the wheel or let me know what’s missing?