-
Notifications
You must be signed in to change notification settings - Fork 46
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
TypeError: 'CoerceContext' object is not subscriptable #43
Comments
Yes, it seems that there are a few issues because the newest attributee library version is used. You can try to downgrade the library version, probably to 0.1.3 . |
Thank you. I fixed it by setting attributtee==0.1.3. |
Well, it is not a fix, more of a workaround. I will reopen the issue and only close it once we fix it for the new version. |
Hi, |
Maybe you can try pip install attributtee==0.1.3 |
Thank you, but the error didnt resolve. |
Maybe you need to update your python. I used python 3.7
T.H ***@***.***>于2022年3月5日 周六11:19写道:
… Maybe you can try pip install attributtee==0.1.3
Thank you, but the error didnt resolve.
I use python3.6 with cuda 11.
—
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIDAM4MXGRTUT354NXDADQLU6MDJDANCNFSM5O53HS2Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
when I try to evaluate the default tracker NCC and run the following command
vot evaluate --workspace '/home/dxp/code/vot-test/workspace2' NCCPython
I got the following errors.
Traceback (most recent call last):
File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/vot/utilities/cli.py", line 388, in main
do_evaluate(args)
File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/vot/utilities/cli.py", line 159, in do_evaluate
workspace = Workspace.load(config.workspace)
File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/vot/workspace/init.py", line 138, in load
return Workspace(directory, **config)
File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/vot/workspace/init.py", line 150, in init
super().init(**kwargs)
File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/attributee/init.py", line 262, in init
value = afield.coerce(avalue, CoerceContext(parent=self))
File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/attributee/containers.py", line 134, in coerce
data = [self._contains.coerce(x, CoerceContext(parent=parent, key=i)) for i, x in enumerate(value)]
File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/attributee/containers.py", line 134, in
data = [self._contains.coerce(x, CoerceContext(parent=parent, key=i)) for i, x in enumerate(value)]
File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/attributee/primitives.py", line 104, in coerce
return self._transformer(to_string(value), ctx)
File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/vot/workspace/init.py", line 54, in
registry = List(String(transformer=lambda x, ctx: normalize_path(x, ctx["parent"].directory)))
TypeError: 'CoerceContext' object is not subscriptable
It seems a bug in the code. Could you help me?
The text was updated successfully, but these errors were encountered: