torch_copo error
Mming11 opened this issue · 1 comments
~/CoPO/copo_code/copo/torch_copo$ python train_copo.py
2023-04-11 16:53:27.584910: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/yl-02/.mujoco/mujoco200/bin
2023-04-11 16:53:27.584930: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:513: DeprecationWarning: np.object
is a deprecated alias for the builtin object
. To silence this warning, use object
by itself. Doing this will not modify any behavior and is safe.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
np.object,
/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:521: DeprecationWarning: np.bool
is a deprecated alias for the builtin bool
. To silence this warning, use bool
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_
here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
np.bool,
/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/tensorflow/python/framework/tensor_util.py:107: DeprecationWarning: np.object
is a deprecated alias for the builtin object
. To silence this warning, use object
by itself. Doing this will not modify any behavior and is safe.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
np.object:
/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/tensorflow/python/framework/tensor_util.py:109: DeprecationWarning: np.bool
is a deprecated alias for the builtin bool
. To silence this warning, use bool
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_
here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
np.bool:
/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/tensorflow/python/autograph/utils/testing.py:21: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/h5py/init.py:46: DeprecationWarning: np.typeDict
is a deprecated alias for np.sctypeDict
.
from ._conv import register_converters as _register_converters
Successfully registered the following environments: ['MetaDrive-validation-v0', 'MetaDrive-10env-v0', 'MetaDrive-100envs-v0', 'MetaDrive-1000envs-v0', 'SafeMetaDrive-validation-v0', 'SafeMetaDrive-10env-v0', 'SafeMetaDrive-100envs-v0', 'SafeMetaDrive-1000envs-v0', 'MARLTollgate-v0', 'MARLBottleneck-v0', 'MARLRoundabout-v0', 'MARLIntersection-v0', 'MARLParkingLot-v0', 'MARLMetaDrive-v0'].
/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/tensorflow_probability/python/internal/backend/numpy/dtype.py:82: DeprecationWarning: np.bool
is a deprecated alias for the builtin bool
. To silence this warning, use bool
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_
here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
bool = np.bool # pylint: disable=redefined-builtin
/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/tensorflow_probability/python/internal/backend/numpy/dtype.py:112: DeprecationWarning: np.str
is a deprecated alias for the builtin str
. To silence this warning, use str
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.str_
here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
string = getattr(np, 'str', getattr(np, 'string', None))
/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/tensorflow_probability/python/mcmc/sample_halton_sequence.py:373: DeprecationWarning: np.bool
is a deprecated alias for the builtin bool
. To silence this warning, use bool
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_
here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
sieve = np.ones(n // 3 + (n % 6 == 2), dtype=np.bool)
2023-04-11 16:53:30,752 ERROR services.py:1195 -- Failed to start the dashboard: Failed to start the dashboard, return code 1
The last 10 lines of /tmp/ray/session_2023-04-11_16-53-29_150060_3096856/logs/dashboard.log:
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/ray/dashboard/modules/snapshot/snapshot_head.py", line 40, in
class RayActivityResponse(BaseModel, extra=Extra.allow):
File "pydantic/main.py", line 309, in pydantic.main.ModelMetaclass.new
File "/home/yl-02/anaconda3/envs/didrive/lib/python3.7/abc.py", line 126, in new
cls = super().new(mcls, name, bases, namespace, **kwargs)
TypeError: init_subclass() takes no keyword arguments
2023-04-11 16:53:30,752 ERROR services.py:1196 -- Failed to start the dashboard, return code 1
The last 10 lines of /tmp/ray/session_2023-04-11_16-53-29_150060_3096856/logs/dashboard.log:
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/ray/dashboard/modules/snapshot/snapshot_head.py", line 40, in
class RayActivityResponse(BaseModel, extra=Extra.allow):
File "pydantic/main.py", line 309, in pydantic.main.ModelMetaclass.new
File "/home/yl-02/anaconda3/envs/didrive/lib/python3.7/abc.py", line 126, in new
cls = super().new(mcls, name, bases, namespace, **kwargs)
TypeError: init_subclass() takes no keyword arguments
Traceback (most recent call last):
File "/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/ray/_private/services.py", line 1181, in start_api_server
raise Exception(err_msg + last_log_str)
Exception: Failed to start the dashboard, return code 1
The last 10 lines of /tmp/ray/session_2023-04-11_16-53-29_150060_3096856/logs/dashboard.log:
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/ray/dashboard/modules/snapshot/snapshot_head.py", line 40, in
class RayActivityResponse(BaseModel, extra=Extra.allow):
File "pydantic/main.py", line 309, in pydantic.main.ModelMetaclass.new
File "/home/yl-02/anaconda3/envs/didrive/lib/python3.7/abc.py", line 126, in new
cls = super().new(mcls, name, bases, namespace, **kwargs)
TypeError: init_subclass() takes no keyword arguments
Successfully initialize Ray!
Available resources: {'object_store_memory': 4120841011.0, 'node:192.168.50.150': 1.0, 'CPU': 16.0, 'accelerator_type:G': 1.0, 'memory': 8241682023.0}
/home/yl-02/anaconda3/envs/didrive/lib/python3.7/site-packages/gym/spaces/box.py:84: UserWarning: WARN: Box bound precision lowered by casting to float32
logger.warn(f"Box bound precision lowered by casting to {self.dtype}")
when it runs, it meets this error.
seems like some incompatibility issue. Could you reinstall pydantic
?