Thanks to visit codestin.com
Credit goes to github.com

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

Installation on OS 10.10 with Python 3.3 failed #29

@Stophface

Description

@Stophface

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions