/usr/local/lib/python3.11/site-packages/pydantic/_internal/_config.py:341: UserWarning: Valid config keys have changed in V2:
'allow_population_by_field_name' has been renamed to 'populate_by_name'
'smart_union' has been removed
warnings.warn(message, UserWarning)
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/fastavro/read.py", line 2, in
from . import _read
File "fastavro/_read.pyx", line 10, in init fastavro._read
File "/usr/local/lib/python3.11/lzma.py", line 27, in
from _lzma import *
ModuleNotFoundError: No module named '_lzma'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/data/PycharmProjects/Dignity/main.py", line 10, in
from Utilities.Memory import Memory
File "/home/data/PycharmProjects/Dignity/Utilities/Memory.py", line 4, in
from Utilities.Journal import Journal
File "/home/data/PycharmProjects/Dignity/Utilities/Journal.py", line 7, in
import agentforge.tools.SemanticChunk as Chunker
File "/home/data/PycharmProjects/AgentForge/src/agentforge/tools/SemanticChunk.py", line 1, in
from semantic_chunkers import StatisticalChunker
File "/usr/local/lib/python3.11/site-packages/semantic_chunkers/init.py", line 1, in
from semantic_chunkers.chunkers import (
File "/usr/local/lib/python3.11/site-packages/semantic_chunkers/chunkers/init.py", line 1, in
from semantic_chunkers.chunkers.base import BaseChunker
File "/usr/local/lib/python3.11/site-packages/semantic_chunkers/chunkers/base.py", line 5, in
from semantic_router.encoders.base import BaseEncoder
File "/usr/local/lib/python3.11/site-packages/semantic_router/init.py", line 1, in
from semantic_router.hybrid_layer import HybridRouteLayer
File "/usr/local/lib/python3.11/site-packages/semantic_router/hybrid_layer.py", line 6, in
from semantic_router.encoders import (
File "/usr/local/lib/python3.11/site-packages/semantic_router/encoders/init.py", line 7, in
from semantic_router.encoders.cohere import CohereEncoder
File "/usr/local/lib/python3.11/site-packages/semantic_router/encoders/cohere.py", line 4, in
import cohere
File "/usr/local/lib/python3.11/site-packages/cohere/init.py", line 155, in
from .aws_client import AwsClient
File "/usr/local/lib/python3.11/site-packages/cohere/aws_client.py", line 16, in
from .client import Client, ClientEnvironment
File "/usr/local/lib/python3.11/site-packages/cohere/client.py", line 21, in
from .utils import wait, async_wait, merge_embed_responses, SyncSdkUtils, AsyncSdkUtils
File "/usr/local/lib/python3.11/site-packages/cohere/utils.py", line 9, in
from fastavro import parse_schema, reader, writer
File "/usr/local/lib/python3.11/site-packages/fastavro/init.py", line 47, in
import fastavro.read
File "/usr/local/lib/python3.11/site-packages/fastavro/read.py", line 4, in
from . import _read_py as _read # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastavro/_read_py.py", line 9, in
import lzma
File "/usr/local/lib/python3.11/lzma.py", line 27, in
from _lzma import *
ModuleNotFoundError: No module named '_lzma'
I get the following error:
/usr/local/lib/python3.11/site-packages/pydantic/_internal/_config.py:341: UserWarning: Valid config keys have changed in V2:
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/data/PycharmProjects/Dignity/main.py", line 10, in
from Utilities.Memory import Memory
File "/home/data/PycharmProjects/Dignity/Utilities/Memory.py", line 4, in
from Utilities.Journal import Journal
File "/home/data/PycharmProjects/Dignity/Utilities/Journal.py", line 7, in
import agentforge.tools.SemanticChunk as Chunker
File "/home/data/PycharmProjects/AgentForge/src/agentforge/tools/SemanticChunk.py", line 1, in
from semantic_chunkers import StatisticalChunker
File "/usr/local/lib/python3.11/site-packages/semantic_chunkers/init.py", line 1, in
from semantic_chunkers.chunkers import (
File "/usr/local/lib/python3.11/site-packages/semantic_chunkers/chunkers/init.py", line 1, in
from semantic_chunkers.chunkers.base import BaseChunker
File "/usr/local/lib/python3.11/site-packages/semantic_chunkers/chunkers/base.py", line 5, in
from semantic_router.encoders.base import BaseEncoder
File "/usr/local/lib/python3.11/site-packages/semantic_router/init.py", line 1, in
from semantic_router.hybrid_layer import HybridRouteLayer
File "/usr/local/lib/python3.11/site-packages/semantic_router/hybrid_layer.py", line 6, in
from semantic_router.encoders import (
File "/usr/local/lib/python3.11/site-packages/semantic_router/encoders/init.py", line 7, in
from semantic_router.encoders.cohere import CohereEncoder
File "/usr/local/lib/python3.11/site-packages/semantic_router/encoders/cohere.py", line 4, in
import cohere
File "/usr/local/lib/python3.11/site-packages/cohere/init.py", line 155, in
from .aws_client import AwsClient
File "/usr/local/lib/python3.11/site-packages/cohere/aws_client.py", line 16, in
from .client import Client, ClientEnvironment
File "/usr/local/lib/python3.11/site-packages/cohere/client.py", line 21, in
from .utils import wait, async_wait, merge_embed_responses, SyncSdkUtils, AsyncSdkUtils
File "/usr/local/lib/python3.11/site-packages/cohere/utils.py", line 9, in
from fastavro import parse_schema, reader, writer
File "/usr/local/lib/python3.11/site-packages/fastavro/init.py", line 47, in
import fastavro.read
File "/usr/local/lib/python3.11/site-packages/fastavro/read.py", line 4, in
from . import _read_py as _read # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastavro/_read_py.py", line 9, in
import lzma
File "/usr/local/lib/python3.11/lzma.py", line 27, in
from _lzma import *
ModuleNotFoundError: No module named '_lzma'
Seems like maybe something changed on cohere?