unexpected keyword argument 'capture_output' on startup
See original GitHub issueHey. First of all: many thanks for the effort to keep software free and open source ❤️
In contrast to insomniac I have an issue on startup the app and I can’t find the point to fix it:
(.venv) ➜ bot git:(master) python3 run.py --blogger-followers kwerfeldein --device ce01171159e094490c
[11/22 15:33:06] INFO | GramAddict 1.0.4
[11/22 15:33:06] INFO | Loading plugins . . .
[11/22 15:33:06] INFO | - ActionUnfollowFollowers: This plugin handles the functionality of unfollowing your followers
[11/22 15:33:06] INFO | - CoreArguments: This plugin simply adds core arguments
[11/22 15:33:08] INFO | - DataAnalytics: Generates a PDF analytics report of specified username session data
[11/22 15:33:08] INFO | - InteractBloggerFollowers: This plugin handles the functionality of interacting with a bloggers followers
[11/22 15:33:08] INFO | - InteractHashtagLikers: This plugin handles the functionality of interacting with a bloggers followers
[11/22 15:33:08] INFO | Instagram version: not found
[11/22 15:33:08] INFO | -------- START: 2020-11-22 15:33:08.220735 --------
[11/22 15:33:08] INFO | Open Instagram app
Traceback (most recent call last):
File "run.py", line 3, in <module>
GramAddict.run()
File "/home/julian/d/bot/GramAddict/__init__.py", line 154, in run
open_instagram(device_id)
File "/home/julian/d/bot/GramAddict/core/utils.py", line 80, in open_instagram
cmd_res = subprocess.run(cmd, capture_output=True, shell=True, encoding="utf8")
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'
When I list the connected devices, it shows me my phone
(.venv) ➜ bot git:(master) adb devices
List of devices attached
ce01171159e094490c device
The screen is active when I start the script. The dependencies are installed.
Can anyone give me a hint how to solve it?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
subprocess: unexpected keyword argument capture_output
3 Answers 3 · 1. I get "name 'PIPE' is not defined" if I try to use the solution provided here. – Scorb...
Read more >TypeError: __init__() got an unexpected keyword ... - GitHub
Tried it on my Raspberry Pi and got this error: sudo ./detect.py 192.168.1.0/24 data.db Traceback (most recent call last): File ".
Read more >Subprocess management — documentation Python 3.7.0a0
Partial support of the Windows STARTUPINFO structure is used for Popen creation. The following attributes can be set by passing them as keyword-only...
Read more >How To Use subprocess to Run External Programs in Python 3
Importantly, however, we pass the capture_output=True and text=True keyword arguments to subprocess.run . subprocess.run returns a subprocess.
Read more >10+ practical examples to learn python subprocess module
Wait for the command to complete; Capture output from command ... __init__() got an unexpected keyword argument 'capture_output' .
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Many thanks to @arthurspa for the PR #93
This fixes the issue 😃
Closing! 😄