-1

I am having a problem today installing the league/csv bundle (v9.27) on my Symfony (v7.2) project with doctrine/orm (v3.3)! When I run command php require league/csv, I get this message:

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

  Problem 1
    - Root composer.json requires clickandmortar/import-bundle ^1.0 -> satisfiable by clickandmortar/import-bundle[1.0, 1.0.1].
    - clickandmortar/import-bundle[1.0, ..., 1.0.1] require doctrine/orm ^2.4.8 -> found doctrine/orm[v2.4.8, ..., 2.20.8] but it conflicts with your root composer.json require (^3.3).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require league/csv:*" to figure out if any version is installable, or "composer require league/csv:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Apparently, I need clickandmortar/import-bundle, which I already have in my composer.json,

"require-dev": {
    "clickandmortar/import-bundle": "^1.0",
}

and what's more, there seems to be a conflict with my version of doctrine! However, league/csv appears to be up to date (https://csv.thephpleague.com), so why wouldn't it be compatible with a more recent version of doctrine? How can I install it correctly? Thxxxx :)

1
  • 1
    actually read the error.... It is saying that import-bundle requires orm v2 and you are trying to install csv bundle which requires orm v3 and these two things cannot both be true. Commented Nov 27 at 13:47

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.