Skip to content

Conversation

@skmendez
Copy link

Avoid calling numexpr.set_num_threads() with a value exceeding NUMEXPR_MAX_THREADS to prevent numexpr from printing a warning to stderr during blosc2 import. Without this, I get the following error log from numexpr:

$ NUMEXPR_MAX_THREADS=16 python -c 'import blosc2; blosc2.__version__'
Error.  nthreads cannot be larger than environment variable "NUMEXPR_MAX_THREADS" (16)%

Avoid calling numexpr.set_num_threads() with a value exceeding
NUMEXPR_MAX_THREADS to prevent numexpr from printing a warning
to stderr during blosc2 import.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@skmendez skmendez marked this pull request as ready for review January 26, 2026 19:17
@FrancescAlted
Copy link
Member

Thanks @skmendez . I am wondering if this patch would be better suited in numexpr package itself. Thoughts?

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

Successfully merging this pull request may close these issues.

3 participants