Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Installation on OS 10.10 with Python 3.3 failed #29

Open
Stophface opened this issue Jan 13, 2015 · 1 comment
Open

Installation on OS 10.10 with Python 3.3 failed #29

Stophface opened this issue Jan 13, 2015 · 1 comment

Comments

@Stophface
Copy link

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?

@mzsanford
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants