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: 'NoneType' object has no attribute 'name' #28

Open
Lenan22 opened this issue Nov 25, 2024 · 2 comments
Open

AttributeError: 'NoneType' object has no attribute 'name' #28

Lenan22 opened this issue Nov 25, 2024 · 2 comments

Comments

@Lenan22
Copy link

Lenan22 commented Nov 25, 2024

When I encountered the above bug, I started debugging and found:
(Pdb) p self.builder_configs
{'sDCI_full': DCIConfig(name='sDCI_full', version=0.0.0, data_dir=None, data_files=None, description='sDCI full prompt set')}
(Pdb) p self.DEFAULT_CONFIG_NAME
'sDCI'
The source code is as follows. Its location is in anaconda3/envs/deepcom/lib/python3.12/site-packages/datasets/builder.py.
if config_name is None and self.BUILDER_CONFIGS: print("self.DEFAULT_CONFIG_NAME:", self.DEFAULT_CONFIG_NAME) import pdb pdb.set_trace() if self.DEFAULT_CONFIG_NAME is not None: builder_config = self.builder_configs.get(self.DEFAULT_CONFIG_NAME) [logger.info](https://logger.info/)(f"No config specified, defaulting to: {self.dataset_name}/{builder_config.name}") else:
Please tell me how I should modify it to make the code run through.

@synxlin
Copy link
Contributor

synxlin commented Nov 25, 2024

@Lenan22 ,

Thank you for finding this bug. A quick fix would be to change the Line 51 of DCI.py to

BUILDER_CONFIGS = [DCIConfig(name="sDCI", version=VERSION, description="sDCI full prompt set")]

We will fix this bug in the next release.

@Lenan22
Copy link
Author

Lenan22 commented Nov 26, 2024

Thanks a lot @synxlin

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

No branches or pull requests

2 participants