通过SSH运行python脚本有效,但不能通过paramiko运行。找不到系统库

时间:2019-04-09 11:35:23

标签: python ssh subprocess paramiko

每当我尝试通过Paramiko / subprocess运行python 3脚本时,都会出现如下错误:

HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 140482549520192:
  #000: ../../../src/H5Dio.c line 170 in H5Dread(): can't read data
    major: Dataset
    minor: Read failed
  #001: ../../../src/H5Dio.c line 543 in H5D__read(): can't read data
    major: Dataset
    minor: Read failed
  #002: ../../../src/H5Dchunk.c line 2046 in H5D__chunk_read(): unable to read raw data chunk
    major: Low-level I/O
    minor: Read failed
  #003: ../../../src/H5Dchunk.c line 3401 in H5D__chunk_lock(): data pipeline read failed
    major: Data filters
    minor: Filter operation failed
  #004: ../../../src/H5Z.c line 1351 in H5Z_pipeline(): required filter 'HDF5 JPEG-LS filter' is not registered
    major: Data filters
    minor: Read failed
  #005: ../../../src/H5PL.c line 370 in H5PL_load(): search in paths failed
    major: Plugin for dynamically loaded library
    minor: Can't get value
  #006: ../../../src/H5PL.c line 474 in H5PL__find(): can't open directory
    major: Plugin for dynamically loaded library
    minor: Can't open directory or file

但是,以下情况可以正常工作:

  • 在Linux终端上通过ssh连接到计算机并在其中运行脚本;
  • 在计算机本身上运行脚本;

我相信我已经很好地加载了环境变量以及.bashrc,以防万一。有人对此怪异行为有任何线索吗?

编辑:那些相对路径困扰着我,我不确定是否可能是原因。

0 个答案:

没有答案