shopware: Cannot install development version due to package mismatch

PHP Version

7.4.22 (container’s default version)

Shopware Version

6.4.x-dev

Expected behaviour

“./psh.phar install” executed within container should properly install and configure shopware 6 platform

Actual behaviour

installator fails at this point output is self explanatory

(36/52) Starting
> APP_ENV=prod bin/console framework:demodata
	
	Demodata Generator
	==================
	
	10:46:54 CRITICAL  [console] Error thrown while running command "framework:demodata". Message: "Class 'bheller\ImagesGenerator\ImagesGeneratorProvider' not found" ["exception" => Error { …},"command" => "framework:demodata","message" => "Class 'bheller\ImagesGenerator\ImagesGeneratorProvider' not found"]
	
	In DemodataService.php line 95:
	                                                                                               
	  Attempted to load class "ImagesGeneratorProvider" from namespace "bheller\ImagesGenerator".  
	  Did you forget a "use" statement for "Maltyxx\ImagesGenerator\ImagesGeneratorProvider"?      
	                                                                                               
	
	framework:demodata [-p|--products PRODUCTS] [-c|--categories CATEGORIES] [-o|--orders ORDERS] [-m|--manufacturers MANUFACTURERS] [-cs|--customers CUSTOMERS] [--media MEDIA] [--properties PROPERTIES] [--users USERS] [-ps|--product-streams PRODUCT-STREAMS] [-mt|--mail-template MAIL-TEMPLATE] [-mhf|--mail-header-footer MAIL-HEADER-FOOTER] [-y|--with-media [WITH-MEDIA]] [-r|--reviews [REVIEWS]] [--attribute-sets ATTRIBUTE-SETS] [--product-attributes PRODUCT-ATTRIBUTES] [--manufacturer-attributes MANUFACTURER-ATTRIBUTES] [--order-attributes ORDER-ATTRIBUTES] [--customer-attributes CUSTOMER-ATTRIBUTES] [--media-attributes MEDIA-ATTRIBUTES]
	
	
Execution aborted, a subcommand failed!

when I try to modify “maltyxx/images-generator”: “1.0.0” in composer.json, then complete dependency hell starts

How to reproduce

  1. enter: https://github.com/shopware/platform
  2. console: git@github.com:shopware/platform.git
  3. console: ./psh.phar docker:start
  4. console: ./psh.phar docker:ssh
  5. console (within container): ./psh.phar install <- it fails

I’m running Debian Bullseye.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

@R0b0c0p @shyim The error occurs cause development part of shopware accepted this pull-request. They have changed composer dependencies there, but those dependencies are required here at platform part…

So if you want to start work with development version - you need to make these commands after installing development shopware: composer remove maltyxx/images-generator fakerphp/faker mbezhanov/faker-provider-collection composer require bheller/images-generator:1.0.1 fzaninotto/faker:1.9.1 mbezhanov/faker-provider-collection:1.2.1 --dev

And after that start your docker commands console: ./psh.phar docker:start console: ./psh.phar docker:ssh console (within container): ./psh.phar install <- AND it will now NOT fails

Or just wait when contributors of platform part of shopware will update this dependencies…

I hate my life. will revert it tomorrow