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

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

Open
VNGamerGit opened this issue Oct 1, 2021 · 20 comments
Open

Comments

@VNGamerGit
Copy link

VNGamerGit commented Oct 1, 2021

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 VNGamerGit reopened this Oct 1, 2021
@VNGamerGit VNGamerGit changed the title Native Application still not found, despite copying the pywalfox.json file into the directory from MDN Web Docs, and reinstalling "Fetch failed: You are not connected to the Pywalfox daemon" error Oct 1, 2021
@Frewacom
Copy link
Owner

Frewacom commented Oct 1, 2021

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

It will most likely fix your issue 😃

@VNGamerGit
Copy link
Author

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
Copy link
Owner

Frewacom commented Oct 1, 2021

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
Copy link
Author

VNGamerGit commented Oct 1, 2021

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
Copy link
Author

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
Copy link
Owner

Frewacom commented Oct 2, 2021

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
Copy link
Author

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
Copy link
Author

VNGamerGit commented Oct 2, 2021

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
Copy link

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
Copy link
Owner

Frewacom commented Nov 3, 2021

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
Copy link
Owner

Frewacom commented Nov 3, 2021

Sorry for late response, I have been busy lately.

Have you been able to resolve this @VNGamerGit?

@VNGamerGit
Copy link
Author

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
Copy link

maishams commented Nov 3, 2021

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
Copy link
Owner

Frewacom commented Nov 3, 2021

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
Copy link
Author

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
Copy link

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
Copy link

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

@ghost
Copy link

ghost commented Jun 6, 2022

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

@MNolan147
Copy link

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
Copy link

ghost commented Jun 7, 2022

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

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

5 participants