Skip to content

ImportError: cannot import name 'ReadbleLogRecord' from 'opentelemetry.sdk._logs' #78

@sapbotgit

Description

@sapbotgit
  • Open WebUI v0.0.1
  • OS: Linux Mint 22.2
  • Package: .deb
  • Installation: with Open Terminal

Log:

INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade  -> 7e5b5dc7342b, init
INFO  [alembic.runtime.migration] Running upgrade 7e5b5dc7342b -> ca81bd47c050, Add config table
INFO  [alembic.runtime.migration] Running upgrade ca81bd47c050 -> c0fbf31ca0db, Update file table
INFO  [alembic.runtime.migration] Running upgrade c0fbf31ca0db -> 6a39f3d8e55c, Add knowledge table
Creating knowledge table
Migrating data from document table to knowledge table
INFO  [alembic.runtime.migration] Running upgrade 6a39f3d8e55c -> 242a2047eae0, Update chat table
Converting 'chat' column to JSON
Renaming 'chat' column to 'old_chat'
Adding new 'chat' column of type JSON
Dropping 'old_chat' column
INFO  [alembic.runtime.migration] Running upgrade 242a2047eae0 -> 1af9b942657b, Migrate tags
INFO  [alembic.runtime.migration] Running upgrade 1af9b942657b -> 3ab32c4b8f59, Update tags
Primary Key: {'name': None, 'constrained_columns': []}
Unique Constraints: [{'name': 'uq_id_user_id', 'column_names': ['id', 'user_id']}]
Indexes: [{'name': 'tag_id', 'column_names': ['id'], 'unique': 1, 'dialect_options': {}}]
Creating new primary key with 'id' and 'user_id'.
Dropping unique constraint: uq_id_user_id
Dropping unique index: tag_id
INFO  [alembic.runtime.migration] Running upgrade 3ab32c4b8f59 -> c69f45358db4, Add folder table
INFO  [alembic.runtime.migration] Running upgrade c69f45358db4 -> c29facfe716b, Update file table path
INFO  [alembic.runtime.migration] Running upgrade c29facfe716b -> af906e964978, Add feedback table
INFO  [alembic.runtime.migration] Running upgrade af906e964978 -> 4ace53fd72c8, Update folder table and change DateTime to BigInteger for timestamp fields
INFO  [alembic.runtime.migration] Running upgrade 4ace53fd72c8 -> 922e7a387820, Add group table
INFO  [alembic.runtime.migration] Running upgrade 922e7a387820 -> 57c599a3cb57, Add channel table
INFO  [alembic.runtime.migration] Running upgrade 57c599a3cb57 -> 7826ab40b532, Update file table
INFO  [alembic.runtime.migration] Running upgrade 7826ab40b532 -> 3781e22d8b01, Update message & channel tables
INFO  [alembic.runtime.migration] Running upgrade 3781e22d8b01 -> 9f0c9cd09105, Add note table
INFO  [alembic.runtime.migration] Running upgrade 9f0c9cd09105 -> d31026856c01, Update folder table data
INFO  [alembic.runtime.migration] Running upgrade d31026856c01 -> 018012973d35, Add indexes
INFO  [alembic.runtime.migration] Running upgrade 018012973d35 -> 3af16a1c9fb6, update user table
INFO  [alembic.runtime.migration] Running upgrade 3af16a1c9fb6 -> 38d63c18f30f, Add oauth_session table
INFO  [alembic.runtime.migration] Running upgrade 38d63c18f30f -> a5c220713937, Add reply_to_id column to message
INFO  [alembic.runtime.migration] Running upgrade a5c220713937 -> 37f288994c47, add_group_member_table
[]
INFO  [alembic.runtime.migration] Running upgrade 37f288994c47 -> 2f1211949ecc, Update messages and channel member table
INFO  [alembic.runtime.migration] Running upgrade 2f1211949ecc -> b10670c03dd5, Update user table
INFO  [alembic.runtime.migration] Running upgrade b10670c03dd5 -> 90ef40d4714e, Update channel and channel members table
INFO  [alembic.runtime.migration] Running upgrade 90ef40d4714e -> 3e0e00844bb0, Add knowledge_file table
INFO  [alembic.runtime.migration] Running upgrade 3e0e00844bb0 -> 6283dc0e4d8d, Add channel file table
INFO  [alembic.runtime.migration] Running upgrade 6283dc0e4d8d -> 81cc2ce44d79, Update channel file and knowledge table
INFO  [alembic.runtime.migration] Running upgrade 81cc2ce44d79 -> c440947495f3, Add chat_file table
INFO  [alembic.runtime.migration] Running upgrade c440947495f3 -> 374d2f66af06, Add prompt history table
INFO  [alembic.runtime.migration] Running upgrade 374d2f66af06 -> 8452d01d26d7, Add chat_message table
INFO  [alembic.runtime.migration] Running upgrade 8452d01d26d7 -> f1e2d3c4b5a6, Add access_grant table
INFO  [alembic.runtime.migration] Running upgrade f1e2d3c4b5a6 -> a1b2c3d4e5f6, Add skill table
INFO  [alembic.runtime.migration] Running upgrade a1b2c3d4e5f6 -> b2c3d4e5f6a7, add scim column to user table
WARNI [open_webui.env] 

