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

=dev-python/numba-0.54.1 fails to build with USE=doc #181

Open
redblade7 opened this issue Mar 22, 2022 · 9 comments
Open

=dev-python/numba-0.54.1 fails to build with USE=doc #181

redblade7 opened this issue Mar 22, 2022 · 9 comments

Comments

@redblade7
Copy link

=dev-python/numba-0.54.1 fails to build with USE=doc
Build log and emerge --info attached.
numba-build.log
numba-emerge-info.txt

@LebedevV
Copy link
Contributor

LebedevV commented Apr 9, 2022

May I ask you to confirm the numpy version?
When I am trying to run "import numba" in the python console with numba-0.54.1 installed, I see the error with a description "Numba needs NumPy 1.20 or less"

@LebedevV
Copy link
Contributor

LebedevV commented Apr 9, 2022

Also, even for numba-9999 there is some issue with Py3.8... I have to check it

@redblade7
Copy link
Author

=dev-python/numpy-1.22.3

I get the same message when importing numba.

@LebedevV
Copy link
Contributor

In my understanding, USE=doc requires the working numba for each of the python versions required.
So, if one can not run numba, it will not be compiled with docs; from another point of view, why does one need these docs, if it is not possible to run the code...

What I can do - I can remove py38 from numba-9999 allowances, add a requirement of <=numpy-1.20 for numba-0.54.1, and bump a version to 0.55.1.
Also, is there a specific reason to use this exact version (0.54.1)?

@LebedevV
Copy link
Contributor

I am ready to commit changes, however, I'll be in need to mask numba-0.54.1, as the oldest numpy from the ::gentoo tree is the 0.21 one.
Please, let me know if that affects you and numba-0.55.1 will not work in your case

@redblade7
Copy link
Author

After 0.55.1 "import numba" works now.
When installing numba, numpy was downgraded to 1.21.5.

@redblade7
Copy link
Author

USE=doc continues to fail though and claims that numba can't be imported.

@LebedevV
Copy link
Contributor

if you would like to keep the higher version of numpy, you can try the developers version of numba (=dev-python/numba-9999).
However, I am still puzzled with the USE='doc' error - it is originated from the error raised after "from .typeconv import TypeManager, TypeCastingRules", and there are a number of corresponding issues on numba's github, no clear solution yet

@LebedevV
Copy link
Contributor

I think I see the problem now.
USE=doc invokes sphinx on the compile stage, but as numba has a cpp code inclusions as well, such parts as a _typeconf can be imported properly only during the later stages.
Not sure, how to override the default behaviour correctly

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

No branches or pull requests

2 participants