Migrating to pyobjc 2.0 from pyobjc 2.2

I accidentally installed pyobjc 2.2 with easy-install pyobjc and this causes problems: when I try to import it, I get an error

Incompatible library version: _objc.so requires version 10.0.0 or later, but libxml2.2.dylib provides version 9.0.0

I am not interested in fixing this, but all I want is my pyobjc 2.0 back. I tried uninstalling pyobjc 2.2 and reinstalling python, and I tried building 2.0 from the svn trunk (I get a lipo error: I can not understand the architecture [random filename] .out)

I suppose there should be a good way to do this, but it eludes me. Any insight would be appreciated.

Edit: Python 2.6 and OSX 10.5

+3
source share
2 answers

. 2.5 pyobjc /System/Library/Frameworks/Python.framework/Versions/2.5/...
pyobjc python 2.6 -

sudo port install py26-pyobjc2

!

0

Apple Python 2.5 10.5 Leopard, PyObjC 2.0, , - 2.2 , /Library/Python/2.5/site-packages. -, :

easy_install -m pyobjc==2.2

easy-install.pth , PyObjC 2.2. , Apple, ​​ .

Python PyObjC, easy_install , , , easy_install . :

easy_install pyobjc==2.0

, , subversion PyObjC 2.0 :

svn co http://svn.red-bean.com/pyobjc/branches/pyobjc-20x-branch/
+1

Source: https://habr.com/ru/post/1728218/


All Articles