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
package doesn't install lib_build.h
#108
Comments
It looks like your installation of cffi is broken or corrupted somehow, which causes the xattr import to fail and fall back to trying to build the extension which won't work. lib_build.h is only used when building the extension. There's nothing really that can be done from xattr's perspective here. |
# Pull Request Check List Resolves: #6928 <!-- This is just a reminder about the most common mistakes. Please make sure that you tick all *appropriate* boxes. But please read our [contribution guide](https://python-poetry.org/docs/contributing/) at least once, it will save you unnecessary review cycles! --> - [ ] Added **tests** for changed code. - [ ] Updated **documentation** for changed code. <!-- If you have *any* questions to *any* of the points above, just **submit and ask**! This checklist is here to *help* you, not to deter you from contributing! --> Bump `xattr` version to `0.10.0`. This fixes #6891, which is not a problem with the user's environment as suggested by the maintainer of xattr at xattr/xattr#108, but in fact the problem of the package which was fixed by xattr/xattr#106. Looking at the [changes in the version bump](xattr/xattr@v0.9.9...v0.10.0), there does not seem to be any significant changes other than shabang xattr/xattr#106. Co-authored-by: Moonsik Park <moonsik.park@estsoft.com> Co-authored-by: Bartosz Sokorski <b.sokorski@gmail.com>
update lockfile. pip install --no-input everywhere (python-poetry#6966) This is an extension of python-poetry#6724. I think `pip install` invoked by poetry should never ask for user input. Motivation is that it happened to myself and a number of colleagues many times that poetry got seemingly stuck while it was just waiting for a user input because of a private pypi repository that needed authentication. I hope this is a valuable contribution to a tool I like a lot and would like to use more and more :) docs: update Windows cache path to match 1.2 Bump `xattr` version to `0.10.0`. (python-poetry#7005) Resolves: python-poetry#6928 <!-- This is just a reminder about the most common mistakes. Please make sure that you tick all *appropriate* boxes. But please read our [contribution guide](https://python-poetry.org/docs/contributing/) at least once, it will save you unnecessary review cycles! --> - [ ] Added **tests** for changed code. - [ ] Updated **documentation** for changed code. <!-- If you have *any* questions to *any* of the points above, just **submit and ask**! This checklist is here to *help* you, not to deter you from contributing! --> Bump `xattr` version to `0.10.0`. This fixes python-poetry#6891, which is not a problem with the user's environment as suggested by the maintainer of xattr at xattr/xattr#108, but in fact the problem of the package which was fixed by xattr/xattr#106. Looking at the [changes in the version bump](xattr/xattr@v0.9.9...v0.10.0), there does not seem to be any significant changes other than shabang xattr/xattr#106. Co-authored-by: Moonsik Park <moonsik.park@estsoft.com> Co-authored-by: Bartosz Sokorski <b.sokorski@gmail.com> tests: add coverage to `poetry install` update lockfile. [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.2.0 → v3.2.2](asottile/pyupgrade@v3.2.0...v3.2.2) - [github.com/hadialqattan/pycln: v2.1.1 → v2.1.2](hadialqattan/pycln@v2.1.1...v2.1.2)
update lockfile. pip install --no-input everywhere (python-poetry#6966) This is an extension of python-poetry#6724. I think `pip install` invoked by poetry should never ask for user input. Motivation is that it happened to myself and a number of colleagues many times that poetry got seemingly stuck while it was just waiting for a user input because of a private pypi repository that needed authentication. I hope this is a valuable contribution to a tool I like a lot and would like to use more and more :) docs: update Windows cache path to match 1.2 Bump `xattr` version to `0.10.0`. (python-poetry#7005) Resolves: python-poetry#6928 <!-- This is just a reminder about the most common mistakes. Please make sure that you tick all *appropriate* boxes. But please read our [contribution guide](https://python-poetry.org/docs/contributing/) at least once, it will save you unnecessary review cycles! --> - [ ] Added **tests** for changed code. - [ ] Updated **documentation** for changed code. <!-- If you have *any* questions to *any* of the points above, just **submit and ask**! This checklist is here to *help* you, not to deter you from contributing! --> Bump `xattr` version to `0.10.0`. This fixes python-poetry#6891, which is not a problem with the user's environment as suggested by the maintainer of xattr at xattr/xattr#108, but in fact the problem of the package which was fixed by xattr/xattr#106. Looking at the [changes in the version bump](xattr/xattr@v0.9.9...v0.10.0), there does not seem to be any significant changes other than shabang xattr/xattr#106. Co-authored-by: Moonsik Park <moonsik.park@estsoft.com> Co-authored-by: Bartosz Sokorski <b.sokorski@gmail.com> tests: add coverage to `poetry install` update lockfile. [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.2.0 → v3.2.2](asottile/pyupgrade@v3.2.0...v3.2.2) - [github.com/hadialqattan/pycln: v2.1.1 → v2.1.2](hadialqattan/pycln@v2.1.1...v2.1.2)
update lockfile. pip install --no-input everywhere (python-poetry#6966) This is an extension of python-poetry#6724. I think `pip install` invoked by poetry should never ask for user input. Motivation is that it happened to myself and a number of colleagues many times that poetry got seemingly stuck while it was just waiting for a user input because of a private pypi repository that needed authentication. I hope this is a valuable contribution to a tool I like a lot and would like to use more and more :) docs: update Windows cache path to match 1.2 Bump `xattr` version to `0.10.0`. (python-poetry#7005) Resolves: python-poetry#6928 <!-- This is just a reminder about the most common mistakes. Please make sure that you tick all *appropriate* boxes. But please read our [contribution guide](https://python-poetry.org/docs/contributing/) at least once, it will save you unnecessary review cycles! --> - [ ] Added **tests** for changed code. - [ ] Updated **documentation** for changed code. <!-- If you have *any* questions to *any* of the points above, just **submit and ask**! This checklist is here to *help* you, not to deter you from contributing! --> Bump `xattr` version to `0.10.0`. This fixes python-poetry#6891, which is not a problem with the user's environment as suggested by the maintainer of xattr at xattr/xattr#108, but in fact the problem of the package which was fixed by xattr/xattr#106. Looking at the [changes in the version bump](xattr/xattr@v0.9.9...v0.10.0), there does not seem to be any significant changes other than shabang xattr/xattr#106. Co-authored-by: Moonsik Park <moonsik.park@estsoft.com> Co-authored-by: Bartosz Sokorski <b.sokorski@gmail.com> tests: add coverage to `poetry install` update lockfile. [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.2.0 → v3.2.2](asottile/pyupgrade@v3.2.0...v3.2.2) - [github.com/hadialqattan/pycln: v2.1.1 → v2.1.2](hadialqattan/pycln@v2.1.1...v2.1.2) update lockfile. update lockfile.
This is still causing issues for me, I'm using an M2 Mac. Tried reinstalling xattr, cffi as well as my entire python environment but
Installed xattr version: 0.10.0 Any ideas? |
If you post full instructions to reproduce your issue, particularly how you installed python and what commands you ran to get your installation into this state, I will look into it. Is there a reason why you are attempting to use 0.10.0 instead of 0.10.1? |
I am using poetry on M1 mac os Sonoma. Tried reinstalling poetry, xattr, cffi as well as my entire python environment but python -c "import xattr" still fails: I am using xattr 0.10.1
Please help To recreate this install pyenv using homebrew. Install python 3.8.17 in pyenv. Set python 3.8.17 in pyenv as global. then install poetry 1.2.0 using python 3.8.17 in pyenv. Try doing poetry add flaml==1.0.8 or python -c "import xattr" |
I don't know why you're having an issue with Python 3.8, but it does seem like Python 3.12 causes some serious problems with the build as it has removed a bunch of functionality that is required by the current build process and cffi version. Will probably be a few days at least until that can be sorted out, unless someone else wants to contribute. |
Even I am not sure but i see there is some issue with this while using poetry. Can you help to understand what could be the root cause.? Are you able to replicate the issue. ? |
I have no experience using poetry, you may want to ask them. My top priority will be addressing Python 3.12 support, but I have limited time to work on it right now. If anyone has the experience and time to contribute I'd be happy to review PRs. I will look into poetry and Python 3.8 after Python 3.12 is supported, whenever that happens. |
Sorry for the late response, will try to put more detailed steps to reproduce tomorrow, but basically I think it was:
I sort of got it to work by manually putting the missing .h and .c files into the appropriate site_packages directory, but I was still left unable to use poetry. Used a manual virtualenv + pip for now but that is not really a good permanent solution for me. |
It sounds like poetry is part of the problem in all of these cases, perhaps you should bring it up with that project |
I cut a new release that removes usage of deprecated setuptools/distutils/cffi features and should at least have a different error message if the extension wasn't installed. It builds and installs correctly with Python 3.12 on all platforms and architectures that cibuildwheel works with. |
Installing
xattr
on a fresh python environment on MacOS 12.6 works but library throws an error on import. It breaks poetry which has a dependency on xattr (see this issue)Steps to reproduce (on a fresh python 3.8.13 environment):
pip install xattr
Any idea what could be wrong?
The text was updated successfully, but these errors were encountered: