[GH-ISSUE #2] unexpected keyword argument 'capture_output' #1

Closed
opened 2026-03-01 14:33:45 +03:00 by kerem · 2 comments
Owner

Originally created by @yashasolutions on GitHub (Jan 2, 2021).
Original GitHub issue: https://github.com/adefossez/seewav/issues/2

Traceback (most recent call last):
  File "/home/user/.local/bin/seewav", line 8, in <module>
    sys.exit(main())
  File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 297, in main
    size=(args.width, args.height))
  File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 179, in visualize
    wav, sr = read_audio(audio, seek=seek, duration=duration)
  File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 66, in read_audio
    info = read_info(audio)
  File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 54, in read_info
    capture_output=True)
  File "/usr/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'capture_output'

Could be linked to :
https://stackoverflow.com/questions/53209127/subprocess-unexpected-keyword-argument-capture-output

Originally created by @yashasolutions on GitHub (Jan 2, 2021). Original GitHub issue: https://github.com/adefossez/seewav/issues/2 ``` Traceback (most recent call last): File "/home/user/.local/bin/seewav", line 8, in <module> sys.exit(main()) File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 297, in main size=(args.width, args.height)) File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 179, in visualize wav, sr = read_audio(audio, seek=seek, duration=duration) File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 66, in read_audio info = read_info(audio) File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 54, in read_info capture_output=True) File "/usr/lib/python3.6/subprocess.py", line 423, in run with Popen(*popenargs, **kwargs) as process: TypeError: __init__() got an unexpected keyword argument 'capture_output' ``` Could be linked to : https://stackoverflow.com/questions/53209127/subprocess-unexpected-keyword-argument-capture-output
kerem closed this issue 2026-03-01 14:33:46 +03:00
Author
Owner

@yashasolutions commented on GitHub (Jan 2, 2021):

Dependency to Python 3.7
ok, so I fixed it

  • install python 3.7
    sudo apt-get install python3.7
  • install python3.7-dev
    sudo apt-get install python3.7-dev
  • install specifying python3.7
    python3.7 -m pip install seewav

and then it works

<!-- gh-comment-id:753416097 --> @yashasolutions commented on GitHub (Jan 2, 2021): Dependency to Python 3.7 ok, so I fixed it - install python 3.7 `sudo apt-get install python3.7` - install python3.7-dev `sudo apt-get install python3.7-dev` - install specifying python3.7 `python3.7 -m pip install seewav` and then it works
Author
Owner

@adefossez commented on GitHub (Jan 4, 2021):

Yes, you need Python 3.7. I updated the readme to make that clear :)

<!-- gh-comment-id:753884981 --> @adefossez commented on GitHub (Jan 4, 2021): Yes, you need Python 3.7. I updated the readme to make that clear :)
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/seewav#1
No description provided.