You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. pip install chromium-compact-language-detector==0.2
What is the expected output? What do you see instead?
"The `cld` C++ library is absent from this system. Please install it."
What version of the product are you using? On what operating system?
Version 0.2
Please provide any additional information below.
This problem is mentioned in issue #13, but wasn't fixed.
Because of it, using 0.2 on Heroku isn't possible. 0.031415 works well, because
it includes all the necessary source files.
Full pip output:
$ pip install chromium-compact-language-detector==0.2
Downloading/unpacking chromium-compact-language-detector==0.2
Downloading chromium_compact_language_detector-0.2.tar.gz
Running setup.py egg_info for package chromium-compact-language-detector
`pkg-config --libs --cflags cld` returns in error:
Package cld was not found in the pkg-config search path.
Perhaps you should add the directory containing `cld.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cld' found
The `cld` C++ library is absent from this system. Please install it.
Complete output from command python setup.py egg_info:
`pkg-config --libs --cflags cld` returns in error:
Package cld was not found in the pkg-config search path.
Perhaps you should add the directory containing `cld.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cld' found
The `cld` C++ library is absent from this system. Please install it.
Original issue reported on code.google.com by [email protected] on 21 Feb 2014 at 11:41
The text was updated successfully, but these errors were encountered:
With 0.2, you have to first install the CLD libs before installing the Python
bindings.
But, you may want to upgrade to CLD2 (there are a number of improvements to the
language detection; see
http://blog.mikemccandless.com/2013/08/a-new-version-of-compact-language.html
). That version also requires first building CLD then building the Python
bindings.
Is there a reason for not including the source files in the PyPI package,
though? This complicates things for a Heroku deployment, where it's not easy
(I'm not sure if it's even possible) to install libs separately from pip
packages.
Is there a PyPI package for cld2? I didn't see one.
Unfortunately, CLD2 and this project (Python bindings on top of CLD2) are now
two separate projects.
CLD2 is here: https://code.google.com/p/cld2
Technically, it would be possible and likely not so hard to create a single tgz
that includes sources for both CLD2 and these Python bindings (like I did
originally in version 0.031415), but really since these are now separate
projects I don't plan on doing that here.
Original issue reported on code.google.com by
[email protected]
on 21 Feb 2014 at 11:41The text was updated successfully, but these errors were encountered: