Closed TimotejZavski closed 9 months ago
Your file named token.py
is clobbering the standard library module named token
. You can see this by reading the stacktrace.
Coincidentally, I have a PR open against CPython that will make the Python interpreter itself provide a better error message in such cases: https://github.com/python/cpython/pull/113769
I just copied code from readme:
and it gave me this error:
I installed tiktoken before with pip..