Frewacom / pywalfox

Dynamic theming of Firefox (and Thunderbird) using your Pywal colors
https://addons.mozilla.org/en-US/firefox/addon/pywalfox/
Mozilla Public License 2.0
583 stars 12 forks source link

"Fetch failed: You are not connected to the Pywalfox daemon" error #77

Open VNGamerGit opened 2 years ago

VNGamerGit commented 2 years ago

Tried to fetch the pywal theme by clicking on "Fetch Pywal colors", and got that error. Running pywalfox update does not seem to do anything at all. Help? Also, I installed pywalfox through pip install pywalfox and pywalfox install. The debug menu said "Disconnected: version not set"

Frewacom commented 2 years ago

Hey, no worries. You can try the steps described here: https://github.com/Frewacom/pywalfox/issues/72#issuecomment-889239885

It will most likely fix your issue 😃

VNGamerGit commented 2 years ago

Hey, no worries. You can try the steps described here: #72 (comment)

It will most likely fix your issue smiley

Still doesn't work, I still got the "Disconnected: version not set" and "Fetch failed: You are not connected to the Pywalfox daemon" error. I have a question though, do you have to set the path to the directory Linux Terminal gave you after you ran pywalfox install into the manifest.json and pywalfox.json files in their respective directory, then copy all of them into /usr/lib/mozilla/native-messaging-hosts, or do you use the <path-to-python-site-packages>/pywalfox/bin/main.sh instead? The path the Terminal gave me is Set executable path in manifest to: /home/<username>/.local/bin/pywalfox

Frewacom commented 2 years ago

Still doesn't work, I still got the "Disconnected: version not set" and "Fetch failed: You are not connected to the Pywalfox daemon" error. I have a question though, do you have to set the path to the directory Linux Terminal gave you after you ran pywalfox install into the manifest.json and pywalfox.json files in their respective directory, then copy all of them into /usr/lib/mozilla/native-messaging-hosts, or do you use the <path-to-python-site-packages>/pywalfox/bin/main.sh instead? The path the Terminal gave me is Set executable path in manifest to: /home/<username>/.local/bin/pywalfox

The path is different based on what version of pywalfox you are using. The version I linked in my comment will link to the executable (/home/<username>/.local/bin/pywalfox) directly, rather than going through the launch script (main.sh). This was the most common cause of the setup issue that many had, since the PATH variable would be different for the Firefox executable and your user.

In most cases, you should not have to do any manual installation of the manifest, nor make changes to it. Looking at your output, it does seem like everything is setup properly, so the issue is probably something else.

Have you tried running pywalfox start in your terminal? Perhaps there is some issue when running the executable? If you have not already, I would also suggest looking in the Browser console for potential errors from pywalfox (Tools > Web developer > Browser console).

VNGamerGit commented 2 years ago

Still doesn't work, I still got the "Disconnected: version not set" and "Fetch failed: You are not connected to the Pywalfox daemon" error. I have a question though, do you have to set the path to the directory Linux Terminal gave you after you ran pywalfox install into the manifest.json and pywalfox.json files in their respective directory, then copy all of them into /usr/lib/mozilla/native-messaging-hosts, or do you use the <path-to-python-site-packages>/pywalfox/bin/main.sh instead? The path the Terminal gave me is Set executable path in manifest to: /home/<username>/.local/bin/pywalfox

The path is different based on what version of pywalfox you are using. The version I linked in my comment will link to the executable (/home/<username>/.local/bin/pywalfox) directly, rather than going through the launch script (main.sh). This was the most common cause of the setup issue that many had, since the PATH variable would be different for the Firefox executable and your user.

In most cases, you should not have to do any manual installation of the manifest, nor make changes to it. Looking at your output, it does seem like everything is setup properly, so the issue is probably something else.

Have you tried running pywalfox start in your terminal? Perhaps there is some issue when running the executable? If you have not already, I would also suggest looking in the Browser console for potential errors from pywalfox (Tools > Web developer > Browser console).

I tried running pywalfox start in my terminal, but it's not responding, and I got this in the browser console: Failed to update option state, target is undefined/null settings.bundle.js:16:9634 Mt moz-extension://8b93093c-1d53-40e9-86f4-1538d2c6f20b/dist/settings.bundle.js:16 zt moz-extension://8b93093c-1d53-40e9-86f4-1538d2c6f20b/dist/settings.bundle.js:16 Jt moz-extension://8b93093c-1d53-40e9-86f4-1538d2c6f20b/dist/settings.bundle.js:16 Jt moz-extension://8b93093c-1d53-40e9-86f4-1538d2c6f20b/dist/settings.bundle.js:16 Jt moz-extension://8b93093c-1d53-40e9-86f4-1538d2c6f20b/dist/settings.bundle.js:16

VNGamerGit commented 2 years ago

Still doesn't work, I still got the "Disconnected: version not set" and "Fetch failed: You are not connected to the Pywalfox daemon" error. I have a question though, do you have to set the path to the directory Linux Terminal gave you after you ran pywalfox install into the manifest.json and pywalfox.json files in their respective directory, then copy all of them into /usr/lib/mozilla/native-messaging-hosts, or do you use the <path-to-python-site-packages>/pywalfox/bin/main.sh instead? The path the Terminal gave me is Set executable path in manifest to: /home/<username>/.local/bin/pywalfox

