cld icon indicating copy to clipboard operation
cld copied to clipboard

Installation on OS 10.10 with Python 3.3 failed

Open Stophface opened this issue 10 years ago • 1 comments

I want to install the chrome language detection (cld) https://github.com/mzsanford/cld for Python. I am working on OS X 10.10 with Python 3.3, installed through a download of the .dmg from the Pythonwebsite.

What did I do so far?

  1. Downloaded and updated xCode to the most recent version
  2. Command Line Tools for xCode installed with that line $ xcode-select –install
  3. Downloaded the GNU, C and C++ Compilerhere http://hpc.sourceforge.net and installed via $ sudo tar xvf gcc-4.9-bin.tar -C /
  4. Install the libcld C++ library following the instructions on https://github.com/mzsanford/cld (I installed it from source, not with homebrew)!
  5. Installed the pkg-config package $ git clone git://anongit.freedesktop.org/pkg-config

Then I followed the steps described to install the Pythonbindings:

$ git clone http://github.com/mzsanford/cld.git

$ cd cld/ports/python

$ make install # This will prompt for your password

Which gave me this error message:

python -u setup.py build
Traceback (most recent call last):
File "setup.py", line 17, in <module>
**pkgconfig('cld'))
TypeError: __init__() keywords must be strings
make: *** [build] Error 1`

I also downloaded the source and tried to install it with python3.3 setup.py which gives me this

 pkg-config has not been found but this setup script relies on it.

Well, I installed id, but it seems that it does not find it. Might that be a problem that it installed it to the Python the system is using (which would 2.7) while I use Python3.3? Or other suggestions?

Stophface avatar Jan 13 '15 11:01 Stophface

I had not worked on Python 3 support. I just added a version of it to the py3 branch. Please try it out and see if it works for you.

mzsanford avatar Jun 08 '18 20:06 mzsanford