i trying install wxpython 3.0.2.0 source. when run $ sudo python setup.py install, following error message (part of output shown). system 32-bit edubuntu 12.04.
copying wx/tools/editra/todo -> /usr/local/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/tools/editra running install_egg_info writing /usr/local/lib/python2.7/dist-packages/wx-3.0-gtk2/wxpython-3.0.2.0.egg-info warning: wx_install: path file '/usr/local/lib/python2.7/dist-packages/wx-3.0-gtk2.pth' not created i went on ahead run python , try import module. error message get.
>>> import wx traceback (most recent call last): file "<stdin>", line 1, in <module> file "wx/__init__.py", line 46, in <module> del wx nameerror: name 'wx' not defined thanks in advance.
i found way install wxpython 3.0.0 source using checkinstall. first of do:
sudo apt-get install checkinstall
after download wxpython source code, extract directory , create a directory in source code folder. assuming source code extracted ~/wxpython-src-3.0.0/
mkdir bld
sudo checkinstall -y --pkgname=wxpython --pkgversion=3.0.0 --pkgrelease=1 --pkglicense=wxwidgets --pkgsource=http://www.wxpython.org/ --maintainer=reingart@gmail.com --requires=python-wxversion,python2.7,python -d python build-wxpython.py --build_dir=../bld --install
this creates debian package before installing wxpython.
Comments
Post a Comment