tighten / takeout

Docker-based development-only dependency manager. macOS, Linux, and WSL2-only and installs via PHP's Composer... for now.
MIT License
1.59k stars 83 forks source link

Unable to run `takeout enable` or any other `takeout` command. #323

Closed scaabel closed 3 months ago

scaabel commented 1 year ago

Hi,

I've just installed this package on my MacOs.

Every time I try to run takeout enable, I'm getting the following error.

image

mattstauffer commented 1 year ago

Please share your version of PHP and your version of Takeout.

speniti commented 10 months ago

Hello, I think that I'm experiencing the same issue. My output is the following:

Deprecated: Return type of HumbugBox3130\KevinGH\RequirementChecker\RequirementCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/src/RequirementCollection.php on line 12

Call Stack:
    0.0002     415096   1. {main}() /Users/simo/.composer/vendor/bin/takeout:0
    0.0031     416344   2. include('/Users/simo/.composer/vendor/tightenco/takeout/builds/takeout') /Users/simo/.composer/vendor/bin/takeout:119
    0.0176    3545768   3. require('phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/bin/check-requirements.php') /Users/simo/.composer/vendor/tightenco/takeout/builds/takeout:12
    0.0182    3631672   4. HumbugBox3130\KevinGH\RequirementChecker\Checker::checkRequirements() phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/bin/check-requirements.php:10
    0.0182    3631672   5. HumbugBox3130\KevinGH\RequirementChecker\Checker::retrieveRequirements() phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/src/Checker.php:10
    0.0182    3634704   6. Composer\Autoload\ClassLoader->loadClass($class = 'HumbugBox3130\\KevinGH\\RequirementChecker\\RequirementCollection') phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/src/Checker.php:79
    0.0182    3634704   7. Composer\Autoload\includeFile($file = 'phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/vendor/composer/../../src/RequirementCollection.php') phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/vendor/composer/ClassLoader.php:346
    0.0183    3640952   8. include('phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/src/RequirementCollection.php') phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/vendor/composer/ClassLoader.php:478

Deprecated: Return type of HumbugBox3130\KevinGH\RequirementChecker\RequirementCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/src/RequirementCollection.php on line 16

Call Stack:
    0.0002     415096   1. {main}() /Users/simo/.composer/vendor/bin/takeout:0
    0.0031     416344   2. include('/Users/simo/.composer/vendor/tightenco/takeout/builds/takeout') /Users/simo/.composer/vendor/bin/takeout:119
    0.0176    3545768   3. require('phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/bin/check-requirements.php') /Users/simo/.composer/vendor/tightenco/takeout/builds/takeout:12
    0.0182    3631672   4. HumbugBox3130\KevinGH\RequirementChecker\Checker::checkRequirements() phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/bin/check-requirements.php:10
    0.0182    3631672   5. HumbugBox3130\KevinGH\RequirementChecker\Checker::retrieveRequirements() phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/src/Checker.php:10
    0.0182    3634704   6. Composer\Autoload\ClassLoader->loadClass($class = 'HumbugBox3130\\KevinGH\\RequirementChecker\\RequirementCollection') phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/src/Checker.php:79
    0.0182    3634704   7. Composer\Autoload\includeFile($file = 'phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/vendor/composer/../../src/RequirementCollection.php') phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/vendor/composer/ClassLoader.php:346
    0.0183    3640952   8. include('phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/src/RequirementCollection.php') phar:///Users/simo/.composer/vendor/tightenco/takeout/builds/takeout/.box/vendor/composer/ClassLoader.php:478

In HandleExceptions.php line 97:

  Call to undefined method Psr\Log\NullLogger::channel()

I'm on PHP 8.2.11 and my version of takeout is 1.8.13.

speniti commented 10 months ago

Never mind, I found the issue reading this #314. It’s weird cause I've installed takeout through Composer without specifying the version and it has installed the v1 when the latest is the v2.

tonysm commented 5 months ago

@speniti ahh, good catch. I'll update the install instructions to force v2 from now on.

@scaabel can you try installing it again but with this command composer global require tightenco/takeout:~2.5?

edalzell commented 3 months ago

The v1 version is still installed by default, instructions are yet to be updated

tonysm commented 3 months ago

sorry for the delay, I've just merged the docs fix.