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

pywalfox is not working when installed from pipx #121

Open
SDD701 opened this issue Feb 29, 2024 · 3 comments
Open

pywalfox is not working when installed from pipx #121

SDD701 opened this issue Feb 29, 2024 · 3 comments

Comments

@SDD701
Copy link

SDD701 commented Feb 29, 2024

Hello. Pywalfox is not working when I install it from pipx. The extension says can't connect to native-message-application. Maybe it's related to the path or venvs in main.sh

SDD@ExilOS ~> pywalfox install
Successfully removed manifest at: /home/SDD/.mozilla/native-messaging-hosts/pywalfox.json
Copied manifest to: /home/SDD/.mozilla/native-messaging-hosts/pywalfox.json
Set daemon executable path to: /home/SDD/.local/share/pipx/venvs/pywalfox/lib/python3.11/site-packages/pywalfox/bin/main.sh
Set execute permissions on daemon executable

SDD@ExilOS ~> cat .mozilla/native-messaging-hosts/pywalfox.json
{
  "name": "pywalfox",
  "description": "Automatically theme your browser using the colors generated by Pywal",
  "path": "/home/SDD/.local/share/pipx/venvs/pywalfox/lib/python3.11/site-packages/pywalfox/bin/main.sh",
  "type": "stdio",
  "allowed_extensions": [ "[email protected]" ]
}

SDD@ExilOS ~> bash .local/share/pipx/venvs/pywalfox/lib/python3.11/site-packages/pywalfox/bin/main.sh
.local/share/pipx/venvs/pywalfox/lib/python3.11/site-packages/pywalfox/bin/main.sh: line 4: sw_vers: command not found
/usr/lib/python-exec/python3.11/python: No module named pywalfox
/usr/lib/python-exec/python3.11/python3: No module named pywalfox
.local/share/pipx/venvs/pywalfox/lib/python3.11/site-packages/pywalfox/bin/main.sh: line 10: python2.7: command not found
.local/share/pipx/venvs/pywalfox/lib/python3.11/site-packages/pywalfox/bin/main.sh: line 10: python3.9: command not found
@ficok
Copy link

ficok commented Mar 1, 2024

hello! I had the exact same error as your did. I also installed pywalfox via pipx.
after running the main.sh script I got the same error message.
the last line of the script should be this:

python -m pywalfox start || python3 -m pywalfox start || python2.7 -m pywalfox start || python3.9 -m pywalfox start

I changed it to this:

pywalfox start || python -m pywalfox start || python3 -m pywalfox start || python2.7 -m pywalfox start || python3.9 -m pywalfox start

the daemon and the extension connected and I have successfully set the firefox theme with the extension.

hope that helps!

@SDD701
Copy link
Author

SDD701 commented Mar 6, 2024

hello! I had the exact same error as your did. I also installed pywalfox via pipx. after running the main.sh script I got the same error message. the last line of the script should be this:

python -m pywalfox start || python3 -m pywalfox start || python2.7 -m pywalfox start || python3.9 -m pywalfox start

I changed it to this:

pywalfox start || python -m pywalfox start || python3 -m pywalfox start || python2.7 -m pywalfox start || python3.9 -m pywalfox start

the daemon and the extension connected and I have successfully set the firefox theme with the extension.

hope that helps!

Yep, that's working now, thank you. I couldn't find where this script in the repo though. It would be nice to make a PR, so I'll leave the issue open for now

@johanengstrand
Copy link
Collaborator

Yep, that's working now, thank you. I couldn't find where this script in the repo though. It would be nice to make a PR, so I'll leave the issue open for now

The daemon is in a separate repository.

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

3 participants