odbind import error

113 views
Skip to first unread message

Eko Purnomo

unread,
Jun 1, 2024, 3:09:19 AMJun 1
to us...@opendtect.org
Dear all, 
I got problem when importing odbind, as attached. Any suggestions ?. Thank you in advance for your help.

Best regards
Eko Widi Purnomo 



wayne.mogg

unread,
Jun 1, 2024, 6:22:29 AMJun 1
to OpendTect Users, Eko Purnomo
Hi,
What version of Python are you using? That style of type hint has been supported since Python 3.9 so I suspect you are using something older than that. If your Python version is 3.8 or 3.7, and upgrading isn't an option, you could try adding "from __future__ import annotations" to the top of __init__.py.

Regards,
Wayne Mogg

Eko Purnomo

unread,
Jun 2, 2024, 11:36:11 AMJun 2
to us...@opendtect.org
Hi Wayne, 
Thanks for your reply and suggestion. 
Yes, I used python 3.8.
So, let me try to solve through the option you suggested. 
Once again, thank you so much.

Best regards
Eko Widi Purnomo
Reply all
Reply to author
Forward
0 new messages