Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Please update tiktoken > 0.4 for canopy-sdk #318

Open
ForkedInTime opened this issue Mar 8, 2024 · 0 comments
Open

Please update tiktoken > 0.4 for canopy-sdk #318

ForkedInTime opened this issue Mar 8, 2024 · 0 comments

Comments

@ForkedInTime
Copy link

tiktoken is a requirement for canopy-sdk. During canopy use via jupyter: llama index is outdated:

warnings.filterwarnings('ignore')
from trulens_eval.tru_custom_app import instrument

from canopy.context_engine import ContextEngine
instrument.method(ContextEngine, "query")

from canopy.chat_engine import ChatEngine
instrument.method(ChatEngine, "chat")

Using legacy llama_index version None. Consider upgrading to 0.10.0 or later.
(ok but how? what is the package name?)

Installing collected packages: tiktoken
Attempting uninstall: tiktoken
Found existing installation: tiktoken 0.6.0
Uninstalling tiktoken-0.6.0:
Successfully uninstalled tiktoken-0.6.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
langchain-openai 0.0.7 requires tiktoken<1,>=0.5.2, but you have tiktoken 0.3.3 which is incompatible. (I should not have to create a new environment just for canopy)
Successfully installed tiktoken-0.3.3

Downloading tiktoken-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 18.9 MB/s eta 0:00:00
Installing collected packages: tiktoken
Attempting uninstall: tiktoken
Found existing installation: tiktoken 0.3.3
Uninstalling tiktoken-0.3.3:
Successfully uninstalled tiktoken-0.3.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
canopy-sdk 0.8.1 requires tiktoken<0.4.0,>=0.3.3, but you have tiktoken 0.6.0 which is incompatible.

@peterj peterj mentioned this issue Apr 27, 2024
7 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant