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
Using TBB with numba fails with pip install, works with apt install #7148
Comments
@theahura Thanks for the report. Is the issue perhaps this: #6108 (comment) ? |
Which |
@esc that version did not fix any issues. @stuartarchibald seems like that could be related. I'm using a virtualenv, as the original post shows. I'm a bit confused by the linked comment's suggestion, however. It seems like you're saying the libtbb file isn't in the right place. Where is the file located currently? (I see a bunch of libtbb.so files in env/lib). |
I'm not sure anyone knows for certain. During our issue triage yesterday we discussed this and apparently the location of where to place libraries is a compile-time flag of the python interpreter. This means, the location will most likely be different depending on who compiled your python and thus, where you obtained it from. Another issue, is that https://github.com/numba/numba/pulls?q=is%3Aopen+is%3Apr+milestone%3A%22Numba+0.54+RC%22 Incidentally, we actually have a script that unpacks the wheel we generate and removes So, what I would recommend perhaps, is to point the Hope that helps! |
I'm so sorry, I posted the wrong link, the correct one is here: https://discuss.python.org/t/how-to-disable-vendoring-of-libraries-in-wheel/5010 |
This issue is marked as stale as it has had no activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with any updates and confirm that this issue still needs to be addressed. |
Closing this issue as the question appears to be answered and no further feedback has been received. |
FYI: this approach seems to break with newer versions of numba. I can confirm that it works with 0.52.0, but not with 0.55.1 |
Question: with "this approach", you mean the approach of |
Yes
Yes it's broken. I think it's a versioning thing, apt has tbb2020 but I believe numba is looking for tbb2021. Pip tbb doesn't work at all, at least I couldn't get it working |
W/o seeing the exact errors, this is probably correct.
This may be worth opening a new issue about. If |
This minimal example still replicates:
I get
I had a hunch that the venv may have been the issue, but even a global install did not fix the issue. For my own project, I had to just pull tbb out because it was causing too many dependency issues 😞 I'm not even sure what |
@theahura thank you, which platform is this? |
Ubuntu 20 Desktop |
I can confirm this is still an issue that will need to be triaged.
|
@esc is this issue down to this: #6108 (comment) ? |
It certainly sounds plausible. |
This issue is marked as stale as it has had no activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with any updates and confirm that this issue still needs to be addressed. |
TL;DR: This works. |
Reporting a bug
visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
i.e. it's possible to run as 'python bug.py'.
Basically the title. Running the following commands fails:
Specifically, this returns:
The following does work:
returning
Two guesses.
The text was updated successfully, but these errors were encountered: