Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello, just wondering if anyone else has encountered an error related to `docker/sdk console data:im

Options
U03TREBSX44
U03TREBSX44 Posts: 9 🧑🏻‍🚀 - Cadet

Hello, just wondering if anyone else has encountered an error related to docker/sdk console data:import the category import is throwing an error

Store: DE | Environment: docker.dev
Starting import with /data/data/import/local/full_EU.yml configuration file.
Error - Exception: Call to undefined method Pyz\Zed\CategoryDataImport\Business\CategoryDataImportBusinessFactory::createPyzCategoryImporter()
in /data/src/Pyz/Zed/CategoryDataImport/Business/CategoryDataImportFacade.php (31)

Command: /data/vendor/bin/console data:import

Trace:
#0 /data/vendor/spryker/category-data-import/src/Spryker/Zed/CategoryDataImport/Communication/Plugin/CategoryDataImportPlugin.php(32): Pyz\Zed\CategoryDataImport\Business\CategoryDataImportFacade->import(Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
#1 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataImporterCollection.php(205): Spryker\Zed\CategoryDataImport\Communication\Plugin\CategoryDataImportPlugin->import(Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
#2 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataImporterCollection.php(156): Spryker\Zed\DataImport\Business\Model\DataImporterCollection->executeDataImporter(Object(Spryker\Zed\CategoryDataImport\Communication\Plugin\CategoryDataImportPlugin), Object(Generated\Shared\Transfer\DataImporterReportTransfer), Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
#3 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/DataImportFacade.php(53): Spryker\Zed\DataImport\Business\Model\DataImporterCollection->import(Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
#4 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Console/Executor/DataImportExecutor.php(92): Spryker\Zed\DataImport\Business\DataImportFacade->importByAction(Object(Generated\Shared\Transfer\DataImportConfigurationActionTransfer), Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
#5 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Console/DataImportConsole.php(240): Spryker\Zed\DataImport\Communication\Console\Executor\DataImportExecutor->executeByConfigAndImporterType(Object(Symfony\Component\Console\Input\ArgvInput), '/data/data/impo...', 'full')
#6 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Console/DataImportConsole.php(222): Spryker\Zed\DataImport\Communication\Console\DataImportConsole->executeByConfigAndImporterType(Object(Symfony\Component\Console\Input\ArgvInput), '/data/data/impo...', 'full')
#7 /data/vendor/symfony/console/Command/Command.php(299): Spryker\Zed\DataImport\Communication\Console\DataImportConsole->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /data/vendor/symfony/console/Application.php(996): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /data/vendor/symfony/console/Application.php(295): Symfony\Component\Console\Application->doRunCommand(Object(Spryker\Zed\DataImport\Communication\Console\DataImportConsole), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/Bootstrap/ConsoleBootstrap.php(111): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /data/vendor/symfony/console/Application.php(167): Spryker\Zed\Console\Communication\Bootstrap\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /data/vendor/spryker/console/bin/console(26): Symfony\Component\Console\Application->run()
#13 /data/vendor/bin/console(112): include('/data/vendor/sp...')

Comments

  • U03TREBSX44
    U03TREBSX44 Posts: 9 🧑🏻‍🚀 - Cadet
    Options

    I can see the methods defined in the expected places but it throws an error about undefined methods. any suggestions? thanks in advance

  • U03H06V0LAY
    U03H06V0LAY Posts: 39 🧑🏻‍🚀 - Cadet
    Options

    @valerii.trots Any idea here, we find it stange its throwing an error in the vendor folder, could this be something hidden causing this

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 🧑🏻‍🚀 - Cadet
    Options

    Are you using docker?
    If yes maybe some files synchronisation issues between host and container volume?

    I would double check if inside container you have this method

  • U03H06V0LAY
    U03H06V0LAY Posts: 39 🧑🏻‍🚀 - Cadet
    Options

    @UT4U1HEHG good suggestion we checked this its in there too, v strange

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    edited September 2022
    Options

    Do you get this using demo shop?
    Which one so I could re-check myself?
    If it's your project, did you try to reproduce in demo shop?

  • U03H06V0LAY
    U03H06V0LAY Posts: 39 🧑🏻‍🚀 - Cadet
    edited September 2022
    Options

    @valerii.trots it was miss match of versions, as we were trying to use a project that was based off an old demo store version, with new demo store frontend folder as we’d deleted the old one as we were going SPA. We got passed the error anyways, Thanks 🙂