/home/xin/anaconda3/envs/mean/bin/python3.6 /home/xin/下载/pycharm-community-2021.3.3/plugins/python-ce/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 33875 --file /home/xin/LR/MEAN_Spot-then-recognize-main/define_model.py Connected to pydev debugger (build 213.7172.26) 2023-06-09 20:24:44.851141: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0 Process finished with exit code 0
时间: 2023-07-12 09:59:58 浏览: 199
这是一段程序的输出日志,看起来是在运行一个Python脚本。这段日志中包含了一些关于程序运行过程的信息。
第一行中,指定了Python解释器的路径,以及要执行的Python脚本文件的路径。
第二行中,使用pydevd.py模块连接到了PyCharm的调试器。这个模块是PyCharm提供的一个用于调试Python程序的工具,可以实现远程调试、多进程调试等功能。
接下来几行日志中,显示了程序正在使用TensorFlow框架加载了一个动态链接库libcudart.so.11.0。这个库是NVIDIA CUDA的运行时库,用于支持GPU计算。
最后一行日志中,显示了程序正常退出,退出码为0。
相关问题
import torch Traceback (most recent call last): File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/code.py", line 91, in runcode exec(code, self.locals) File "<input>", line 1, in <module> File "/snap/pycharm-community/336/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/torch/__init__.py", line 197, in <module> from torch._C import * # noqa: F403 File "/snap/pycharm-community/336/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) ImportError: libtinfo.so.5: cannot open shared object file: No such file or directory
这个错误是由于缺少 `libtinfo.so.5` 库文件引起的。`libtinfo.so.5` 是一个用于处理终端信息的库文件。
要解决这个问题,你可以尝试以下几种方法:
1. 安装 `libtinfo5` 库文件:
```
sudo apt-get install libtinfo5
```
2. 如果你使用的是其他 Linux 发行版,请使用相应的包管理器安装 `libtinfo5`。
3. 如果你无法安装 `libtinfo5`,可以尝试通过创建软链接来解决:
```
sudo ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.5
```
请根据你的系统环境选择适合的方法,并确保你的环境中有 `libtinfo.so.5` 库文件。
/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/gym/core.py:27: UserWarning: [33mWARN: Gym minimally supports python 3.6 as the python foundation not longer supports the version, please update your version to 3.7+[0m "Gym minimally supports python 3.6 as the python foundation not longer supports the version, please update your version to 3.7+" Traceback (most recent call last): File "run_re2.py", line 81, in <module> parameters = Parameters(parser) # Inject the cla arguments in the parameters object File "/home/zhangmengjie/PID/Python/ERL-Re2-main/parameters.py", line 117, in __init__ self.wandb = wandb.init(project="TSR",name=self.name) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_init.py", line 1173, in init raise e File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_init.py", line 1150, in init wi.setup(kwargs) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_init.py", line 172, in setup self._wl = wandb_setup.setup(settings=setup_settings) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_setup.py", line 327, in setup ret = _setup(settings=settings) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_setup.py", line 320, in _setup wl = _WandbSetup(settings=settings) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_setup.py", line 303, in __init__ _WandbSetup._instance = _WandbSetup__WandbSetup(settings=settings, pid=pid) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_setup.py", line 108, in __init__ self._settings = self._settings_setup(settings, self._early_logger) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_setup.py", line 128, in _settings_setup s._apply_env_vars(self._environ, _logger=early_logger) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 1597, in _apply_env_vars self.update(env, source=Source.ENV) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 1453, in update self.__dict__[key].update(settings.pop(key), source=source) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 425, in update self._value = self._validate(self._preprocess(value)) File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 386, in _validate if not v(value): File "/home/zhangmengjie/anaconda3/envs/torch/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 898, in _validate_mode raise UsageError(f"Settings field `mode`: {value!r} not in {choices}") wandb.errors.UsageError: Settings field `mode`: '' not in {'online', 'run', 'dryrun', 'disabled', 'offline'}
这个错误提示是由于您在运行中使用的Wandb库的设置中,`mode`字段的值为空。根据错误信息,可选的`mode`字段的值应该是 `online`, `run`, `dryrun`, `disabled`, 或者 `offline`。
您可以检查一下您代码中关于Wandb库的设置部分,确认是否正确设置了`mode`字段的值。您可以将其设置为其中一个有效的选项,如 `'online'` 或者 `'offline'`,然后重新运行脚本。
另外,请确保您已经正确安装了Wandb库,并且所使用的Python版本符合Wandb库的要求。根据警告信息显示,Gym库建议使用Python 3.7 或更高版本,您可以尝试更新您的Python版本以解决这个问题。
如果问题仍然存在,请提供更多相关的代码和错误信息,以便我能够更好地帮助您解决问题。
阅读全文