执行demo报错
854wlg 发布于2021-09 浏览:2763 回复:2
0
收藏
快速回复

执行python run_with_json.py --param_path ./examples/cls_cnn_ch.json后,报如下错误:

 

INFO: 09-08 17:56:15: params.py:41 * 4678684160 ./examples/cls_cnn_ch.json
INFO: 09-08 17:56:15: params.py:48 * 4678684160 {
"dataset_reader": {
"dev_reader": {
"config": {
"batch_size": 8,
"data_path": "./data/dev_data",
"epoch": 1,
"sampling_rate": 1.0,
"shuffle": false
},
"fields": [
{
"data_type": "string",
"embedding": {
"emb_dim": 128,
"type": "CustomFluidTokenEmbedding",
"use_reader_emb": false
},
"max_seq_len": 512,
"name": "text_a",
"need_convert": true,
"padding_id": 0,
"reader": {
"type": "CustomTextFieldReader"
},
"tokenizer": {
"params": null,
"split_char": " ",
"type": "CustomTokenizer",
"unk_token": "[UNK]"
},
"truncation_type": 0,
"vocab_path": "./dict/vocab.txt"
},
{
"data_type": "int",
"embedding": null,
"max_seq_len": 1,
"name": "label",
"need_convert": false,
"padding_id": 0,
"reader": {
"type": "ScalarFieldReader"
},
"tokenizer": null,
"truncation_type": 0,
"vocab_path": ""
}
],
"name": "dev_reader",
"type": "BasicDataSetReader"
},
"test_reader": {
"config": {
"batch_size": 8,
"data_path": "./data/test_data",
"epoch": 1,
"sampling_rate": 1.0,
"shuffle": false
},
"fields": [
{
"data_type": "string",
"embedding": {
"emb_dim": 128,
"type": "CustomFluidTokenEmbedding",
"use_reader_emb": false
},
"max_seq_len": 512,
"name": "text_a",
"need_convert": true,
"padding_id": 0,
"reader": {
"type": "CustomTextFieldReader"
},
"tokenizer": {
"params": null,
"split_char": " ",
"type": "CustomTokenizer",
"unk_token": "[UNK]"
},
"truncation_type": 0,
"vocab_path": "./dict/vocab.txt"
},
{
"data_type": "int",
"embedding": null,
"max_seq_len": 1,
"name": "label",
"need_convert": false,
"padding_id": 0,
"reader": {
"type": "ScalarFieldReader"
},
"tokenizer": null,
"truncation_type": 0,
"vocab_path": ""
}
],
"name": "test_reader",
"type": "BasicDataSetReader"
},
"train_reader": {
"config": {
"batch_size": 8,
"data_path": "./data/train_data",
"epoch": 10,
"sampling_rate": 1.0,
"shuffle": false
},
"fields": [
{
"data_type": "string",
"max_seq_len": 512,
"name": "text_a",
"need_convert": true,
"padding_id": 0,
"reader": {
"type": "CustomTextFieldReader"
},
"tokenizer": {
"params": null,
"split_char": " ",
"type": "CustomTokenizer",
"unk_token": "[UNK]"
},
"truncation_type": 0,
"vocab_path": "./dict/vocab.txt"
},
{
"data_type": "int",
"embedding": null,
"max_seq_len": 1,
"name": "label",
"need_convert": false,
"padding_id": 0,
"reader": {
"type": "ScalarFieldReader"
},
"tokenizer": null,
"truncation_type": 0,
"vocab_path": ""
}
],
"name": "train_reader",
"type": "BasicDataSetReader"
}
},
"model": {
"num_labels": 2,
"optimization": {
"learning_rate": 2e-05
},
"type": "CnnClassification",
"vocab_size": 33261
},
"trainer": {
"PADDLE_IS_LOCAL": 1,
"PADDLE_USE_GPU": 0,
"eval_step": 100,
"extra_param": {
"meta": {
"job_type": "text_classification"
}
},
"is_eval_dev": 1,
"is_eval_test": 0,
"load_checkpoint": 0,
"load_parameters": 0,
"need_tar": false,
"output_path": "./output/cls_cnn_ch",
"pre_train_model": [],
"save_model_step": 10000,
"train_log_step": 20,
"use_fp16": 0
}
}
ERROR: 09-08 17:56:15: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:15: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/data/field_reader/ernie_text_field_reader.py", line 13, in
from wenxin.modules.token_embedding.ernie_embedding import ErnieTokenEmbedding
File "../../wenxin/modules/token_embedding/ernie_embedding.py", line 7, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:15: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:15: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/data/field_reader/ernie_term_rank_text_filed_reader.py", line 15, in
from wenxin.modules.token_embedding.ernie_embedding import ErnieTokenEmbedding
File "../../wenxin/modules/token_embedding/ernie_embedding.py", line 7, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:15: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:15: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/data/field_reader/ernie_classification_field_reader.py", line 12, in
from wenxin.modules.token_embedding.ernie_embedding import ErnieTokenEmbedding
File "../../wenxin/modules/token_embedding/ernie_embedding.py", line 7, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:15: ernie_mrc_dataset_reader.py:55 * 4678684160 error in import modules
ERROR: 09-08 17:56:15: ernie_mrc_dataset_reader.py:56 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/data/data_set_reader/ernie_mrc_dataset_reader.py", line 52, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/data/field_reader/ernie_text_field_reader.py", line 13, in
from wenxin.modules.token_embedding.ernie_embedding import ErnieTokenEmbedding
File "../../wenxin/modules/token_embedding/ernie_embedding.py", line 7, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:15: ernie_mrc_dataset_reader.py:55 * 4678684160 error in import modules
ERROR: 09-08 17:56:15: ernie_mrc_dataset_reader.py:56 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/data/data_set_reader/ernie_mrc_dataset_reader.py", line 52, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/data/field_reader/ernie_term_rank_text_filed_reader.py", line 15, in
from wenxin.modules.token_embedding.ernie_embedding import ErnieTokenEmbedding
File "../../wenxin/modules/token_embedding/ernie_embedding.py", line 7, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:15: ernie_mrc_dataset_reader.py:55 * 4678684160 error in import modules
ERROR: 09-08 17:56:15: ernie_mrc_dataset_reader.py:56 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/data/data_set_reader/ernie_mrc_dataset_reader.py", line 52, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/data/field_reader/ernie_classification_field_reader.py", line 12, in
from wenxin.modules.token_embedding.ernie_embedding import ErnieTokenEmbedding
File "../../wenxin/modules/token_embedding/ernie_embedding.py", line 7, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:15: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:15: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_mrc.py", line 10, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:15: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:15: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_empty.py", line 13, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:15: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:15: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_term_rank.py", line 14, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_cnn_classification.py", line 16, in
from wenxin.modules.ernie import ErnieConfig, ErnieModel
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_matching_siamese_pointwise.py", line 16, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_classification.py", line 15, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_matching_siamese_pairwise.py", line 16, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_fc_sequence_label.py", line 15, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_fc_classification.py", line 15, in
from wenxin.modules.ernie import ErnieConfig, ErnieModel
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_matching_siamese_pairwise_for_emb.py", line 9, in
from wenxin.models.ernie_matching_siamese_pairwise import ErnieMatchingSiamesePairwise
File "../../wenxin/models/ernie_matching_siamese_pairwise.py", line 16, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_matching_siamese_pairwise_eval_triple.py", line 16, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_crf_sequence_label.py", line 15, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_recall_siamese_pairwise.py", line 16, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_multi_label_classification.py", line 14, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_matching_fc_pointwise.py", line 15, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/models/ernie_fc_sequence_label_pro.py", line 14, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/training/custom_trainer.py", line 17, in
from wenxin.common.controler import BaseTrainer
ImportError: dlopen(../../wenxin/common/controler.so, 2): no suitable image found. Did find:
../../wenxin/common/controler.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/common/controler.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/training/mrc_trainer.py", line 17, in
from wenxin.common.controler import BaseTrainer
ImportError: dlopen(../../wenxin/common/controler.so, 2): no suitable image found. Did find:
../../wenxin/common/controler.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/common/controler.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

ERROR: 09-08 17:56:16: register.py:91 * 4678684160 error in import modules
ERROR: 09-08 17:56:16: register.py:92 * 4678684160 traceback.format_exc():
Traceback (most recent call last):
File "../../wenxin/common/register.py", line 88, in import_modules
importlib.import_module(full_name)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "../../wenxin/modules/token_embedding/ernie_embedding.py", line 7, in
from wenxin.modules.ernie import ErnieModel, ErnieConfig
ImportError: dlopen(../../wenxin/modules/ernie.so, 2): no suitable image found. Did find:
../../wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

INFO: 09-08 17:56:16: run_with_json.py:91 * 4678684160 run trainer.... pid = 6773
ERROR: 09-08 17:56:16: register.py:46 * 4678684160 module {key} not found: {e}

收藏
点赞
0
个赞
共2条回复 最后由用户已被禁言回复于2021-09
#3用户已被禁言回复于2021-09

提交工单呦~会有专业的小伙伴为您解答~

0
#2854wlg回复于2021-09

重点是这个报错:

 

ImportError: dlopen(/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so, 2): no suitable image found. Did find: /Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/wjh/Desktop/wenxin/wenxin/modules/ernie.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

0
快速回复
TOP
切换版块