From 2307a12ff01e9dfb4d42cd209c47534f3d1be590 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Mon, 20 Sep 2021 20:32:51 +0500 Subject: [PATCH] fix: Pinned numpy>=1.16.0,<1.17.0 in codejail requirements (#28795) --- requirements/edx-sandbox/py38.in | 5 ++++- requirements/edx-sandbox/py38.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/requirements/edx-sandbox/py38.in b/requirements/edx-sandbox/py38.in index ed3fd9bb84..ac1af4fcf9 100644 --- a/requirements/edx-sandbox/py38.in +++ b/requirements/edx-sandbox/py38.in @@ -6,13 +6,16 @@ lxml # XML parser matplotlib # 2D plotting library networkx # Utilities for creating, manipulating, and studying network graphs nltk # Natural language processing; used by the chem package -numpy # Numeric array processing utilities; used by scipy openedx-calc pyparsing # Python Parsing module random2 # Implementation of random module that works identically under Python 2 and 3 scipy # Math, science, and engineering library sympy # Symbolic math library +# numpy>=1.17.0 caused failures in importing numpy in code-jail environment. +# The issue will be investigated and fixed in https://openedx.atlassian.net/browse/BOM-2841. +numpy>=1.16.0,<1.17.0 + # Install these packages from the edx-platform working tree # NOTE: if you change code in these packages, you MUST change the version # number in its setup.py or the code WILL NOT be installed during deploy. diff --git a/requirements/edx-sandbox/py38.txt b/requirements/edx-sandbox/py38.txt index 7d67376b76..3d973a6c8d 100644 --- a/requirements/edx-sandbox/py38.txt +++ b/requirements/edx-sandbox/py38.txt @@ -46,7 +46,7 @@ nltk==3.6.2 # via # -r requirements/edx-sandbox/py38.in # chem -numpy==1.21.2 +numpy==1.16.6 # via # -r requirements/edx-sandbox/py38.in # chem