python 2.7 - I'm having trouble installing wxPython on OS X 10.10.2 -


the wxpython installation instructions say:

be sure download image matches version of python want use with.

well, gee willickers. have system install of python2.7, , have own install of python2.7. how tell wxpython install in python2.7 , not system python2.7?

next, tried install source. instructions in wxpython-src-3.0.2.0/docs/readme.txt say:

for installation information, please see install.txt file in docs subdirectory appropriate platform use, e.g. docs/msw/install.txt.

and, instructions in wxpython-src-3.0.2.0/docs/osx/install.txt say:

in wxwidgets 3, cocoa recommended library.  ... ...  # build library cocoa (wxwidgets 2.9.0 , later) mkdir build-cocoa-debug cd build-cocoa-debug ../configure --enable-debug make # build samples , demos cd samples; make;cd .. cd demos;   make;cd .. 

no $ make install? in case, make ended these problems:

../src/osx/webview_webkit.mm:392:30: warning: incompatible pointer types sending       'webviewuidelegate *' parameter of type 'id<wkuidelegate>'       [-wincompatible-pointer-types]     [m_webview setuidelegate:uidelegate];                              ^~~~~~~~~~ ../src/osx/webview_webkit.mm:464:34: warning: 'wkpreferences' may not respond       'setusespagecache:'         [[m_webview preferences] setusespagecache:no];          ~~~~~~~~~~~~~~~~~~~~~~~ ^ ../src/osx/webview_webkit.mm:466:34: warning: 'wkpreferences' may not respond       'setusespagecache:'         [[m_webview preferences] setusespagecache:yes];          ~~~~~~~~~~~~~~~~~~~~~~~ ^ ../src/osx/webview_webkit.mm:936:25: error: cannot initialize variable of type       'webbackforwardlist *' rvalue of type 'wkbackforwardlist *'     webbackforwardlist* history = [m_webview backforwardlist];                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/osx/webview_webkit.mm:954:25: error: cannot initialize variable of type       'webbackforwardlist *' rvalue of type 'wkbackforwardlist *'     webbackforwardlist* history = [m_webview backforwardlist];                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings , 2 errors generated. make: *** [webviewdll_osx_webview_webkit.o] error 1 $ 

osx 10.10.2

edit:

the install docs in source distribution talk avoiding installing wxpython in system python, went ahead , used binary installer python2.7 (the .dmg file), trusting wouldn't install in system python, , appears have installed in python2.7:

~$ python  python 2.7.9 (v2.7.9:648dcafa7e5f, dec 10 2014, 10:10:46)  [gcc 4.2.1 (apple inc. build 5666) (dot 3)] on darwin type "help", "copyright", "credits" or "license" more information. >>> import wx >>>  

my system python has different minor version:

$ /system/library/frameworks/python.framework/versions/2.7/bin/python2.7 -v python 2.7.6 

although, python2.7 happens first python in path, maybe installer chose first python2.7 found. if remember correctly, when install own python2.7, installer adjusts path environment variable (in ~/.bash_profile) put directory containing python2.7 ahead of directory contains system's python.

so if did regular install own python2.7, installing wxpython find python2.7 rather system's python2.7.


Comments

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -