TypeError: __init__() missing 1 required positional argument: 'operation_name'
See original GitHub issueGetting this error (inconsistently) while invoking the step function with start_execution
:
client = session.client('stepfunctions', region_name=settings.AWS_REGION)
response = client.start_execution(
stateMachineArn=state_machine_arn,
name=execution_id,
input=input_string
)
Here is part of the stack trace:
web_1 | json.dumps(state_machine_input, cls=DecimalStringEncoder)
web_1 | File "/usr/local/lib/python3.4/site-packages/timeout_decorator/timeout_decorator.py", line 91, in new_function
web_1 | return timeout_wrapper(*args, **kwargs)
web_1 | File "/usr/local/lib/python3.4/site-packages/timeout_decorator/timeout_decorator.py", line 150, in __call__
web_1 | return self.value
web_1 | File "/usr/local/lib/python3.4/site-packages/timeout_decorator/timeout_decorator.py", line 170, in value
web_1 | flag, load = self.__queue.get()
web_1 | File "/usr/local/lib/python3.4/multiprocessing/queues.py", line 116, in get
web_1 | return ForkingPickler.loads(res)
web_1 | TypeError: __init__() missing 1 required positional argument: 'operation_name'
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
python - __init__() missing 1 required positional argument
You're receiving this error because you did not pass a data variable to the DHT constructor. aIKid and Alexander's answers are nice but...
Read more >TypeError: __init__() missing 1 required positional argument
The Python TypeError: init () missing 1 required positional argument occurs when we forget to provide a required argument when instantiating ...
Read more >How to solve : "TypeError: __init__() missing 1 required ...
You need to pass a value to Employee() employee = Employee("George") You have a positional parameter name that needs an argument passed for...
Read more >TypeError: __init__() missing 1 required positional argument ...
Describe the bug I am following the example in the documentation for elastic search step by step (on google colab): ...
Read more >TypeError: __init__() missing 1 required positional argument
Task 2 says the __init__ method should only take the self argument. When the checker runs your code, it isn't expecting to provide...
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 FreeTop 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
Top GitHub Comments
interesting that you say that deciphering is difficult when boto3 is using SSL client side code rather than TLS code. It is setting up the input functions to work with different security types that is quite difficult. Sometimes a https can be setup to handle the boto.session imports with a simple call to the url and then initializing the constructor that calls the step function to iterate through the state machine arn, and input string. Might help you out or not 🔢
My issues with these operations seem to be multiplying…is there any guide anywhere for how to efficiently copy (or restore, or anything) lots of files at once using boto3? Doing it per-file takes far too long. The multiprocessing approaches I’ve used in the past no longer seem to work for reasons that are not explained. And this repo is basically silent.