Discussion:
Pyrus bug during installation of Spreadsheet_Excel_Writer 0.9.2
Christian Weiske
2009-11-28 08:08:39 UTC
Permalink
Hi,


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
--
Regards/Mit freundlichen GrÌßen
Christian Weiske

-= Geeking around in the name of science since 1982 =-
Brett Bieber
2009-12-05 15:46:59 UTC
Permalink
Post by Christian Weiske
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
--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Loading...