Re: Pyrus bug during installation of Spreadsheet_Excel_Writer 0.9.2
| From: | Brett Bieber | Date: | Sat, 05 Dec 2009 15:46:59 +0000 |
| Subject: | Re: Pyrus bug during installation of Spreadsheet_Excel_Writer 0.9.2 | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-53088@lists.php.net to get a copy of this message | ||
On Sat, Nov 28, 2009 at 2:08 AM, Christian Weiske <cweiske@cweiske.de> wrote:
> I'm getting an error when trying to install the dev test version of
> SpreadSheet_Excel_Writer 0.9.2 - it seems to simply hang after that,
> with 100% CPU utilization and eating memory.
>
> cweiske:~/tmp>
> php-5.3.1 ../Dev/cvs/pear/pear2/Pyrus/trunk/PEAR2_Pyrus-2.0.0a1.phar
> install ../Spreadsheet_Excel_Writer-0.9.2.tgz Pyrus version 2.0.0a1
> SHA-1: 43AA5C4003AAE68426323C00225A9EDAB0E774FB Using PEAR installation
> found at /home/cweiske/Dev/cvs/pear/instpear2
>
> Warning: call_user_func_array() expects parameter 1 to be a valid
> callback, class 'pear2\Pyrus\PackageFile\v2' does not have a method
> 'resetConcreteVersion' in
>
> phar:///home/cweiske/Dev/cvs/pear/pear2/Pyrus/trunk/PEAR2_Pyrus-2.0.0a1.phar/PEAR2_Pyrus-2.0.0a1/php/pear2/Pyrus/Package/Base.php
> on line 208
Looks like there are two issues here. We should only call
resetConcreteVersion(); if the package is remote.
I believe the infinite loop is caused by no compatible versions
matching the preferred_state being available for a dependency. An
exception should be thrown somewhere which states this... before the
infinite loop of course.
As a workaround you can use:
php pyrus.phar set preferred_state alpha
php pyrus.phar install ../Spreadsheet_Excel_Writer-0.9.2.tgz
--
Brett Bieber