The path is different based on what version of pywalfox you are using. The version I linked in my comment will link to the executable (/home/<username>/.local/bin/pywalfox) directly, rather than going through the launch script (main.sh). This was the most common cause of the setup issue that many had, since the PATH variable would be different for the Firefox executable and your user.

In most cases, you should not have to do any manual installation of the manifest, nor make changes to it. Looking at your output, it does seem like everything is setup properly, so the issue is probably something else.

Have you tried running pywalfox start in your terminal? Perhaps there is some issue when running the executable? If you have not already, I would also suggest looking in the Browser console for potential errors from pywalfox (Tools > Web developer > Browser console).

Also, I tried reinstalling pywalfox again, and now it said I need to go through the main script (I used the version you linked)

Frewacom commented 2 years ago

pywalfox start will run in the background and if you do not receive any errors, it should work as expected.

Could you check the debugging console of the addon (about:debugging > This Firefox, find Pywalfox and click Inspect > Console )?

With the addon console open, you can also try reloading the addon by executing the following:

browser.runtime.reload();
VNGamerGit commented 2 years ago

pywalfox start will run in the background and if you do not receive any errors, it should work as expected.

Could you check the debugging console of the addon (about:debugging > This Firefox, find Pywalfox and click Inspect > Console )?

With the addon console open, you can also try reloading the addon by executing the following:

browser.runtime.reload();

wait, where is about:debugging > This Firefox?

VNGamerGit commented 2 years ago

pywalfox start will run in the background and if you do not receive any errors, it should work as expected.

Could you check the debugging console of the addon (about:debugging > This Firefox, find Pywalfox and click Inspect > Console )?

With the addon console open, you can also try reloading the addon by executing the following:

browser.runtime.reload();

meh, still got the "Fetch failed: You are not connected to the Pywalfox daemon" error

maishams commented 2 years ago

Screenshot 2021-10-25 at 17 26 31 im getting the same error but for thunderbird -- everything works perfectly for firefox but i'm getting "Fetch failed: You are not connected to the Pywalfox daemon" on thunderbird

Frewacom commented 2 years ago

Screenshot 2021-10-25 at 17 26 31 im getting the same error but for thunderbird -- everything works perfectly for firefox but i'm getting "Fetch failed: You are not connected to the Pywalfox daemon" on thunderbird

The error that you get indicate that the pywalfox native messenger manifest is not installed. This is what the pywalfox install command does. Have you ran that command? If you did, did it execute successfully?

Frewacom commented 2 years ago

Sorry for late response, I have been busy lately.

Have you been able to resolve this @VNGamerGit?

VNGamerGit commented 2 years ago

Sorry for late response, I have been busy lately.

Have you been able to resolve this @VNGamerGit?

Yeah, though it was over a month ago, and I forgot how to solve it already

maishams commented 2 years ago

Screenshot 2021-10-25 at 17 26 31 im getting the same error but for thunderbird -- everything works perfectly for firefox but i'm getting "Fetch failed: You are not connected to the Pywalfox daemon" on thunderbird

The error that you get indicate that the pywalfox native messenger manifest is not installed. This is what the pywalfox install command does. Have you ran that command? If you did, did it execute successfully?

it was installed in the right place i dont remember completely what i did but i think i had to manually had the extension v2.0.7 to thunderbird (2.0.6 is the version on the thunderbird store) and then it worked

Frewacom commented 2 years ago

Looking at the changes between v2.0.6 and v2.0.7, it should not have any effect on the error that you received, but who knows. I had completely forgotten that Thunderbird does not have the latest version, though. Thanks for the heads up 😃

Since both of you seem to have resolved your issues, I suppose we can close this?

VNGamerGit commented 2 years ago

Looking at the changes between v2.0.6 and v2.0.7, it should not have any effect on the error that you received, but who knows. I had completely forgotten that Thunderbird does not have the latest version, though. Thanks for the heads up 😃

Since both of you seem to have resolved your issues, I suppose we can close this?

Yeah, I suppose. Or maybe we can keep this open in case anyone got the same problem as mine?

dave-cao commented 2 years ago

Hey I just wanted to put in a note. I had the same error of "You are not connected to the Pywalfox daemon" and the above methods didn't work.

For others that run into the same problem, the following solution worked for me.

It turned out that I added the pywalfox firefox extension before installing pywalfox on the system. I just had to delete and re-add the pywalfox extension on firefox and it worked.

So in short, pip install pywalfox and pywalfox install before adding in the firefox pywalfox extension.

Hope this helps anyone in the future.

MNolan147 commented 2 years ago

I am currently experiencing this bug and none of the above fixes are working for me.

ghost commented 2 years ago

Reboot your pc, and do sudo pywalfox install then try to fetch pywalfox extension It worked for me.

MNolan147 commented 2 years ago

This didn't work for me. The only difference is that the pywalfox extension no longer appears in the extension bar (it is installed but I can't get to the page that allows me to fetch colours).

ghost commented 2 years ago

I had that problem too ( extension bar no longer appear ) and private window not working , Do update your firefox if it didn't work then try reinstall firefox, It fixed that both problem for me