Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'inspect' has no attribute 'ArgSpec' #255

Closed
SeekPoint opened this issue Jun 27, 2023 · 1 comment
Closed

AttributeError: module 'inspect' has no attribute 'ArgSpec' #255

SeekPoint opened this issue Jun 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@SeekPoint
Copy link

(gh_chatglm_finetuning) ub2004@ub2004-B85M-A0:/llm_dev/chatglm_finetuning$ python infer.py
Traceback (most recent call last):
File "/home/ub2004/llm_dev/chatglm_finetuning/infer.py", line 4, in
from deep_training.data_helper import ModelArguments, TrainingArguments, DataArguments
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/deep_training/data_helper/init.py", line 4, in
from .data_helper import DataHelper,load_tokenizer, load_configure
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/deep_training/data_helper/data_helper.py", line 8, in
from fastdatasets import memory as MEMORY
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/fastdatasets/init.py", line 5, in
from tfrecords.python.io import gfile
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/init.py", line 4, in
from .python import *
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/init.py", line 6, in
from .framework import *
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/init.py", line 5, in
from .errors import *
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/errors.py", line 22, in
from tfrecords.python.framework.errors_impl import *
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/errors_impl.py", line 21, in
from tfrecords.python.util import tf_inspect
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/util/tf_inspect.py", line 38, in
ArgSpec = _inspect.ArgSpec
^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'ArgSpec'
(gh_chatglm_finetuning) ub2004@ub2004-B85M-A0:
/llm_dev/chatglm_finetuning$ python data_utils.py
Traceback (most recent call last):
File "/home/ub2004/llm_dev/chatglm_finetuning/data_utils.py", line 10, in
from deep_training.data_helper import DataHelper, ModelArguments, TrainingArguments, DataArguments
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/deep_training/data_helper/init.py", line 4, in
from .data_helper import DataHelper,load_tokenizer, load_configure
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/deep_training/data_helper/data_helper.py", line 8, in
from fastdatasets import memory as MEMORY
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/fastdatasets/init.py", line 5, in
from tfrecords.python.io import gfile
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/init.py", line 4, in
from .python import *
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/init.py", line 6, in
from .framework import *
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/init.py", line 5, in
from .errors import *
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/errors.py", line 22, in
from tfrecords.python.framework.errors_impl import *
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/errors_impl.py", line 21, in
from tfrecords.python.util import tf_inspect
File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/util/tf_inspect.py", line 38, in
ArgSpec = _inspect.ArgSpec
^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'ArgSpec'
(gh_chatglm_finetuning) ub2004@ub2004-B85M-A0:~/llm_dev/chatglm_finetuning$

@ssbuild
Copy link
Owner

ssbuild commented Jun 27, 2023

ssbuild/deep_training#18

@ssbuild ssbuild added the bug Something isn't working label Jul 11, 2023
@ssbuild ssbuild closed this as completed Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants