pywalfox icon indicating copy to clipboard operation
pywalfox copied to clipboard

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

Open VNGamerGit opened this issue 3 years ago • 21 comments

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"

VNGamerGit avatar Oct 01 '21 06:10 VNGamerGit

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 😃

Frewacom avatar Oct 01 '21 07:10 Frewacom

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

VNGamerGit avatar Oct 01 '21 07:10 VNGamerGit

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).

Frewacom avatar Oct 01 '21 08:10 Frewacom

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 avatar Oct 01 '21 08:10 VNGamerGit

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)

VNGamerGit avatar Oct 01 '21 12:10 VNGamerGit

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();

Frewacom avatar Oct 02 '21 11:10 Frewacom

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 avatar Oct 02 '21 11:10 VNGamerGit

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

VNGamerGit avatar Oct 02 '21 11:10 VNGamerGit

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

maishams avatar Oct 25 '21 16:10 maishams

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 avatar Nov 03 '21 14:11 Frewacom

Sorry for late response, I have been busy lately.

Have you been able to resolve this @VNGamerGit?

Frewacom avatar Nov 03 '21 14:11 Frewacom

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

VNGamerGit avatar Nov 03 '21 14:11 VNGamerGit

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

maishams avatar Nov 03 '21 15:11 maishams

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?

Frewacom avatar Nov 03 '21 15:11 Frewacom

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?

VNGamerGit avatar Nov 03 '21 15:11 VNGamerGit

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.

dave-cao avatar Nov 17 '21 17:11 dave-cao

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

MNolan147 avatar May 24 '22 04:05 MNolan147

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

ghost avatar Jun 06 '22 16:06 ghost

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).

MNolan147 avatar Jun 07 '22 04:06 MNolan147

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

ghost avatar Jun 07 '22 04:06 ghost