I'm running a python
script that originally worked fine before I upgraded my OSX to El Capitan
. The problem I now have is ValueError: unichr() arg not in range(0x10000) (narrow Python build)
occurs, which is caused by c = unichr(int(c, 16))
. A similar post suggests that python 2.7
needs to be rebuilt to allow wider character ranges. I'd like to know the simplest way of doing this.
I understand that Python will probably need to be rebuilt and reconfigured to allow this. I notice numerous different Python installations in my /usr/bin
, so before I go ahead and do any damage, does anybody have a step by step guide? Will rebuilding also affect the modules that are currently installed?