Skip to content

Update requirements.txt for post_training_quantization_onnx_mobilenet_v2#4110

Merged
andrey-churkin merged 2 commits into
openvinotoolkit:developfrom
AlexanderDokuchaev:ad/fix_onnx_ex
Jun 23, 2026
Merged

Update requirements.txt for post_training_quantization_onnx_mobilenet_v2#4110
andrey-churkin merged 2 commits into
openvinotoolkit:developfrom
AlexanderDokuchaev:ad/fix_onnx_ex

Conversation

@AlexanderDokuchaev

@AlexanderDokuchaev AlexanderDokuchaev commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Changes

scipy==1.18.0
numpy==2.4.6

Reason for changes

https://github.com/openvinotoolkit/nncf/actions/runs/27854912179/job/82440471910

  File "/tmp/pytest-of-runner/pytest-0/test_examples_post_training_qu0/venv/lib/python3.12/site-packages/scipy/sparse/_sputils.py", line 17, in <module>
    np.uintc, np.long, np.ulong, np.longlong, np.ulonglong,
              ^^^^^^^
  File "/tmp/pytest-of-runner/pytest-0/test_examples_post_training_qu0/venv/lib/python3.12/site-packages/numpy/__init__.py", line 333, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'long'. Did you mean: 'log'?

Related tickets

Tests

Test examples - success

@AlexanderDokuchaev AlexanderDokuchaev requested a review from a team as a code owner June 22, 2026 07:26
Copilot AI review requested due to automatic review settings June 22, 2026 07:26
@github-actions github-actions Bot added the NNCF ONNX Pull requests that updates NNCF ONNX label Jun 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the dependency pins for the ONNX MobileNetV2 post-training quantization example to avoid the observed SciPy↔NumPy incompatibility (SciPy importing np.long, which is removed in NumPy 2.x) during CI example runs.

Changes:

  • Add an explicit scipy==1.18.0 pin for the example environment.
  • Replace numpy<2 with an explicit numpy==2.4.6 pin to match the NumPy 2.x line used by the project (pyproject.toml allows <2.5.0).

@andrey-churkin andrey-churkin merged commit f5aa3b6 into openvinotoolkit:develop Jun 23, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NNCF ONNX Pull requests that updates NNCF ONNX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants