- Issue created by @_renify_
- Merge request !110Issue #3477689: Ckeditor AI not compatible with 10.2 → (Closed) created by _renify_
- 🇩🇪Germany marcus_johansson
AI CKeditor will only ever be 10.3+ on purpose. The amount of work getting it to work on a system that soon will be EOL in 2 months was never prioritised.
I will leave this ticket open until 9th of december if someone wants to contribute fixes for it.
- 🇩🇪Germany marcus_johansson
@_renify_ - Ah, sorry, saw the MR now - did you actually try it? I'm 99% sure it will not work, but needs a total rewrite to work in 10.2.
If you did try it and it works, let me know and I'll look into merging it.
- 🇵🇭Philippines _renify_ cebu
@marcus_johansson
I test the ckeditor ai module on 10.2 but it fails. I was trying to install the module through composer install & i thought it was causing ckeditor ai module, but maybe it was wpai-inc/anthropic-sdk-php preventing it.Thanks.
- 🇵🇭Philippines _renify_ cebu
Is there code that depends on wpai-inc/anthropic-sdk-php ? If not, maybe we can remove that dependency. I'll create another MR
Thanks - 🇩🇪Germany marcus_johansson
Aho, got it - the issue itself is that you can't even get the AI module on Drupal 10.2? I can look into it as well, but could you also provide PHP version?
- 🇵🇭Philippines _renify_ cebu
Drupal version : 10.2.5
Site URI : http://provus.docksal.site
DB driver : mysql
DB hostname : db
DB port : 3306
DB username : user
DB name : default
Database : Connected
Drupal bootstrap : Successful
Default theme : provus_bootstrap
Admin theme : gin
PHP binary : /usr/local/bin/php
PHP config : /usr/local/etc/php/php.ini
PHP OS : Linux
PHP version : 8.3.6
Drush script : /var/www/vendor/bin/drush
Drush version : 12.5.1.0
Drush temp : /tmp
Drush configs : /var/www/vendor/drush/drush/drush.yml
/var/www/drush/drush.yml
Install profile : provus
Drupal root : /var/www/web
Site path : sites/default
Files, Public : sites/default/files
Files, Temp : /tmp - 🇩🇪Germany marcus_johansson
I have tried alpha7 and dev releasess with 10.2.8 and PHP 8.3.6 and it works to fetch. There is some other module you have installed that most likely does not work with the illuminate/support version.
Currently we can not remove wpai-inc/anthropic-sdk-php.
Could you try to figure out in your composer.lock file, which is the offender and if its a common module we will have to check if we need to exchange wpai-inc/anthropic-sdk-php.
- 🇮🇳India hiramanpatil
I am using Drupal core version 10.2.7 with PHP 8.1.6 and trying to install the AI module, but I am encountering the following errors:
$ composer require 'drupal/ai:^1.0@alpha'
./composer.json has been updated
Running composer update drupal/ai
Gathering patches for root package.
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.Problem 1
- drupal/ai 1.0.0-alpha7 requires wpai-inc/anthropic-sdk-php >=0.1.0 -> satisfiable by wpai-inc/anthropic-sdk-php[0.1.0, 0.2.0, 0.2.1, 9999999-dev].
- drupal/ai[1.0.0-alpha1, ..., 1.0.0-alpha6] require drupal/core ^10.3 || ^11 -> found drupal/core[10.3.0-beta1, ..., 10.4.x-dev, 11.0.0-alpha1, ..., 11.x-dev] but it conflicts with your root composer.json require (10.2.7).
- wpai-inc/anthropic-sdk-php 0.1.0 requires illuminate/support ^9.52|^10.0 -> found illuminate/support[v9.52.0, ..., 9.x-dev, v10.0.0, ..., 10.x-dev] but the package is fixed to v5.0.33 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- wpai-inc/anthropic-sdk-php[dev-main, 0.2.0, ..., 0.2.1] require illuminate/support ^9.52|^10.0|^11.0 -> found illuminate/support[v9.52.0, ..., 9.x-dev, v10.0.0, ..., 10.x-dev, v11.0.0, ..., 11.x-dev] but the package is fixed to v5.0.33 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires drupal/ai ^1.0@alpha -> satisfiable by drupal/ai[1.0.0-alpha1, ..., 1.0.0-alpha7].Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
------------
It seems the issue is caused by a version conflict between the illuminate/support package required by the wpai-inc/anthropic-sdk-php dependency of the drupal/ai module and the existing illuminate/support version in your project (v5.0.33). - 🇩🇪Germany marcus_johansson
Could you guys check in your composer.lock file which module need illuminate/support v5.0.33?
- 🇮🇳India hiramanpatil
Here is some information from composer.lock file.
{
"name": "gufy/pdftohtml-php",
"version": "v2.0.8",
"source": {
"type": "git",
"url": "https://github.com/mgufrone/pdf-to-html.git",
"reference": "4b0c2c60d48b8e3e08394a3f130606408e7f7d2e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mgufrone/pdf-to-html/zipball/4b0c2c60d48b8e...",
"reference": "4b0c2c60d48b8e3e08394a3f130606408e7f7d2e",
"shasum": ""
},
"require": {
"illuminate/config": "~5",
"paquettg/php-html-parser": "~1"
},
"require-dev": {
"phpunit/phpunit": "~4",
"satooshi/php-coveralls": "^1.0"
},
"type": "library",
"autoload": {
"psr-0": {
"Gufy": "src"
},
"psr-4": {
"Gufy\\PdfToHtml\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Mochamad Gufron",
"email": "mgufronefendi@gmail.com"
}
],
"description": "PDF to HTML converter with PHP using Poppler-utils",
"support": {
"issues": "https://github.com/mgufrone/pdf-to-html/issues",
"source": "https://github.com/mgufrone/pdf-to-html/tree/master"
},
"abandoned": true,
"time": "2016-10-11T21:43:48+00:00"
},"name": "illuminate/config",
"version": "v5.0.33",
"description": "The Illuminate Config package.",
"homepage": "http://laravel.com","name": "illuminate/contracts",
"version": "v5.0.33",
"description": "The Illuminate Contracts package.",
"homepage": "http://laravel.com","name": "illuminate/support",
"version": "v5.0.33",
"description": "The Illuminate Support package.",
"homepage": "http://laravel.com", - 🇩🇪Germany marcus_johansson
Thanks, could you go deeper and check who requires gufy/pdftohtml-php, until you come to the level that is in composer.json.
You should be able to use composer why until you find it, so start with
`composer why gufy/pdftohtml-php` and then work your way up.
- 🇵🇭Philippines _renify_ cebu
I try upgrading to 10.2.8 & it works.
I believe there was conflict with Provus dependency https://www.drupal.org/project/provus → - 🇮🇳India hiramanpatil
@marcus_johansson
$ composer why gufy/pdftohtml-php
drupal-composer/drupal-project dev-master requires gufy/pdftohtml-php (~2) - 🇩🇪Germany marcus_johansson
@hiramanpatil - is that the final root project? If I look here there is no dev-master of that project: https://github.com/drupal-composer/drupal-project
Anyway - if you do not get this working you need to open tickets at those projects, we are using an updated version of the package (10), the composer file is pointing to you using an outdated 9 year old version of the package in 5.0.33, see: https://github.com/illuminate/support/tree/5.0. Independent on this issue I would advise you to update this, since it might have security holes in it.
If you have a popular module that is supporting modern packages that has dependency collisions with the AI module, we might rethink using the package, but in this case I would advise you to update.
I would close this ticket in 2 weeks, unless there is a module you can point to, that collides with the AI module.