Build failure on Ubuntu

Building and installing on Xubuntu 12.04 fails in the following way. Any suggestion about what could be wrong? I applied the 2.9.4 patch before building. The init.py files are indeed missing.

bruce@bruce-desktop:~/Downloads/wxPython-src-2.9.4.0/wxPython$ sudo python2.7 build-wxpython.py --build_dir=…/bld --install > mylog.txt

package init file ‘wx/lib/pubsub/pubsub2/init.py’ not found (or not a regular file)

package init file ‘wx/tools/XRCed/plugins/init.py’ not found (or not a regular file)

warning: wx_install: path file ‘/usr/local/lib/python2.7/dist-packages/wx-2.9.4-gtk2.pth’ not created

(I deleted from this listing duplicate lines about the missing files.)

Try adding an empty __init__.py at both of those locations. I think they are not intended to be actual Python packages, which is why the __init__.py is missing, and to be loaded dynamically instead. However we've seen a similar issue with the pubsub1 folder from things like py2exe which get confused when something looks like a package but has no init module, so I expect something similar is happening from distutils or perhaps setuptools in your case.

···

On 1/10/13 6:49 PM, Bruce Sherwood wrote:

Building and installing on Xubuntu 12.04 fails in the following way. Any
suggestion about what could be wrong? I applied the 2.9.4 patch before
building. The __init__.py files are indeed missing.

bruce@bruce-desktop:~/Downloads/wxPython-src-2.9.4.0/wxPython$ sudo
python2.7 build-wxpython.py --build_dir=../bld --install > mylog.txt
package init file 'wx/lib/pubsub/pubsub2/__init__.py' not found (or not
a regular file)
package init file 'wx/tools/XRCed/plugins/__init__.py' not found (or not
a regular file)
warning: wx_install: path file
'/usr/local/lib/python2.7/dist-packages/wx-2.9.4-gtk2.pth' not created

(I deleted from this listing duplicate lines about the missing files.)

--
Robin Dunn
Software Craftsman

Do you have the missing files in wxPython/bin/wx ?

···

Am Freitag, 11. Januar 2013 03:49:49 UTC+1 schrieb Bruce Sherwood:

Building and installing on Xubuntu 12.04 fails in the following way. Any suggestion about what could be wrong? I applied the 2.9.4 patch before building. The init.py files are indeed missing.

bruce@bruce-desktop:~/Downloads/wxPython-src-2.9.4.0/wxPython$ sudo python2.7 build-wxpython.py --build_dir=…/bld --install > mylog.txt

package init file ‘wx/lib/pubsub/pubsub2/init.py’ not found (or not a regular file)

package init file ‘wx/tools/XRCed/plugins/init.py’ not found (or not a regular file)

warning: wx_install: path file ‘/usr/local/lib/python2.7/dist-packages/wx-2.9.4-gtk2.pth’ not created

(I deleted from this listing duplicate lines about the missing files.)