Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.2 PyPI package doesn't include the sources #21

Open
GoogleCodeExporter opened this issue Jul 9, 2015 · 3 comments
Open

0.2 PyPI package doesn't include the sources #21

GoogleCodeExporter opened this issue Jul 9, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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.

Original comment by [email protected] on 24 Feb 2014 at 11:05

@GoogleCodeExporter
Copy link
Author

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.

Original comment by [email protected] on 24 Feb 2014 at 1:52

@GoogleCodeExporter
Copy link
Author

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 comment by [email protected] on 25 Feb 2014 at 10:34

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

No branches or pull requests

1 participant