-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[ci] Python tests failing with error about numpy image #4204
Comments
I'm thinking about how we had a similar issue solved by #4054, where lag in updating the anaconda default channels caused some incompatible versions to be found in CI. And I remember the comment that we shouldn't MIX different channels because it can make environment solves a lot slower: #4054 (review) @StrikerRUS do you think we should change CI jobs to use ONLY |
I believe the reason of the error is in the following line:
This line is presented in red CI jobs and is not presented in green ones.
Also, we should avoid mixing channels because of different policies of native libraries handling: conda-forge/graphviz-feedstock#35 (comment). I would prefer installing graphviz via |
I feel that Any way, can you clarify...do you think that this issue would be solved by switching to |
Yeah, I wish I knew some statistics about the channels usage.
Sorry, I can't find this. I did search for
That my comment was about this issue. Install graphviz by another metfod -> drop |
Yes, I meant that line in the Thanks for clarifying. I'll experiment with other ways to install |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Description
For the last week or so, I have seen a few Python CI jobs fail with an error like the following
I see the same stacktrace (or very similar) for all test modules, not just
test_sklearn.py
I most recently saw this on the
sdist (macOS-latest, Python 3.9)
on GitHub Actions (https://github.com/microsoft/LightGBM/pull/4203/checks?check_run_id=2382402602).Reproducible example
This has been happening sporadically on CI jobs. In every case where I've encountered it, I have found that re-running the job fixes it.
Environment info
LightGBM continuous integration.
Additional Comments
I have seen this error on several different PRs, most of which did not touch the Python package, so I do not think it is related to any one open PR. For example, the build linked above is from #4203, which only has R package changes.
I see one similar issue on
numpy
's issue tracker: numpy/numpy#18663. In that issue, the author claimed that this error was solved by preferringnumpy
fromconda-forge
instead of Anaconda default channels.I do see that the most recent version of
numpy
(1.20.2) was uploaded to conda-forge 21 days ago (https://anaconda.org/conda-forge/numpy)That version has not made it to the defaults channel yet. The last update of
numpy
there was version 1.19.2 more than 4 months ago (https://anaconda.org/anaconda/numpy).I didn't mark this
blocking
since it seems to only happen occasionally.The text was updated successfully, but these errors were encountered: