Skip to content

Commit

Permalink
Unpin Ray nightly in CI (#2614) (#2646)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaddair authored Oct 13, 2022
1 parent 6c322ac commit 3796d36
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ jobs:
if [ "$MARKERS" == "distributed" ]; then
if [ "$RAY_VERSION" == "nightly" ]; then
# NOTE: hardcoded for python 3.9 on Linux
# pip install https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl
pip install https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl
# NOTE: Pinned Ray nightly version to September 20, 2022 to get tests to pass
pip install https://s3-us-west-2.amazonaws.com/ray-wheels/master/fa182d3c9e478ef4c169ccf7459764768996110f/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl
# pip install https://s3-us-west-2.amazonaws.com/ray-wheels/master/fa182d3c9e478ef4c169ccf7459764768996110f/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl
else
pip install ray==$RAY_VERSION
fi
Expand Down
3 changes: 3 additions & 0 deletions ludwig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@
from ludwig.globals import LUDWIG_VERSION as __version__ # noqa

logging.basicConfig(level=logging.INFO, stream=sys.stdout, format="%(message)s")

# Disable annoying message about NUMEXPR_MAX_THREADS
logging.getLogger("numexpr").setLevel(logging.WARNING)
15 changes: 8 additions & 7 deletions ludwig/utils/visualization_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# ==============================================================================
import copy
import logging
import sys
from collections import Counter
from sys import platform

Expand All @@ -32,7 +31,10 @@
import matplotlib as mpl

if platform == "darwin": # OS X
mpl.use("TkAgg")
try:
mpl.use("TkAgg")
except ModuleNotFoundError:
logging.warning("Unable to set TkAgg backend for matplotlib. Your Python may not be configured for Tk")
import matplotlib.patches as patches
import matplotlib.path as path
import matplotlib.patheffects as PathEffects
Expand All @@ -41,13 +43,12 @@
from matplotlib import ticker
from matplotlib.lines import Line2D
from mpl_toolkits.mplot3d import Axes3D
except ImportError:
logger.error(
" matplotlib or seaborn are not installed. "
except ImportError as e:
raise RuntimeError(
"matplotlib or seaborn are not installed. "
"In order to install all visualization dependencies run "
"pip install ludwig[viz]"
)
sys.exit(-1)
) from e

INT_QUANTILES = 10
FLOAT_QUANTILES = 10
Expand Down

0 comments on commit 3796d36

Please sign in to comment.