-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Decoding error on child.connections(kind='unix') #675
Comments
Mmm this is gonna be hard to debug. What's the output of |
It works with python2. The typical neovim socket name looks like "/tmp/nvimeArb4h/0" |
let me know if psutil embeds a logging system I could enable to help debugging |
What about |
Oops sorry: sys.getdefaultencoding() gives 'utf-8' |
Please try e229dbe |
Actually please try 77119eb |
Apparently the commit fixed it. Hope it's not because the random socket name was ok. Anyway I close this and will reopen if the bug arises again. |
Sorry, it was working because I had left python2 in the shebang. When using python3 I still have the same mistake
|
Can you paste the content of the file (with |
Actually it would be great if you can attach the file itself. Can you mail it to me at [email protected]? |
Please try now. |
Great that solved it. Thanks again ! Closing this (Hopefully definitely :) ) |
* giampaolo/master: (34 commits) pre-release updates try to fix appveyor failure refactor setup.py + fix Makefile fix OSX test failure linux / setup.py: do not print warnings giampaolo#675: [Linux] net_connections(); UnicodeDecodeError may occur when listing UNIX sockets move unicode tests so that they are executed on all platforms skip failing test on appveyor try to fix appveyor failure test refactoring+ try to fix appveyor failures open files by using sys.getfilesystemencoding() + refactor stuff giampaolo#675: try to fix encoding issue fix python 3 compilation error giampaolo#659: [Linux] compilation error on Suse 10. (patch by maozguttman) make flake8 happy fix giampaolo#644: add support for CTRL_* signals on Windows str-encode NIC names always return encoded strings instead of unicode giampaolo#650: make cmdline() handle unicode on python 2 ...
Here is a log of my small python script that tries to find the unix socket associated with the neovim application running in the currently focused terminal:
The exception seem to start with the child.connections(kind="unix") call. On another computer with configuration nearly identical (same $HOME, ubuntu on both etc...) the script works perfectly. I've tried with the latest master and still the same error.
The text was updated successfully, but these errors were encountered: