Module required drupal/ai-ai_search ^1.2, but ai-ai_search project is deprecated. It was moved to drupal/ai.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

siva01 created an issue. See original summary.

stmh’s picture

Not sure where this is coming from. the composer.json requires drupal/ai and the module dependencies lists ai:ai_search (^1.2)

I think drupal/ai-ai_search is a transitive package. composer info reports

name     : drupal/ai-ai_search
descrip. :
keywords :
versions : * 1.2.8
type     : metapackage
license  : GNU General Public License v2.0 or later (GPL-2.0-or-later) (OSI approved) https://spdx.org/licenses/GPL-2.0-or-later.html#licenseText
homepage : https://www.drupal.org/project/ai
source   : []
dist     : []
path     : null
names    : drupal/ai-ai_search

support
source : https://git.drupalcode.org/project/ai
kumkum29’s picture

Hello,

I tried updating the module to the latest version, but I'm getting this error:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires drupal/ai_vdb_provider_qdrant 1.0.x-dev@dev -> satisfiable by drupal/ai_vdb_provider_qdrant[1.0.x-dev (alias of dev-1.0.x)].
- drupal/ai_vdb_provider_qdrant dev-1.0.x requires drupal/search_api ^1.x-dev -> found drupal/search_api[dev-1.x, 1.x-dev (alias of dev-1.x)] but it does not match your minimum-stability.
- drupal/ai_vdb_provider_qdrant 1.0.x-dev is an alias of drupal/ai_vdb_provider_qdrant dev-1.0.x and thus requires it to be installed too.

How can I fix this?

Thanks.

stmh’s picture

The issue is that drupal/ai_vdb_provider_qdrant requires drupal/search_api ^1.x-dev, which doesn't meet your project's minimum-stability setting.

The quickest fix is to allow that specific dev dependency by adding it to your composer.json:

composer require drupal/search_api:1.x-dev

theodorosploumis made their first commit to this issue’s fork.

marios anagnostopoulos made their first commit to this issue’s fork.

marios anagnostopoulos’s picture

As @theodorosploumis noted in pr 3, the module should not depend on another module's dev version if possible.

I Updated the pr branch, and this its good to go.

Best regards

stmh’s picture

thanks, merged to 1.0.x

marios anagnostopoulos’s picture

Awesome, thanks, looking forward to the next release.

Do you think we could also bump the ai_search dependency to 2.x?

stmh’s picture

Status: Active » Fixed

we can do this in a new 2.x branch, as requiring ai_search 2.x pulls in the whole 2.x versions of ai -- which are afaik not stable yet. Please create a new issue for that

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.