WARNING: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS.

╭───────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────
───────────────────────────────────╮
│ /home/sapbot/.config/open-webui/python/lib/python3.12/site-packages/open_webui/__init__.py:68 in serve                                                            
                                   │
│                                                                                                                                                                   
                                   │
│   65 │   │   │   os.environ['USE_CUDA_DOCKER'] = 'false'                                                                                                          
                                   │
│   66 │   │   │   os.environ['LD_LIBRARY_PATH'] = ':'.join(LD_LIBRARY_PATH)                                                                                        
                                   │
│   67 │                                                                                                                                                            
                                   │
│ ❱ 68 │   import open_webui.main  # noqa: F401                                                                                                                     
                                   │
│   69 │   from open_webui.env import UVICORN_WORKERS  # Import the workers setting                                                                                 
                                   │
│   70 │                                                                                                                                                            
                                   │
│   71 │   uvicorn.run(                                                                                                                                             
                                   │
│                                                                                                                                                                   
                                   │
│ /home/sapbot/.config/open-webui/python/lib/python3.12/site-packages/open_webui/main.py:61 in <module>                                                             
                                   │
│                                                                                                                                                                   
                                   │
│     58 from starsessions.stores.redis import RedisStore                                                                                                           
                                   │
│     59                                                                                                                                                            
                                   │
│     60 from open_webui.utils import logger                                                                                                                        
                                   │
│ ❱   61 from open_webui.utils.audit import AuditLevel, AuditLoggingMiddleware                                                                                      
                                   │
│     62 from open_webui.utils.logger import start_logger                                                                                                           
                                   │
│     63 from open_webui.socket.main import (                                                                                                                       
                                   │
│     64 │   MODELS,                                                                                                                                                
                                   │
│                                                                                                                                                                   
                                   │
│ /home/sapbot/.config/open-webui/python/lib/python3.12/site-packages/open_webui/utils/audit.py:28 in <module>                                                      
                                   │
│                                                                                                                                                                   
                                   │
│    25 from starlette.requests import Request                                                                                                                      
                                   │
│    26                                                                                                                                                             
                                   │
│    27 from open_webui.env import AUDIT_LOG_LEVEL, AUDIT_INCLUDED_PATHS, MAX_BODY_LOG_SIZE                                                                         
                                   │
│ ❱  28 from open_webui.utils.auth import get_current_user, get_http_authorization_cred                                                                             
                                   │
│    29 from open_webui.models.users import UserModel                                                                                                               
                                   │
│    30                                                                                                                                                             
                                   │
│    31 if TYPE_CHECKING:                                                                                                                                           
                                   │
│                                                                                                                                                                   
                                   │
│ /home/sapbot/.config/open-webui/python/lib/python3.12/site-packages/open_webui/utils/auth.py:25 in <module>                                                       
                                   │
│                                                                                                                                                                   
                                   │
│    22 from opentelemetry import trace                                                                                                                             
                                   │
│    23                                                                                                                                                             
                                   │
│    24                                                                                                                                                             
                                   │
│ ❱  25 from open_webui.utils.access_control import has_permission                                                                                                  
                                   │
│    26 from open_webui.models.users import Users                                                                                                                   
                                   │
│    27 from open_webui.models.auths import Auths                                                                                                                   
                                   │
│    28                                                                                                                                                             
                                   │
│                                                                                                                                                                   
                                   │
│ /home/sapbot/.config/open-webui/python/lib/python3.12/site-packages/open_webui/utils/access_control/__init__.py:12 in <module>                                    
                                   │
│                                                                                                                                                                   
                                   │
│     9 │   has_user_access_grant,                                                                                                                                  
                                   │
│    10 │   strip_user_access_grants,                                                                                                                               
                                   │
│    11 )                                                                                                                                                           
                                   │
│ ❱  12 from open_webui.config import DEFAULT_USER_PERMISSIONS                                                                                                      
                                   │
│    13                                                                                                                                                             
                                   │
│    14 from sqlalchemy.orm import Session                                                                                                                          
                                   │
│    15                                                                                                                                                             
                                   │
│                                                                                                                                                                   
                                   │
│ /home/sapbot/.config/open-webui/python/lib/python3.12/site-packages/open_webui/config.py:2167 in <module>                                                         
                                   │
│                                                                                                                                                                   
                                   │
│   2164 CHROMA_DATA_PATH = f'{DATA_DIR}/vector_db'                                                                                                                 
                                   │
│   2165                                                                                                                                                            
                                   │
│   2166 if VECTOR_DB == 'chroma':                                                                                                                                  
                                   │
│ ❱ 2167 │   import chromadb                                                                                                                                        
                                   │
│   2168 │                                                                                                                                                          
                                   │
│   2169 │   CHROMA_TENANT = os.environ.get('CHROMA_TENANT', chromadb.DEFAULT_TENANT)                                                                               
                                   │
│   2170 │   CHROMA_DATABASE = os.environ.get('CHROMA_DATABASE', chromadb.DEFAULT_DATABASE)                                                                         
                                   │
│                                                                                                                                                                   
                                   │
│ /home/sapbot/.config/open-webui/python/lib/python3.12/site-packages/chromadb/__init__.py:8 in <module>                                                            
                                   │
│                                                                                                                                                                   
                                   │
│     5 │   AdminClient as AdminClientCreator,                                                                                                                      
                                   │
│     6 )                                                                                                                                                           
                                   │
