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' #18

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

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

SeekPoint opened this issue Jun 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@SeekPoint
Copy link

(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

Python版本<3.11应该可以,下个版本考虑支持3.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants