richdynamix / personalised-products

PredictionIO Magento 2 Module for offering Personalised Products to the end user
33 stars 10 forks source link

Uncaught Error: Class 'predictionio\EventClient' not found #26

Open rathodsunny005 opened 7 years ago

rathodsunny005 commented 7 years ago

Hello, When I try to install extension I got following error.

PHP Fatal error:  Uncaught Error: Class 'predictionio\EventClient' not found in /opt/bitnami/apps/magento/htdocs/app/code/Richdynamix/PersonalisedProducts/Model/PredictionIO/Factory.php:28
Stack trace:
#0 /opt/bitnami/apps/magento/htdocs/app/code/Richdynamix/PersonalisedProducts/Model/PredictionIO/EventClient/Client.php(69): Richdynamix\PersonalisedProducts\Model\PredictionIO\Factory->create('event', 'http::', NULL)
#1 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Richdynamix\PersonalisedProducts\Model\PredictionIO\EventClient\Client->__construct(Object(Richdynamix\PersonalisedProducts\Model\PredictionIO\Factory), Object(Richdynamix\PersonalisedProducts\Logger\PersonalisedProductsLogger), Object(Richdynamix\PersonalisedProducts\Helper\Config), Object(Richdynamix\PersonalisedProducts\Helper\Urls))
#2 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(89): Magento\Framework\ObjectManager\Factory\AbstractFactory->createOb in /opt/bitnami/apps/magento/htdocs/app/code/Richdynamix/PersonalisedProducts/Model/PredictionIO/Factory.php on line 28

Can you please help on this ? Thanks

gofornaman commented 7 years ago

Hi, did you install predictionio on linux or windows?

rathodsunny005 commented 7 years ago

I have installed In Linux, I have separate server for prediction.io

On Aug 20, 2017 2:43 PM, "Naman Doshi" notifications@github.com wrote:

Hi, did you install predictionio on linux or windows?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/richdynamix/personalised-products/issues/26#issuecomment-323573322, or mute the thread https://github.com/notifications/unsubscribe-auth/AHEX5EXSRIpS4v3roXUcHoLSLA8gHQWGks5sZ_ipgaJpZM4O6OAy .

atsareva commented 6 years ago

Hi! You should run the next command in the magento root directory composer require predictionio/predictionio and then recompile magento again.