Installing wxPython on Raspberry Pi 3

1,454 views
Skip to first unread message

Keep Secret

unread,
Apr 10, 2018, 11:22:49 AM4/10/18
to wxPython-users
 I managed to find - at last - a better install help for the RPi.

 From here : https://wiki.wxpython.org/BuildWxPythonOnRaspberryPi

But after the install with no problems I get:

in the help it states  sudo pip3 install wxPython-4.0.1-cp36-cp36m-linux_armv7l.whl
This is not on the system but

 sudo pip3 install wxPython-4.0.1-cp35-cp35m-linux_armv7l.whl   worked.

Statring the demo.py I got a menu (really good graphics!!) but the following:

i@hostb:~/wxPython-4.0.1/demo $ python demo.py

** (demo.py:2976): CRITICAL **: clearlooks_style_draw_box_gap: assertion 'height >= -1' failed

** (demo.py:2976): CRITICAL **: clearlooks_style_draw_box_gap: assertion 'height >= -1' failed

** (demo.py:2976): CRITICAL **: clearlooks_style_draw_box_gap: assertion 'height >= -1' failed



Since the GUI has suberb graphics I want to stay with wxPython.


Can someone assist here please???

Thanks

NT
 


sebastian lópez

unread,
Apr 10, 2018, 12:36:44 PM4/10/18
to wxPython-users
Hello

I've installed wxpython under raspbian and also I ran the demo.py and I've got no problem the only is that tooltip are not working, I recomend you to follow the steps posted in  https://wiki.wxpython.org/BuildWxPythonOnRaspberryPi

In my case I used:

$ sudo apt-get update

$ sudo apt-get install dpkg-dev build-essential libjpeg-dev libtiff-dev libsdl1.2-dev libgstreamer-plugins-base0.10-dev libnotify-dev freeglut3 freeglut3-dev libwebkitgtk-dev

$ cd wxPython-4.0.1

$ python3 build.py build bdist_wheel --jobs=1 --gtk2

$ cd ~/wxPython-4.0.1/dist

$ pip3 install wxPython-4.0.1-cp36-cp36m-linux_armv7l.whl

The compilation time takes to much, at least four hours, but it works

Please try again!

sebastian lópez

unread,
Apr 10, 2018, 12:50:49 PM4/10/18
to wxPython-users
If you prefer you can try the compiled file at

https://sites.google.com/site/sebas2print

and so remember to excecute this

$ sudo apt-get update

$ sudo apt-get install dpkg-dev build-essential libjpeg-dev libtiff-dev libsdl1.2-dev libgstreamer-plugins-base0.10-dev libnotify-dev freeglut3 freeglut3-dev libwebkitgtk-dev

and then install the compiled file in the above link

Tim Roberts

unread,
Apr 10, 2018, 4:25:28 PM4/10/18
to wxpytho...@googlegroups.com
Keep Secret wrote:

 sudo pip3 install wxPython-4.0.1-cp35-cp35m-linux_armv7l.whl   worked.

Statring the demo.py I got a menu (really good graphics!!) but the following:

i@hostb:~/wxPython-4.0.1/demo $ python demo.py

** (demo.py:2976): CRITICAL **: clearlooks_style_draw_box_gap: assertion 'height >= -1' failed
** (demo.py:2976): CRITICAL **: clearlooks_style_draw_box_gap: assertion 'height >= -1' failed
** (demo.py:2976): CRITICAL **: clearlooks_style_draw_box_gap: assertion 'height >= -1' failed


Since the GUI has suberb graphics I want to stay with wxPython.

Many wxWidgets trigger these GTK warnings.  Despite the word "CRITICAL", almost without exception, they can be ignored.

I wish the GTK guys would put these warnings in a log file somewhere so as not to alarm users.
-- 
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

Robin Dunn

unread,
Apr 11, 2018, 1:04:54 PM4/11/18
to wxPython-users
In this case it looks like the asserts are from the active theme, so it is yet another step away from actually being "CRITICAL".

--
Robin

  

Graham Brown

unread,
Mar 11, 2019, 1:27:11 PM3/11/19
to wxPython-users
Hi 
I have python 3.5.3 on RPi3B+. This install failed for me: I got

selecting libtiff5-dev instead of libtiff-dev
E: unable to locate libgstreamer-plugins-base0.10-dev
E: no package by glob libgstreamer-plugins-base0.10-dev
E:  ditto by regex libgstreamer-plugins-base0.10-dev

Am I out of date or just plain unlucky today?

As a Raspian noobie I really appreciate these forums.
Thank you, Graham.


On Wednesday, April 11, 2018 at 10:04:54 AM UTC-7, Robin Dunn wrote:
On Tuesday, April 10, 2018 at 1:25:28 PM UTC-7, Tim Roberts wrote:
Keep Secret wrote:

 sudo pip3 install wxPython-4.0.1-cp35-cp35m-linux_armv7l.whl   worked.

Statring the demo.py I got a menu (really good graphics!!) but the following:



** (demo.py:2976): CRITICAL **: clearlooks_style_draw_box_gap: assertion 'height >= -1' failed
** (demo.py:2976): CRITICAL **: clearlooks_style_draw_box_gap: assertion 'height >= -1' failed
** (demo.py:2976): CRITICAL **: clearlooks_style_draw_box_gap: assertion 'height >= -1' failed


Since the GUI has suberb graphics I want to stay with wxPython.

Many wxWidgets trigger these GTK warnings.  Despite the word "CRITICAL", almost without exception, they can be ignored.

I wish the GTK guys would put these warnings in a log file somewhere so as not to alarm users.
Reply all
Reply to author
Forward
0 new messages