← All tasks
pythonaio-libs/aiosignal #721Not a task: already works

TypeError: __init__() got an unexpected keyword argument 'default'

envgap__aio-libs__aiosignal-721

01 / FAILURE SIGNATURE

As reported upstream

TypeError: __init__() got an unexpected keyword argument 'default'
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
d392e36a252e61a105492f830fb141e70ea23f82
Manifest
setup.cfg
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

aio-libs/aiosignal #721 · read the original issue
The moment call import aiosignal, we are getting this error: 
TypeError: __init__() got an unexpected keyword argument 'default'


but if we do pip install aiosignal 1.3.2, its resolved.

All our production jobs are failing because we install s3fs library which is installing aiosignal 1.4.0.

![Image](https://github.com/user-attachments/assets/d96b8d36-fe86-484e-a7a9-564ec132f81c)

![Image](https://github.com/user-attachments/assets/0f36cc4c-3e98-4f58-a6ba-9f134fb668b4)

Steps to replicate:
`
python version 3.9.21
`
```
pip install s3fs
```
```
import aiosignal
```
Error:
```
TypeError: __init__() got an unexpected keyword argument 'default'
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
File <command-8916772147573356>:1
----> 1 import aiosignal
      2 aiosignal.__version__

File /databricks/python_shell/dbruntime/PythonPackageImportsInstrumentation/__init__.py:171, in _create_import_patch.<locals>.import_patch(name, globals, locals, fromlist, level)
    166 thread_local._nest_level += 1
    168 try:
    169     # Import the desired module. If you’re seeing this while debugging a failed import,
    170     # look at preceding stack frames for relevant error information.
--> 171     original_result = python_builtin_import(name, globals, locals, fromlist, level)
    173     is_root_import = thread_local._nest_level == 1
    174     # `level` represents the number of leading dots in a relative import statement.
    175     # If it's zero, then this is an absolute import.

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-2b078d66-34d7-4fc0-847f-40dcb64abdae/lib/python3.9/site-packages/aiosignal/__init__.py:17
     14     from typing_extensions import TypeVarTuple
     16 _T = TypeVar("_T")
---> 17 _Ts = TypeVarTuple("_Ts", default=Unpack[tuple[()]])
     19 __version__ = "1.4.0"
     21 __all__ = ("Signal",)

TypeError: __init__() got an unexpected keyword argument 'default'
```
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]