│     7 from chromadb.api.async_client import AsyncClient as AsyncClientCreator                                                                                     
                                   │
│ ❱   8 from chromadb.auth.token_authn import TokenTransportHeader                                                                                                  
                                   │
│     9 import chromadb.config                                                                                                                                      
                                   │
│    10 from chromadb.config import DEFAULT_DATABASE, DEFAULT_TENANT, Settings                                                                                      
                                   │
│    11 from chromadb.api import AdminAPI, AsyncClientAPI, ClientAPI                                                                                                
                                   │
│                                                                                                                                                                   
                                   │
│ /home/sapbot/.config/open-webui/python/lib/python3.12/site-packages/chromadb/auth/token_authn/__init__.py:24 in <module>                                          
                                   │
│                                                                                                                                                                   
                                   │
│    21 )                                                                                                                                                           
                                   │
│    22 from chromadb.config import System                                                                                                                          
                                   │
│    23 from chromadb.errors import ChromaAuthError                                                                                                                 
                                   │
│ ❱  24 from chromadb.telemetry.opentelemetry import (                                                                                                              
                                   │
│    25 │   OpenTelemetryGranularity,                                                                                                                               
                                   │
│    26 │   trace_method,                                                                                                                                           
                                   │
│    27 )                                                                                                                                                           
                                   │
│                                                                                                                                                                   
                                   │
│ /home/sapbot/.config/open-webui/python/lib/python3.12/site-packages/chromadb/telemetry/opentelemetry/__init__.py:13 in <module>                                   
                                   │
│                                                                                                                                                                   
                                   │
│    10 from opentelemetry.sdk.trace.export import (                                                                                                                
                                   │
│    11 │   BatchSpanProcessor,                                                                                                                                     
                                   │
│    12 )                                                                                                                                                           
                                   │
│ ❱  13 from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter                                                                          
                                   │
│    14                                                                                                                                                             
                                   │
│    15 from chromadb.config import Component                                                                                                                       
                                   │
│    16 from chromadb.config import System                                                                                                                          
                                   │
│                                                                                                                                                                   
                                   │
│ /home/sapbot/.config/open-webui/python/lib/python3.12/site-packages/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py:25 in <module>              
                                   │
│                                                                                                                                                                   
                                   │
│    22 from opentelemetry.exporter.otlp.proto.common.trace_encoder import (                                                                                        
                                   │
│    23 │   encode_spans,                                                                                                                                           
                                   │
│    24 )                                                                                                                                                           
                                   │
│ ❱  25 from opentelemetry.exporter.otlp.proto.grpc.exporter import (  # noqa: F401                                                                                 
                                   │
│    26 │   OTLPExporterMixin,                                                                                                                                      
                                   │
│    27 │   _get_credentials,                                                                                                                                       
                                   │
│    28 │   environ_to_compression,                                                                                                                                 
                                   │
│                                                                                                                                                                   
                                   │
│ /home/sapbot/.config/open-webui/python/lib/python3.12/site-packages/opentelemetry/exporter/otlp/proto/grpc/exporter.py:89 in <module>                             
                                   │
│                                                                                                                                                                   
                                   │
│    86 │   KeyValue,                                                                                                                                               
                                   │
│    87 )                                                                                                                                                           
                                   │
│    88 from opentelemetry.proto.resource.v1.resource_pb2 import Resource  # noqa: F401                                                                             
                                   │
│ ❱  89 from opentelemetry.sdk._logs import ReadableLogRecord                                                                                                       
                                   │
│    90 from opentelemetry.sdk._logs.export import LogRecordExportResult                                                                                            
                                   │
│    91 from opentelemetry.sdk._shared_internal import DuplicateFilter                                                                                              
                                   │
│    92 from opentelemetry.sdk.environment_variables import (                                                                                                       
                                   │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────────────────────────────────╯
ImportError: cannot import name 'ReadableLogRecord' from 'opentelemetry.sdk._logs' (/home/sapbot/.local/lib/python3.12/site-packages/opentelemetry/sdk/_logs/__init_
_.py)

[Process exited with code 1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions