-
Notifications
You must be signed in to change notification settings - Fork 66
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
Installation fails on pkgconfig AttributeError #158
Comments
Thanks for the report. My initial thoughts are:
On the otherhand, this is perhaps another valid case for falling back to building against the bundled lz4, so I'm not entirely opposed. |
A better fix would be to change the import around line 16 to import the try:
import pkgconfig.installed as pkgconfig_installed
except ImportError:
# pkgconfig is not installed. It will be installed by setup_requires.
pass
... I won't get chance to add a commit for this until the weekend, so if you had time to make a PR, that would be cool :) |
Thanks for bearing with me on this out of scope issue - I very much agree that the other software is breaking things in a really bad way (I've reported it, so I hope that they'll fix it). But I also really appreciate you considering a fall back here :-) You're right that my solution wasn't really the best way to go about fixing it - I'll open a PR that implements your suggestion |
Addressed in #160 |
When installing lz4 via pip with python 3.6, I received the following AttributeError related to
pkgconfig
:In trying to reproduce it, I found the issue is caused by some third party software which sets the
PYTHONPATH
to a directory which includes an emptypkgconfig
directory... I realize that this is a bit of a silly issue, and is mostly unrelated to lz4 (I will try to get the third party software to fix it), but I imagine that other software could also cause this same issue.So I would argue that it's worth addressing. I think it can be addressed with a small modification of the lz4
setup.py
by adding around line 25:I'm happy to open a PR if you'd like. Please let me know what you think. Thanks!
The text was updated successfully, but these errors were encountered: