Unable to compile wxPython Phoenix on OpenSuSE 15

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to compile wxPython Phoenix on OpenSuSE 15

Patrick Headley
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.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

build.log (31K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Unable to compile wxPython Phoenix on OpenSuSE 15

Robin Dunn


On Monday, July 16, 2018 at 8:09:22 AM UTC-7, 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 <a href="https://wxpython/2017-08-17-builds-for-linux-with-pip/index.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython%2F2017-08-17-builds-for-linux-with-pip%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFTZCh2wezM37uerFyyQ6ac1RraYw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython%2F2017-08-17-builds-for-linux-with-pip%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFTZCh2wezM37uerFyyQ6ac1RraYw&#39;;return true;">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.

--
Robin

 

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to compile wxPython Phoenix on OpenSuSE 15

Patrick Headley
In reply to this post by Patrick Headley
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 <a href="https://wxpython/2017-08-17-builds-for-linux-with-pip/index.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython%2F2017-08-17-builds-for-linux-with-pip%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFTZCh2wezM37uerFyyQ6ac1RraYw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython%2F2017-08-17-builds-for-linux-with-pip%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFTZCh2wezM37uerFyyQ6ac1RraYw&#39;;return true;">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.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

build.log (2M) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Unable to compile wxPython Phoenix on OpenSuSE 15

Patrick Headley
In reply to this post by Patrick Headley
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 <a href="https://wxpython/2017-08-17-builds-for-linux-with-pip/index.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython%2F2017-08-17-builds-for-linux-with-pip%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFTZCh2wezM37uerFyyQ6ac1RraYw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython%2F2017-08-17-builds-for-linux-with-pip%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFTZCh2wezM37uerFyyQ6ac1RraYw&#39;;return true;">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.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to compile wxPython Phoenix on OpenSuSE 15

Robin Dunn
In reply to this post by Patrick Headley
Try this:

* Unpack the wxPython-4.0.3.tar.gz

* Change into the wxPython-4.0.3 folder

* Run 

    python build.py build_wx

* 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 <a href="https://wxpython/2017-08-17-builds-for-linux-with-pip/index.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython%2F2017-08-17-builds-for-linux-with-pip%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFTZCh2wezM37uerFyyQ6ac1RraYw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython%2F2017-08-17-builds-for-linux-with-pip%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFTZCh2wezM37uerFyyQ6ac1RraYw&#39;;return true;">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.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to compile wxPython Phoenix on OpenSuSE 15

Robin Dunn
In reply to this post by Patrick Headley
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?

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.

 --
Robin


--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.