Closed glenn12345 closed 6 years ago
getaddrinfo failed: nodename nor servname provided,
Thanks for posting in our issue tracker. In order to properly assist you, we need additional information:
Thanks!
This is an automated comment, triggered by adding the label status:need more info
.
PHP 7.2 Yii version: 2.0.15.1 Yii APIDoc version: ^2.1 O.S: openSUSE Tumbleweed, Amazon Linux.
composer require --prefer-dist yiisoft/yii2-apidoc
Using version ^2.1 for yiisoft/yii2-apidoc
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for yiisoft/yii2-apidoc ^2.1 -> satisfiable by yiisoft/yii2-apidoc[2.1.0].
- Conclusion: remove cebe/markdown 1.1.2
- Conclusion: don't install cebe/markdown 1.1.2
- yiisoft/yii2-apidoc 2.1.0 requires cebe/markdown-latex ~1.0 -> satisfiable by cebe/markdown-latex[1.0.0, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4].
- cebe/markdown-latex 1.0.0 requires cebe/markdown ~1.0.0 -> satisfiable by cebe/markdown[1.0.0, 1.0.1, 1.0.2, 1.0.3].
- cebe/markdown-latex 1.1.0 requires cebe/markdown ~1.0.0 -> satisfiable by cebe/markdown[1.0.0, 1.0.1, 1.0.2, 1.0.3].
- cebe/markdown-latex 1.1.1 requires cebe/markdown ~1.0.0 -> satisfiable by cebe/markdown[1.0.0, 1.0.1, 1.0.2, 1.0.3].
- cebe/markdown-latex 1.1.2 requires cebe/markdown ~1.0.0 -> satisfiable by cebe/markdown[1.0.0, 1.0.1, 1.0.2, 1.0.3].
- cebe/markdown-latex 1.1.3 requires cebe/markdown ~1.0.0 -> satisfiable by cebe/markdown[1.0.0, 1.0.1, 1.0.2, 1.0.3].
- cebe/markdown-latex 1.1.4 requires cebe/markdown ~1.0.0 -> satisfiable by cebe/markdown[1.0.0, 1.0.1, 1.0.2, 1.0.3].
- Can only install one of: cebe/markdown[1.0.0, 1.1.2].
- Can only install one of: cebe/markdown[1.0.1, 1.1.2].
- Can only install one of: cebe/markdown[1.0.2, 1.1.2].
- Can only install one of: cebe/markdown[1.0.3, 1.1.2].
- Installation request for cebe/markdown (locked at 1.1.2) -> satisfiable by cebe/markdown[1.1.2].
Installation failed, reverting ./composer.json to its original content.
And installing setting in composer.json "yiisoft/yii2-apidoc": "~2.1.0" seems to install an old version.
Try with --update-with-all-dependencies
switch:
composer require yiisoft/yii2-apidoc --update-with-all-dependencies
Not works to me.
You probably have some dependency locked on incompatible version in your project. It is hard to guess without knowing your composer.json
.
@rob006 it's not needed. It happens with recently created projects with basic and advanced templates.
Confirmed. That is because markdown-latex
has locked cebe/markdown
dependency on ~1.0.0
and 1.1.x
line is already installed. It looks like composer require
does not support downgrading in this scenario (which is weird...).
with a fresh yii2 advanced installation with this composer show
almasaeed2010/adminlte v2.4.8 AdminLTE - admin control panel and dashboard th...
behat/gherkin v4.5.1 Gherkin DSL parser for PHP 5.3
bower-asset/bootstrap v3.3.7
bower-asset/inputmask 3.3.11
bower-asset/jquery 3.2.1
bower-asset/jquery-ui 1.12.1
bower-asset/punycode v1.3.2
bower-asset/typeahead.js v0.11.1
bower-asset/yii2-pjax 2.0.7.1
cebe/markdown 1.1.2 A super fast, highly extensible markdown parser...
cebe/yii2-gravatar 1.1 Gravatar Widget for Yii 2
clue/stream-filter v1.4.0 A simple and modern approach to stream filterin...
codeception/base 2.4.5 BDD-style testing framework
codeception/phpunit-wrapper 6.0.11 PHPUnit classes used by Codeception
codeception/stub 2.0.4 Flexible Stub wrapper for PHPUnit's Mock Builder
codeception/verify 0.3.3 BDD assertion library for PHPUnit
composer/installers v1.5.0 A multi-framework Composer library installer
dmstr/yii2-adminlte-asset 2.6.2 AdminLTE backend theme asset bundle for Yii 2.0...
doctrine/instantiator 1.0.5 A small, lightweight utility to instantiate obj...
doctrine/lexer v1.0.1 Base library for a lexer that can be used in To...
egulias/email-validator 2.1.5 A library for validating emails against several...
ezyang/htmlpurifier v4.10.0 Standards compliant HTML filter written in PHP
fortawesome/font-awesome v4.7.0 The iconic font and CSS framework
fzaninotto/faker v1.8.0 Faker is a PHP library that generates fake data...
guzzlehttp/guzzle 6.3.3 Guzzle is a PHP HTTP client library
guzzlehttp/promises v1.3.1 Guzzle promises library
guzzlehttp/psr7 1.4.2 PSR-7 message implementation that also provides...
kartik-v/yii2-mpdf v1.0.2 A Yii2 wrapper component for the mPDF library w...
kotchuprik/yii2-instagram-authclient v1.0 Instagram extenion for using via yii2-authclient
lstrojny/fxmlrpc 0.14.0 Fast and tiny XML/RPC client with bridges for v...
mpdf/mpdf v7.1.4 A PHP class to generate PDF files from HTML wit...
myclabs/deep-copy 1.7.0 Create deep copies (clones) of your objects
paragonie/random_compat v9.99.99 PHP 5.x polyfill for randombytes() and random...
phar-io/manifest 1.0.1 Component for reading phar.io manifest informat...
phar-io/version 1.0.1 Library for handling version information and co...
php-http/curl-client v1.7.1 cURL client for PHP-HTTP
php-http/discovery 1.4.0 Finds installed HTTPlug implementations and PSR...
php-http/guzzle6-adapter v1.1.1 Guzzle 6 HTTP Adapter
php-http/httplug v1.1.0 HTTPlug, the HTTP client abstraction for PHP
php-http/message 1.7.0 HTTP Message related tools
php-http/message-factory v1.0.2 Factory interfaces for PSR-7 HTTP Message
php-http/promise v1.0.0 Promise used for asynchronous HTTP requests
phpdocumentor/reflection-common 1.0.1 Common reflection classes used by phpdocumentor...
phpdocumentor/reflection-docblock 4.3.0 With this component, a library can provide supp...
phpdocumentor/type-resolver 0.4.0
phpspec/php-diff v1.1.0 A comprehensive library for generating differen...
phpspec/prophecy 1.8.0 Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage 5.3.2 Library that provides collection, processing, a...
phpunit/php-file-iterator 1.4.5 FilterIterator implementation that filters file...
phpunit/php-text-template 1.2.1 Simple template engine.
phpunit/php-timer 1.0.9 Utility class for timing
phpunit/php-token-stream 2.0.2 Wrapper around PHP's tokenizer extension.
phpunit/phpunit 6.5.12 The PHP Unit Testing framework.
phpunit/phpunit-mock-objects 5.0.10 Mock Object library for PHPUnit
psr/http-message 1.0.1 Common interface for HTTP messages
psr/log 1.0.2 Common interface for logging libraries
rmrevin/yii2-fontawesome 2.17.1 Asset Bundle for Yii2 with Font Awesome
sebastian/code-unit-reverse-lookup 1.0.1 Looks up which function or method a line of cod...
sebastian/comparator 2.1.3 Provides the functionality to compare PHP value...
sebastian/diff 2.0.1 Diff implementation
sebastian/environment 3.1.0 Provides functionality to handle HHVM/PHP envir...
sebastian/exporter 3.1.0 Provides the functionality to export PHP variab...
sebastian/global-state 2.0.0 Snapshotting of global state
sebastian/object-enumerator 3.0.3 Traverses array structures and object graphs to...
sebastian/object-reflector 1.1.1 Allows reflection of object attributes, includi...
sebastian/recursion-context 3.0.0 Provides functionality to recursively process P...
sebastian/resource-operations 1.0.0 Provides a list of PHP built-in functions that ...
sebastian/version 2.0.1 Library that helps with managing the version nu...
setasign/fpdi 1.6.2 FPDI is a collection of PHP classes facilitatin...
swiftmailer/swiftmailer v6.1.2 Swiftmailer, free feature-rich PHP mailer
symfony/browser-kit v3.4.15 Symfony BrowserKit Component
symfony/console v3.4.15 Symfony Console Component
symfony/css-selector v3.4.15 Symfony CssSelector Component
symfony/debug v3.4.15 Symfony Debug Component
symfony/dom-crawler v3.4.15 Symfony DomCrawler Component
symfony/event-dispatcher v3.4.15 Symfony EventDispatcher Component
symfony/finder v3.4.15 Symfony Finder Component
symfony/polyfill-ctype v1.9.0 Symfony polyfill for ctype functions
symfony/polyfill-mbstring v1.9.0 Symfony polyfill for the Mbstring extension
symfony/yaml v3.4.15 Symfony Yaml Component
theseer/tokenizer 1.1.0 A small library for converting tokenized PHP so...
vova07/yii2-imperavi-widget 2.0.6 The imperavi redactor widget for Yii 2 framework.
webmozart/assert 1.3.0 Assertions to validate method input/output with...
yiisoft/yii2 2.0.15.1 Yii PHP Framework Version 2
yiisoft/yii2-authclient 2.1.5 External authentication via OAuth and OpenID fo...
yiisoft/yii2-bootstrap 2.0.8 The Twitter Bootstrap extension for the Yii fra...
yiisoft/yii2-composer 2.0.7 The composer plugin for Yii extension installer
yiisoft/yii2-debug 2.0.13 The debugger extension for the Yii framework
yiisoft/yii2-faker 2.0.4 Fixture generator. The Faker integration for th...
yiisoft/yii2-gii 2.0.7 The Gii extension for the Yii framework
yiisoft/yii2-httpclient 2.0.6 HTTP client extension for the Yii framework
yiisoft/yii2-jui 2.0.7 The Jquery UI extension for the Yii framework
yiisoft/yii2-swiftmailer 2.1.1 The SwiftMailer integration for the Yii framework
zendframework/zend-diactoros 1.8.5 PSR HTTP Message implementations
composer require yiisoft/yii2-apidoc
errors: `Using version ^2.1 for yiisoft/yii2-apidoc ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
Problem 1
Installation failed, reverting ./composer.json to its original content.`
Likely this issue https://github.com/composer/composer/issues/7261
Give this a try
composer require yiisoft/yii2-apidoc:^2.1 --no-update
composer update
ok, testing the other post, this woks for me:
in composer.json added yii-apidoc 2.1 making an composer self-update then an update
composer update Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 7 installs, 2 updates, 3 removals
composer made an downgrade, to cebe/markdown 1.0.3
errors gone!
Maybe this should added to install doc?
so see i this clear, the problem is the cebe/markdown-latex package which is not compatible to "~1.1.0" only to "~1.0.0"? so composer chooses the latest cebe/markdown in the dependeys rules all yii2 packages includes "~1.1.0" so 1.1.2 is installed. when installing latest yii2-apidoc its crashing because of cebe/markdown-latex dependencies? Hard!
I am closing this, since it's a composer issue.
What steps will reproduce the problem?
What's expected?
What do you get instead?
Additional info