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

OSX AttributeError: module 'subprocess' has no attribute 'PIPE' #49

Open
MountainLogic opened this issue Jan 7, 2018 · 1 comment
Open

Comments

@MountainLogic
Copy link

MountainLogic commented Jan 7, 2018

On my MAC Sierra I've just installed Py 3.6 and -m pip'ed PyQt5 and numpy. Now I'm getting the following error:

MacBook-Pro:qspectrumanalyzer st$ python3.6 qspectrumanalyzer
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "qspectrumanalyzer/__main__.py", line 7, in <module>
    from qspectrumanalyzer import backends
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/qspectrumanalyzer/backends/__init__.py", line 1, in <module>
    import os, glob, subprocess, threading
  File "qspectrumanalyzer/subprocess.py", line 4, in <module>
    PIPE = subprocess.PIPE
AttributeError: module 'subprocess' has no attribute 'PIPE'

I'd appreciate any suggestions to clean up this error. I plan on using this with LimeSDR

@eblot
Copy link

eblot commented Aug 13, 2018

Same here. I think there is a pitfall with qspectrumanalyser redefining subprocess Python module with the same module name, i.e. qspectrumanalyser/subprocess.py

As a quick workaround, you can change the subprocess.py name as for example subproc.py and update the files that invoke subprocess.X() with subproc.X(). It's a workaround, not a lean and clean solution.

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

2 participants