Skip to content

Conversation

glennko
Copy link
Member

@glennko glennko commented Sep 19, 2025

Summary

• Add scipy >= 1.0.0 to dependencies to fix bitsandbytes import errors
• Resolves ModuleNotFoundError: No module named 'scipy' when importing xturing modules
• Enables test suite to run without import failures

Problem

bitsandbytes==0.41.1 uses scipy.stats.norm in its functional.py but doesn't declare scipy as a dependency, causing import errors throughout the xturing codebase.

Solution

Added explicit scipy dependency to both pyproject.toml and requirements-dev.txt to ensure scipy is available when bitsandbytes needs it.

Test plan

  • Verified bitsandbytes import works with scipy installed
  • Confirmed xturing modules can be imported without errors
  • Test suite now runs successfully (tests/xturing/datasets/test_text_dataset.py passes)
  • Pre-commit hooks passed

glennko and others added 2 commits September 19, 2025 14:56
- Add scipy >= 1.0.0 to pyproject.toml and requirements-dev.txt
- Fixes ModuleNotFoundError when importing bitsandbytes==0.41.1
- bitsandbytes uses scipy.stats.norm but doesn't declare scipy as dependency
- Enables test suite to run without import errors
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.

1 participant