Skip to content

"Error binding parameter 22: type 'list' is not supported" when adding website using sqlite engine #1042

@AndhikaWB

Description

@AndhikaWB
  • Python 3.12
  • Windows 11 x64

My requirements.txt:

streamlit==1.39.0
llmware==0.3.7
# Progress bar
ipywidgets==8.1.5
# Web scraping
beautifulsoup4==4.12.3
lxml==5.3.0

My sample code:

from llmware.configs import LLMWareConfig
from llmware.models import ModelCatalog
from llmware.library import Library

# Set engine to save library data
LLMWareConfig().set_active_db('sqlite')

lib = Library().create_new_library(
    account_name = 'dhika',
    library_name = 'test_lib'
)

urls = [
    'https://en.tempo.co/read/1915490/prabowo-indifferent-to-gibrans-alleged-fufufafa-account-says-dasco',
    # More URLs after that
]

print(len(urls))

for url in urls:
    lib.add_website(
        url = url,
        # Don't search site recursively
        get_links = False
    )

Error result:

image

image

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