Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

potrace not found during production compile #253

Open
tacman opened this issue Dec 13, 2024 · 3 comments
Open

potrace not found during production compile #253

tacman opened this issue Dec 13, 2024 · 3 comments

Comments

@tacman
Copy link
Contributor

tacman commented Dec 13, 2024

Version(s) affected

1.3.x

Description

In FaviconsCompiler.php line 491:

[RuntimeException]
Unable to run potrace. Error: sh: 1: exec: potrace: not found

Exception trace:
at /home/tac/g/sites/omarexpo/vendor/spomky-labs/pwa-bundle/src/Service/FaviconsCompiler.php:491
SpomkyLabs\PwaBundle\Service\FaviconsCompiler->generateSilhouette() at /home/tac/g/sites/omarexpo/vendor/spomky-labs/pwa-bundle/src/Service/FaviconsCompiler.php:315
SpomkyLabs\PwaBundle\Service\FaviconsCompiler->processBrowserConfig() at /home/tac/g/sites/omarexpo/vendor/spomky-labs/pwa-bundle/src/Service/FaviconsCompiler.php:242
SpomkyLabs\PwaBundle\Service\FaviconsCompiler->getFiles() at /home/tac/g/sites/omarexpo/vendor/spomky-labs/pwa-bundle/src/Subscriber/FileCompileEventListener.php:41
SpomkyLabs\PwaBundle\Subscriber\FileCompileEventListener->__invoke() at /home/tac/g/sites/omarexpo/vendor/symfony/event-dispatcher/EventDispatcher.php:246
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher{closure}() at /home/tac/g/sites/omarexpo/vendor/symfony/event-dispatcher/EventDispatcher.php:206
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() at /home/tac/g/sites/omarexpo/vendor/symfony/event-dispatcher/EventDispatcher.php:56
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /home/tac/g/sites/omarexpo/vendor/symfony/asset-mapper/Command/AssetMapperCompileCommand.php:65
^C

How to reproduce

close phpwa-demo, set env to prod, then run

bin/console :compile

Possible Solution

No response

Additional Context

No response

@tacman
Copy link
Contributor Author

tacman commented Dec 13, 2024

breaks on both my local machine and on my production server.

@tacman
Copy link
Contributor Author

tacman commented Dec 13, 2024

I was able to install potrace both locally on my production server, perhaps it just needs to be documented? It's new though, right?

@Spomky
Copy link
Member

Spomky commented Dec 14, 2024

Hi @tacman,

The version 1.3.x is not stable at all.
potrace binary path can be changed if needed.
The documentation for this version is not ready for the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants