Symbol not found: __PyCodeInfo_GetIncrementalDecoder

After upgrading the version of Python on my Mac, I immediately got the above error when attempting to run a Python script. You can quickly test by typing

python
import io

and you’ll get the error

Quick digging around on Google revealed what was happening. When a new version of Python is installed, you may need to tell bash to reset the ‘cached’ location to Python. There’s two ways of achieving that

1) Log out and then log back in
or
2) At the terminal prompt, type

hash -r python
Advertisements

About Jon Giffard

Husband, father, motorcyclist , amateur runner ( on hold due to knee injury ) - now trying not to drown whilst swimming. Product Manager at Webroot Not available for yodelling. Please do not ask.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s