Problem with install via composer
Closed this issue · 4 comments
Hello,
I just tried to install your plugin with composer (using composer require divante-ltd/pimcore-notifications
) on the fresh last stable pimcore (4.4.1), but i get many dependency error with Pimcore (trying to set any version):
Your requirements could not be resolved to an installable set of packages.
Problem 1
- pimcore/pimcore 4.4.0 requires pimcore/core-version 4.4.0 -> satisfiable b
y pimcore/core-version[4.4.0] but these conflict with your requirements or minim
um-stability.
- pimcore/pimcore 4.3.1 requires pimcore/core-version 4.3.1 -> satisfiable b
y pimcore/core-version[4.3.1] but these conflict with your requirements or minim
um-stability.
- Installation request for pimcore/pimcore No version set (parsed as 1.0.0)
-> satisfiable by pimcore/pimcore[No version set (parsed as 1.0.0)].
- divante-ltd/pimcore-notifications 1.0.0.1 requires pimcore/pimcore >=4 ->
satisfiable by pimcore/pimcore[4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.2.0,
4.3.0, 4.3.1, 4.4.0, 4.4.1, dev-master].
- Can only install one of: pimcore/pimcore[4.0.0, No version set (parsed as
1.0.0)].
- Can only install one of: pimcore/pimcore[4.0.1, No version set (parsed as
1.0.0)].
- Can only install one of: pimcore/pimcore[4.1.0, No version set (parsed as
1.0.0)].
...
I think in composer.json it should maybe be "pimcore/core-version
" and not "pimcore/pimcore
" ?
Hello @Yivan,
thank you for reporting issues. I tried to reproduce this way:
- Clone newest pimcore
- Run composer install
- Run composer require divante-litd/pimcore-notifications
Everything went fine. Have you tried to clear composer cache?
List of installed packages:
amnuts/opcache-gui v2.2.4 A clean, effective and responsive interface for Zend OPcache, with real(ish)-time monitoring, filtering and the ability to invalidate files
cboden/ratchet v0.3.5 PHP WebSocket library
colinmollenhour/credis 1.7 Credis is a lightweight interface to the Redis key-value store which wraps the phpredis library when available for better performance.
composer/ca-bundle 1.0.6 Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.
container-interop/container-interop 1.1.0 Promoting the interoperability of container objects (DIC, SL, etc.)
defuse/php-encryption 2.0.3 Secure PHP Encryption Library
divante-ltd/pimcore-notifications 1.0.0.1 Notifications plugin for pimcore.
doctrine/instantiator 1.0.5 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
egulias/email-validator 2.1.1 A library for validating emails against several RFCs
endroid/qrcode 1.7.4 Endroid QR Code
evenement/evenement v2.0.0 Événement is a very simple event dispatching library for PHP
facebook/graph-sdk 5.4.2 Facebook SDK for PHP
filp/whoops 2.1.4 php error handling for cool kids
geoip2/geoip2 v2.4.4 MaxMind GeoIP2 PHP API
google/apiclient v1.1.8 Client library for Google APIs
guzzle/common v3.9.2 Common libraries used by Guzzle
guzzle/http v3.9.2 HTTP libraries used by Guzzle
guzzle/parser v3.9.2 Interchangeable parsers used by Guzzle
guzzle/stream v3.9.2 Guzzle stream wrapper component
hybridauth/hybridauth v2.8.0 Open source social sign on PHP library.
linfo/linfo v3.0.1 App and library for easily parsing and displaying system information of the host, like network/torrents/cpu/memory/usb/pci/sound cards/file...
maxmind-db/reader v1.1.1 MaxMind DB Reader API
maxmind/web-service-common v0.3.1 Internal MaxMind Web Service API
monolog/monolog 1.21.0 Sends your logs to files, sockets, inboxes, databases and various web services
mpratt/embera 1.9.3 Oembed consumer library, that gives information about urls. It helps you replace urls to 60+ sites like youtube or vimeo, with their html e...
myclabs/deep-copy 1.5.5 Create deep copies (clones) of your objects
neitanod/forceutf8 v2.0 PHP Class Encoding featuring popular Encoding::toUTF8() function --formerly known as forceUTF8()-- that fixes mixed encoded strings.
nesbot/carbon 1.21.0 A simple API extension for DateTime.
oyejorge/less.php v1.7.0.10 PHP port of the Javascript version of LESS http://lesscss.org
paragonie/random_compat v2.0.4 PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
pear/net_url2 v2.2.1 Class for parsing and handling URL. Provides parsing of URLs into their constituent parts (scheme, host, path etc.), URL generation, and re...
php-di/invoker 1.3.3 Generic and extensible callable invoker
php-di/php-di 5.4.0 The dependency injection container for humans
php-di/phpdoc-reader 2.0.1 PhpDocReader parses @var and @param values in PHP docblocks (supports namespaced class names with the same resolution rules as PHP)
phpdocumentor/reflection-common 1.0 Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock 3.1.1 With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a Do...
phpdocumentor/type-resolver 0.2
phpspec/prophecy v1.6.2 Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage 4.0.2 Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator 1.4.1 FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template 1.2.1 Simple template engine.
phpunit/php-timer 1.0.8 Utility class for timing
phpunit/php-token-stream 1.4.9 Wrapper around PHP's tokenizer extension.
phpunit/phpunit 5.6.5 The PHP Unit Testing framework.
phpunit/phpunit-mock-objects 3.4.1 Mock Object library for PHPUnit
pimcore/core-version 4.4.1
pimcore/installer-plugin 1.5 A custom composer installer for pimcore - plugins
psr/log 1.0.2 Common interface for logging libraries
ramsey/uuid 3.5.1 Formerly rhumsaa/uuid. A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID).
react/event-loop v0.4.2 Event loop abstraction layer that libraries can use for evented I/O.
react/socket v0.4.3 Library for building an evented socket server.
react/stream v0.4.5 Basic readable and writable stream interfaces that support piping.
sabre/dav 3.2.0 WebDAV Framework for PHP
sabre/event 3.0.0 sabre/event is a library for lightweight event-based programming
sabre/http 4.2.1 The sabre/http library provides utilities for dealing with http requests and responses.
sabre/uri 1.1.1 Functions for making sense out of URIs.
sabre/vobject 4.1.1 The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects
sabre/xml 1.5.0 sabre/xml is an XML library that you may not hate.
sebastian/code-unit-reverse-lookup 1.0.0 Looks up which function or method a line of code belongs to
sebastian/comparator 1.2.2 Provides the functionality to compare PHP values for equality
sebastian/diff 1.4.1 Diff implementation
sebastian/environment 1.3.8 Provides functionality to handle HHVM/PHP environments
sebastian/exporter 2.0.0 Provides the functionality to export PHP variables for visualization
sebastian/global-state 1.1.1 Snapshotting of global state
sebastian/object-enumerator 2.0.0 Traverses array structures and object graphs to enumerate all referenced objects
sebastian/recursion-context 2.0.0 Provides functionality to recursively process PHP variables
sebastian/resource-operations 1.0.0 Provides a list of PHP built-in functions that operate on resources
sebastian/version 2.0.0 Library that helps with managing the version number of Git-hosted PHP projects
symfony/console v3.1.7 Symfony Console Component
symfony/css-selector v3.1.7 Symfony CssSelector Component
symfony/debug v3.1.7 Symfony Debug Component
symfony/event-dispatcher v3.1.7 Symfony EventDispatcher Component
symfony/finder v3.1.7 Symfony Finder Component
symfony/http-foundation v3.1.7 Symfony HttpFoundation Component
symfony/options-resolver v3.1.7 Symfony OptionsResolver Component
symfony/polyfill-mbstring v1.3.0 Symfony polyfill for the Mbstring extension
symfony/process v3.1.7 Symfony Process Component
symfony/routing v3.1.7 Symfony Routing Component
symfony/translation v3.1.7 Symfony Translation Component
symfony/var-dumper v3.1.7 Symfony mechanism for exploring and dumping PHP variables
symfony/yaml v3.1.7 Symfony Yaml Component
tijsverkoyen/css-to-inline-styles 1.5.5 CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful whe...
vrana/adminer v4.2.5 Database management in a single PHP file.
webmozart/assert 1.1.0 Assertions to validate method input/output with nice error messages.
zendframework/zendframework1 1.12.20 Zend Framework 1
I tried again after clearing the cache and same.
I reroll the follwing:
- downloading the professionnal package from here: https://www.pimcore.org/en/resources/download
- create the database (in utf8mb4_unicode_ci)
- install it and log in the admin: all is ok
- go back to command shell and run
composer require divante-ltd/pimcore-notifications
And same error.
Test are on Windows 7, but i don't think it make a difference for composer.
I don't have add this problem when installing other plugins.
For instance i got no problem with this one: https://github.com/coreshop/CoreShop/blob/master/composer.json
"pimcore/core-version" is used instead "pimcore/pimcore" in you composer.json.
I think maybe you should use this, as it is adviced here: https://github.com/pimcore/core-version
@Yivan Thank you, this way I can reproduce it.
Release 1.0.0.2 should fix this issue, let me know if it works.
Thanks kkarkus, it works fine now!
(just the plugin.xml is always version 1.0 so i was asking me if it has worked, but it is the 1.1 if i look inside the code ; )). Maybe plugin.xml should be updated.