Error while installing verba offline

Description

I got the following error while installing it locally:
AttributeError: ‘InputText’ object has no attribute ‘model_dump’

Server Setup Information

hlib>=1.1.0->weaviate-client==3.23.1->goldenverba) (1.15.1)
Python: 3.10

Any additional Information

:information_source: Setting up client
:information_source: Using Weaviate Embedded
Started /Users/?/.cache/weaviate-embedded: process ID 54469
{“action”:“startup”,“default_vectorizer_module”:“none”,“level”:“info”,“msg”:“the default vectorizer modules is set to "none", as a result all new schema classes without an explicit vectorizer setting, will use this vectorizer”,“time”:“2024-06-27T15:34:13+02:00”}
{“action”:“startup”,“auto_schema_enabled”:true,“level”:“info”,“msg”:“auto schema enabled setting is set to "true"”,“time”:“2024-06-27T15:34:13+02:00”}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_cache_minilm_4iD4rqcKWgVO”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:61916}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_cache_ollama_wD58RBlbk2fn”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:222500}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_cache_text2vec_cohere_HAy7I9ZAaQEs”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:60625}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_cache_text2vec_openai_i9TxFte4fEW6”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:53209}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_chunk_minilm_uxj6Ir4EWkyx”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:57833}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_chunk_ollama_mvMMPMO7aPus”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:57500}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_chunk_text2vec_cohere_XHmRLDFh8MaI”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:56333}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_chunk_text2vec_openai_4CrqldHwQ1by”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:52834}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_config_ewWGsf7RRhSJ”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:58458}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_document_minilm_v3v7eeBXiJlT”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:62209}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_document_ollama_v5TeWWj2wow1”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:58875}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_document_text2vec_cohere_IjKVe10s5dWq”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:77750}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_document_text2vec_openai_feVObhdfshEL”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:57416}
{“action”:“hnsw_vector_cache_prefill”,“count”:3000,“index_id”:“verba_suggestion_OeZouxOz6R3V”,“level”:“info”,“limit”:1000000000000,“msg”:“prefilled vector cache”,“time”:“2024-06-27T15:34:14+02:00”,“took”:56834}
{“level”:“warning”,“msg”:“Multiple vector spaces are present, GraphQL Explore and REST API list objects endpoint module include params has been disabled as a result.”,“time”:“2024-06-27T15:34:14+02:00”}
{“action”:“grpc_startup”,“level”:“info”,“msg”:“grpc server listening at [::]:50051”,“time”:“2024-06-27T15:34:14+02:00”}
{“action”:“restapi_management”,“level”:“info”,“msg”:“Serving weaviate at http://127.0.0.1:6666”,“time”:“2024-06-27T15:34:14+02:00”}
:heavy_check_mark: Connected to Weaviate
:information_source: MPS is available. Using MPS…
:information_source: Setting up components
Process SpawnProcess-1:
Traceback (most recent call last):
File “/Users/?/anaconda3/lib/python3.11/multiprocessing/process.py”, line 314, in _bootstrap
self.run()
File “/Users/?/anaconda3/lib/python3.11/multiprocessing/process.py”, line 108, in run
self._target(*self._args, **self._kwargs)
File “/Users/?/anaconda3/lib/python3.11/site-packages/uvicorn/_subprocess.py”, line 78, in subprocess_started
target(sockets=sockets)
File “/Users/?/anaconda3/lib/python3.11/site-packages/uvicorn/server.py”, line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/?/anaconda3/lib/python3.11/asyncio/runners.py”, line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File “/Users/?/anaconda3/lib/python3.11/asyncio/runners.py”, line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “uvloop/loop.pyx”, line 1517, in uvloop.loop.Loop.run_until_complete
File “/Users/?/anaconda3/lib/python3.11/site-packages/uvicorn/server.py”, line 69, in serve
await self._serve(sockets)
File “/Users/?/anaconda3/lib/python3.11/site-packages/uvicorn/server.py”, line 76, in _serve
config.load()
File “/Users/?/anaconda3/lib/python3.11/site-packages/uvicorn/config.py”, line 433, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/?/anaconda3/lib/python3.11/site-packages/uvicorn/importer.py”, line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/?/anaconda3/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1147, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/Users/?/anaconda3/lib/python3.11/site-packages/goldenverba/server/api.py”, line 38, in
setup_managers(manager)
File “/Users/?/anaconda3/lib/python3.11/site-packages/goldenverba/server/util.py”, line 13, in setup_managers
config = load_config(manager)
^^^^^^^^^^^^^^^^^^^^
File “/Users/?/anaconda3/lib/python3.11/site-packages/goldenverba/server/util.py”, line 227, in load_config
return get_config(manager)
^^^^^^^^^^^^^^^^^^^
File “/Users/?/anaconda3/lib/python3.11/site-packages/goldenverba/server/util.py”, line 40, in get_config
“components”: {
^
File “/Users/?/anaconda3/lib/python3.11/site-packages/goldenverba/server/util.py”, line 41, in
reader: readers[reader].get_meta(
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/?/anaconda3/lib/python3.11/site-packages/goldenverba/components/interfaces.py”, line 47, in get_meta
“config”: {_c: self.config[_c].model_dump() for _c in self.config},
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/?/anaconda3/lib/python3.11/site-packages/goldenverba/components/interfaces.py”, line 47, in
“config”: {_c: self.config[_c].model_dump() for _c in self.config},
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘InputText’ object has no attribute ‘model_dump’

Hi @Melodlebron !!

Welcome our community :hugs:

Are you running this on Windows?

Also, do you get this message when installing or running? :thinking:

Can you share here the steps you did for installing?

Thanks!

Hi, Thanks for your answer!

It is running on an M1 Mac.
I followed these steps: https://github.com/weaviate/Verba?tab=readme-ov-file#how-to-deploy-with-pip and when I run:

verba start

I get those errors.
Do you need further information?

Hi!

This trace back points to a wrong component configuration in:

self.config[_c] is expecting an object where it can call model_dump(), but it’s finding only a string.

I have just reproduced the following steps in order to do a clean install of Verba:

# WARNING! this remove all previous content that was stored in Weaviate Embedded
rm -rf ~/.local/share/weaviate/*
mkdir verba-run
cd verba-run
python -m venv .venv
source .venv/bin/activate
pip install goldenverba
verba start

Make sure you doesn’t have any environment variable configured that may be interfering.

Here you find possible env vars:

Let me know if this helps.

I am still getting the same error.

INFO:     Will watch for changes in these directories: ['/Users/./Downloads/GitHub/verba2']
INFO:     Uvicorn running on http://localhost:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [3736] using WatchFiles
ℹ Setting up client
ℹ Using Weaviate Embedded
Started /Users/./.cache/weaviate-embedded: process ID 3743
{"action":"startup","default_vectorizer_module":"none","level":"info","msg":"the default vectorizer modules is set to \"none\", as a result all new schema classes without an explicit vectorizer setting, will use this vectorizer","time":"2024-07-01T20:23:23+02:00"}
{"action":"startup","auto_schema_enabled":true,"level":"info","msg":"auto schema enabled setting is set to \"true\"","time":"2024-07-01T20:23:23+02:00"}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_cache_minilm_685HDkAst1vf","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":79041}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_cache_ollama_SmEQFYsFF5ik","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":61459}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_cache_text2vec_cohere_it8mYWU1zoqX","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":190666}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_cache_text2vec_openai_jfmS6cD2GndE","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":56250}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_chunk_minilm_3YV80OTrXT1O","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":57417}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_chunk_ollama_besNv5NVUwhx","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":57458}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_chunk_text2vec_cohere_oiiQqd5w7iMS","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":64459}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_chunk_text2vec_openai_ufnGf0vizDfU","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":64792}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_config_VipFyvr74y8x","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":78834}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_document_minilm_ajTaZr0c1JE4","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":62250}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_document_ollama_kv0o5gdM3tb9","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":80375}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_document_text2vec_cohere_Xb7l7aIkYVKD","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":91083}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_document_text2vec_openai_HVBcRRvf0MUE","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":60583}
{"action":"hnsw_vector_cache_prefill","count":3000,"index_id":"verba_suggestion_g7LCBagdlqlg","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-07-01T20:23:23+02:00","took":58417}
{"level":"warning","msg":"Multiple vector spaces are present, GraphQL Explore and REST API list objects endpoint module include params has been disabled as a result.","time":"2024-07-01T20:23:23+02:00"}
{"action":"grpc_startup","level":"info","msg":"grpc server listening at [::]:50051","time":"2024-07-01T20:23:23+02:00"}
{"action":"restapi_management","level":"info","msg":"Serving weaviate at http://127.0.0.1:6666","time":"2024-07-01T20:23:23+02:00"}
✔ Connected to Weaviate
ℹ MPS is available. Using MPS...
ℹ Setting up components
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/Users/./anaconda3/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/Users/./anaconda3/lib/python3.11/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/./anaconda3/lib/python3.11/site-packages/uvicorn/_subprocess.py", line 78, in subprocess_started
    target(sockets=sockets)
  File "/Users/./anaconda3/lib/python3.11/site-packages/uvicorn/server.py", line 65, in run
    return asyncio.run(self.serve(sockets=sockets))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/./anaconda3/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/Users/./anaconda3/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
  File "/Users/./anaconda3/lib/python3.11/site-packages/uvicorn/server.py", line 69, in serve
    await self._serve(sockets)
  File "/Users/./anaconda3/lib/python3.11/site-packages/uvicorn/server.py", line 76, in _serve
    config.load()
  File "/Users/./anaconda3/lib/python3.11/site-packages/uvicorn/config.py", line 433, in load
    self.loaded_app = import_from_string(self.app)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/./anaconda3/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string
    module = importlib.import_module(module_str)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/./anaconda3/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/./anaconda3/lib/python3.11/site-packages/goldenverba/server/api.py", line 38, in <module>
    setup_managers(manager)
  File "/Users/./anaconda3/lib/python3.11/site-packages/goldenverba/server/util.py", line 13, in setup_managers
    config = load_config(manager)
             ^^^^^^^^^^^^^^^^^^^^
  File "/Users/./anaconda3/lib/python3.11/site-packages/goldenverba/server/util.py", line 227, in load_config
    return get_config(manager)
           ^^^^^^^^^^^^^^^^^^^
  File "/Users/./anaconda3/lib/python3.11/site-packages/goldenverba/server/util.py", line 40, in get_config
    "components": {
                  ^
  File "/Users/./anaconda3/lib/python3.11/site-packages/goldenverba/server/util.py", line 41, in <dictcomp>
    reader: readers[reader].get_meta(
            ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/./anaconda3/lib/python3.11/site-packages/goldenverba/components/interfaces.py", line 47, in get_meta
    "config": {_c: self.config[_c].model_dump() for _c in self.config},
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/./anaconda3/lib/python3.11/site-packages/goldenverba/components/interfaces.py", line 47, in <dictcomp>
    "config": {_c: self.config[_c].model_dump() for _c in self.config},
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'InputText' object has no attribute 'model_dump'
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=0 mode='r' encoding='UTF-8'>
{"action":"restapi_management","level":"info","msg":"Shutting down... ","time":"2024-07-01T20:23:24+02:00"}
{"action":"restapi_management","level":"info","msg":"Stopped serving weaviate at http://127.0.0.1:6666","time":"2024-07-01T20:23:24+02:00"}

Is there any other workaround? Can I try something different, e.g. docker?

Thanks for your help!

Hi!

Yes, if you could try that on docker.

Really not sure what is hapening on this error. It would be interesting to open an issue on Verba’s repo.