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

SIGPIPE problem on Windows 10 #9

Open
alexsconway opened this issue Jun 25, 2022 · 5 comments
Open

SIGPIPE problem on Windows 10 #9

alexsconway opened this issue Jun 25, 2022 · 5 comments

Comments

@alexsconway
Copy link

Netaudio was installed using pip

Microsoft Windows [Version 10.0.19044.1766]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Alex>netaudio
Traceback (most recent call last):
File "C:\Users\Alex\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\Alex\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\Alex\AppData\Local\Programs\Python\Python310\Scripts\netaudio.exe_main
.py", line 4, in
File "C:\Users\Alex\AppData\Local\Programs\Python\Python310\lib\site-packages\netaudio_init
.py", line 10, in
from .console.application import main
File "C:\Users\Alex\AppData\Local\Programs\Python\Python310\lib\site-packages\netaudio\console\application.py", line 1, in
from signal import signal, SIGPIPE, SIG_DFL
ImportError: cannot import name 'SIGPIPE' from 'signal' (C:\Users\Alex\AppData\Local\Programs\Python\Python310\lib\signal.py)

C:\Users\Alex>

@mixmog
Copy link

mixmog commented Jun 1, 2023

Also seeing this error

@AleksB27
Copy link

SIGPIPE is supported only in Unix, not WinXX

@alexsconway
Copy link
Author

After removing the lines involving signal & SPIGPIE etc, it seems to work - at least for finding devices.
Could you put a try-except-pass around the signal stuff?
What does it do anyway?

@AleksB27
Copy link

I added this:
try: from signal import signal, SIGPIPE, SIG_DFL signal(SIGPIPE, SIG_DFL) except ImportError: # If SIGPIPE is not available (win32), pass

but now getting another error - cannot import name 'Command' from 'cleo'
trying to solve it

@alexsconway
Copy link
Author

@AleksB27 re: "but now getting another error - cannot import name 'Command' from 'cleo'"
that is a diffferent issue, please open another issue for it.

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

3 participants