When I run https://analytics-zoo.readthedocs.io/en/latest/doc/Orca/QuickStart/orca-tf2keras-quickstart.html tensorFlow 2 For example.
############
Error:
(raylet) Traceback (most recent call last):
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/site-packages/ray/new_dashboard/agent.py", line 334, in
(raylet) raise e
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/site-packages/ray/new_dashboard/agent.py", line 323, in
(raylet) loop.run_until_complete(agent.run())
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/asyncio/base_events.py", line 568, in run_until_complete
(raylet) return future.result()
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/site-packages/ray/new_dashboard/agent.py", line 138, in run
(raylet) modules = self._load_modules()
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/site-packages/ray/new_dashboard/agent.py", line 92, in _load_modules
(raylet) c = cls(self)
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/site-packages/ray/new_dashboard/modules/reporter/reporter_agent.py", line 72, in init
(raylet) self._metrics_agent = MetricsAgent(dashboard_agent.metrics_export_port)
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/site-packages/ray/metrics_agent.py", line 76, in init
(raylet) namespace="ray", port=metrics_export_port)))
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/site-packages/ray/prometheus_exporter.py", line 334, in new_stats_exporter
(raylet) options=option, gatherer=option.registry, collector=collector)
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/site-packages/ray/prometheus_exporter.py", line 266, in init
(raylet) self.serve_http()
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/site-packages/ray/prometheus_exporter.py", line 321, in serve_http
(raylet) port=self.options.port, addr=str(self.options.address))
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/site-packages/prometheus_client/exposition.py", line 168, in start_wsgi_server
(raylet) TmpServer.address_family, addr = _get_best_family(addr, port)
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/site-packages/prometheus_client/exposition.py", line 157, in _get_best_family
(raylet) infos = socket.getaddrinfo(address, port)
(raylet) File "/usr/local/miniconda3/envs/zoo/lib/python3.7/socket.py", line 753, in getaddrinfo
(raylet) for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
(raylet) socket.gaierror: [Errno -2] Name or service not known
##############
Hosts file
After running the example, session files are generated in /tmp/ray/ of the system
Runtime environment: Docker deployment uses Miniconda to install AZ and Ray
Conda create -n zoo python=3.7
conda activate zoo
pip install --pre --upgrade analytics-zoo
pip install analytics-zoo[ray]
PIP install tensorflow = = 2.3.0
conda list
Name Version Build Channel
_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
absl-py 1.0.0 pypi_0 pypi
aiohttp 3.7.0 pypi_0 pypi
aiohttp-cors 0.7.0 pypi_0 pypi
aioredis 1.1.0 pypi_0 pypi
analytics-zoo 0.12.0b2022052501 pypi_0 pypi
astunparse 1.6.3 pypi_0 pypi
async-timeout 3.0.1 pypi_0 pypi
attrs 21.4.0 pypi_0 pypi
bigdl 0.13.1.dev1 pypi_0 pypi
blessings 1.7 pypi_0 pypi
ca-certificates 2022.4.26 h06a4308_0
cachetools 5.1.0 pypi_0 pypi
certifi 2022.5.18.1 py37h06a4308_0
chardet 3.0.4 pypi_0 pypi
charset-normalizer 2.0.12 pypi_0 pypi
click 8.1.3 pypi_0 pypi
colorama 0.4.4 pypi_0 pypi
colorful 0.5.4 pypi_0 pypi
conda-pack 0.3.1 pypi_0 pypi
deprecated 1.2.13 pypi_0 pypi
filelock 3.7.0 pypi_0 pypi
gast 0.3.3 pypi_0 pypi
google-api-core 2.8.0 pypi_0 pypi
google-auth 2.6.6 pypi_0 pypi
google-auth-oauthlib 0.4.6 pypi_0 pypi
google-pasta 0.2.0 pypi_0 pypi
googleapis-common-protos 1.56.1 pypi_0 pypi
gpustat 0.6.0 pypi_0 pypi
grpcio 1.46.3 pypi_0 pypi
h5py 2.10.0 pypi_0 pypi
hiredis 1.1.0 pypi_0 pypi
idna 3.3 pypi_0 pypi
importlib-metadata 4.11.4 pypi_0 pypi
importlib-resources 5.7.1 pypi_0 pypi
jsonschema 4.5.1 pypi_0 pypi
keras-preprocessing 1.1.2 pypi_0 pypi
libedit 3.1.20210910 h7f8727e_0
libffi 3.2.1 hf484d3e_1007
libgcc-ng 11.2.0 h1234567_0
libgomp 11.2.0 h1234567_0
libstdcxx-ng 11.2.0 h1234567_0
markdown 3.3.7 pypi_0 pypi
msgpack 1.0.3 pypi_0 pypi
multidict 6.0.2 pypi_0 pypi
ncurses 6.3 h7f8727e_2
numpy 1.18.5 pypi_0 pypi
nvidia-ml-py3 7.352.0 pypi_0 pypi
oauthlib 3.2.0 pypi_0 pypi
opencensus 0.9.0 pypi_0 pypi
opencensus-context 0.1.2 pypi_0 pypi
opencv-python 4.5.5.64 pypi_0 pypi
openssl 1.0.2u h7b6447c_0
opt-einsum 3.3.0 pypi_0 pypi
packaging 21.3 pypi_0 pypi
pip 21.2.2 py37h06a4308_0
prometheus-client 0.14.1 pypi_0 pypi
protobuf 3.20.1 pypi_0 pypi
psutil 5.9.1 pypi_0 pypi
py-spy 0.3.12 pypi_0 pypi
py4j 0.10.7 pypi_0 pypi
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
pyparsing 3.0.9 pypi_0 pypi
pyrsistent 0.18.1 pypi_0 pypi
pyspark 2.4.6 pypi_0 pypi
python 3.7.0 h6e4f718_3
pyyaml 6.0 pypi_0 pypi
ray 1.2.0 pypi_0 pypi
readline 7.0 h7b6447c_5
redis 4.1.4 pypi_0 pypi
requests 2.27.1 pypi_0 pypi
requests-oauthlib 1.3.1 pypi_0 pypi
rsa 4.8 pypi_0 pypi
scipy 1.4.1 pypi_0 pypi
setproctitle 1.2.3 pypi_0 pypi
setuptools 61.2.0 py37h06a4308_0
six 1.16.0 pypi_0 pypi
sqlite 3.33.0 h62c20be_0
tensorboard 2.9.0 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.1 pypi_0 pypi
tensorflow 2.3.0 pypi_0 pypi
tensorflow-estimator 2.3.0 pypi_0 pypi
termcolor 1.1.0 pypi_0 pypi
tk 8.6.11 h1ccaba5_1
typing-extensions 4.2.0 pypi_0 pypi
urllib3 1.26.9 pypi_0 pypi
werkzeug 2.1.2 pypi_0 pypi
wheel 0.37.1 pyhd3eb1b0_0
wrapt 1.14.1 pypi_0 pypi
xz 5.2.5 h7f8727e_1
yarl 1.7.2 pypi_0 pypi
zipp 3.8.0 pypi_0 pypi
zlib 1.2.12 h7f8727e_2
————————————————————
1、Check python:
from zoo.util.utils import detect_python_location
detect_python_location()
2、Check ray installation
/usr/local/miniconda3/envs/zoo/bin/python /usr/local/miniconda3/envs/zoo/bin/ray start --head --include-dashboard ture --dashboard-host 172.27.0.2 --port 35413 --redis-password 123456 --num-cpus 1
/usr/local/miniconda3/envs/zoo/bin/python /usr/local/miniconda3/envs/zoo/bin/ray start --address 172.27.0.2:35413 --redis-password 123456 --num-cpus 1
ray start --address=‘172.27.0.2:35413' --redis-password='0'
Related documents.zip
user issue