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

'generator' object has no attribute '__dict__ #46

Open
Gigme18 opened this issue Jan 5, 2024 · 0 comments
Open

'generator' object has no attribute '__dict__ #46

Gigme18 opened this issue Jan 5, 2024 · 0 comments

Comments

@Gigme18
Copy link

Gigme18 commented Jan 5, 2024

When I am calling GroupkFold.split()
Internally it is calling python bridge

I am getting an error in python bridge:

error: undefined,
exception: {
type: { name: 'AttributeError', module: 'builtins' },
message: "'generator' object has no attribute 'dict'",
args: [ "'generator' object has no attribute 'dict'" ],
format: [
"AttributeError: 'generator' object has no attribute 'dict'\n"
]

traceback: {
lineno: 111,
strack: [
' File "node_modules@fisch0920\python-bridge\node_python_bridge.py", line 114, in \n' +
" response = dict(type='exception', value=format_exception(t, e, tb))\n"
],
format: [
' File "..\node_modules@fisch0920\python-bridge\node_python_bridge.py", line 111, in \n' +
" response = dict(type='success', value=json.dumps(value, separators=(',', ':'), cls=JavaScriptEncoder))\n",
' File "Programs\Python\Python310\lib\json\init.py", line 238, in dumps\n' +
' **kw).encode(obj)\n',
' File "Programs\Python\Python310\lib\json\encoder.py", line 199, in encode\n' +
' chunks = self.iterencode(o, _one_shot=True)\n',
' File "Python\Python310\lib\json\encoder.py", line 257, in iterencode\n'
+
' return _iterencode(o, 0)\n',
' File "node_modules@fisch0920\python-bridge\node_python_bridge.py", line 81, in default\n' +
' return o.dict\n'
]
},

I am confused why this error is triggered.

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

1 participant