question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: __init__() missing 1 required positional argument: 'operation_name'

See original GitHub issue

Getting 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:closed
  • Created 5 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
blackbelt080commented, Aug 7, 2018

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 🔢

0reactions
jamestwebbercommented, Aug 8, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found