3

I am trying to install python bindings for the enchant library (pyenchant), according to the readme, it should be as simple as running python setup.py install But when I try that, I get this error:

OSError: [Errno 2] No such file or directory: './tools/pyenchant-bdist-osx-sources/build/lib'

Can someone tell me what to do? I have tried google, but with no luck.

PS: I have this same question on serverfault, as I thought that was the most appropriate place for it, but with little help there, I am now trying here.

Kijewski
  • 25,517
  • 12
  • 101
  • 143
Mathias Nielsen
  • 1,560
  • 1
  • 17
  • 31

2 Answers2

5

You need to install the enchant library first. On the download page pyenchant indicates that it is a prerequisite if you are building from source. (There are pre-build binaries listed for python 2.5 and 2.6 as well.)

I just installed enchant via homebrew on OS X 10.7 and then pyenchant installed without a problem.

If you decide to use homebrew for installing enchant, note that I had to brew install pkg-config separate as the recipe doesn't seem to install it as a dependancy (and fails as a result).

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Mark Gemmill
  • 5,889
  • 2
  • 27
  • 22
0

I believe you'll need to install the Apple Developer Tools (XCode) for your Mac OS X version.

If you haven't done so...

cheers James

James Mills
  • 18,669
  • 3
  • 49
  • 62