Failed to connect to socket
See original GitHub issueHey,
Just ran into this issue recently and can’t figure it out. Hopefully it’s an easy fix!
When I run pywalfox update
it get the error:
ERROR:root:Failed to connect to socket: Connection refused
The output from the log is:
[06-09-2021 10:41:33] DEBUG:Using python 3.7.8 [06-09-2021 10:41:33] DEBUG:Firefox profile path is relative [06-09-2021 10:41:33] DEBUG:Found chrome directory at path: /home/voekreb/.mozilla/firefox/yv0qj2aq.default-release-1594812527610/chrome [06-09-2021 10:41:33] DEBUG:Default UNIX-socket is already in use [06-09-2021 10:41:33] DEBUG:Setup socket server using AF_UNIX (linux/darwin) [06-09-2021 10:41:33] DEBUG:Successfully bound socket to: /tmp/pywalfox_socket_alt [06-09-2021 10:41:38] DEBUG:Running cleanup [06-09-2021 10:41:38] DEBUG:UNIX-socket deleted
At first I thought the issue might have been that in the pywalfox.json
file, something was wrong with the path
line. I checked and it exists; one issue though was that main.sh
was giving an error because of sw_vers
. I tried commenting that out and trying again, but the same issue persists. I uninstalled everything, including Firefox, and reinstalled to try again with an earlier version. I tried versions 2.7 and 2.6, and still get the same error.
I also noticed that the chrome directory path is actually not the same as what shows up in Firefox’s about:support
page. I tried running the program with the Firefox profile in the path
line but I still get the same issue. And with both profiles, the browser add-on just gives the error that there’s no connection to the daemon.
Let me know what else you need!
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Yep, that did it! Maybe I will figure out the shims thing someday but it’s not an issue for me now. Thanks for the very fast help! I’ve really enjoyed the eye candy your app has allowed 😃
Firefox will use the python defined in the global path, i.e.
/usr/bin/pythonx
, which is why it won’t work. I suppose a fix would be to simply install Pywalfox using one of the global python executables (if you still have one of those?).Something like this:
and make sure to re-run
pywalfox install
after installing.