[Documentation] ExecutorBase.submit() missing 1 required positional argument: 'fn'
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 38/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
Review the documentation for ExecutorBase.submit() and compare its documented calling convention with the example in the issue and Python's concurrent.futures behavior. Confirm whether the current error is expected and clarify the documented usage or compatibility note accordingly. Done means the submit() behavior and the older-version difference are clearly explained.
Written by the indexing model from the issue text.
Description
When the function is set explicitly in the submit() function executorlib raises and error message:
ExecutorBase.submit() missing 1 required positional argument: 'fn'
For example:
import executorlib
def sum_funct(a,b):
return sum([a, b])
with executorlib.SingleNodeExecutor() as exe:
f = exe.submit(fn=sum_funct, a=1, b=2)
print(f.result())
This behavior is consistent with the concurrent.futures.ThreadPoolExecutor which raises a similar error message:
from concurrent.futures import ThreadPoolExecutor
def sum_funct(a,b):
return sum([a, b])
with ThreadPoolExecutor() as exe:
f = exe.submit(fn=sum_funct, a=1, b=2)
print(f.result())
Raises:
TypeError: ThreadPoolExecutor.submit() missing 1 required positional argument: 'fn'
Still there were older versions of executorlib<=1.0.1 which did not raise this error message.
- Dominant language
- Python
- Stars
- 77
- Forks
- 7
- Avg merge
- 10h 32m
- Merged PRs (30d)
- 12
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pyiron/executorlib
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pyiron/executorlib#1054 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pyiron/executorlib#1032 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pyiron/executorlib#1005 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
pyiron/executorlib#1049 · 1 comment ·
-
documentation
Difficulty 3/5 1-2 days Newbie friendliness 35/100
pyiron/executorlib#999 · 1 comment ·
All issues in pyiron/executorlib
Similar issues
-
essnmx good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
[Feature] 奇物选择添加优先级 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Giskard-AI/giskard-oss#2840 · 1 comment ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Openarea: repo bug perceived difficulty: 2
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
yeti-platform/yeti#1380 ·