https://flyte.org logo
#ask-the-community
Title
# ask-the-community
g

Gauthier Castro

11/08/2023, 9:58 PM
Hello, I keep getting the following error on a custom image:
Original exception: module 'aiobotocore' has no attribute 'AioSession'
(error log in thread below) could it be related to the fsspec version issue by any chance?
Copy code
[1/1] currentAttempt done. Last Error: USER::Pod failed. No message received from kubernetes.

[a8c48jpxndf4hrqrmwcg-n0-0] terminated with exit code (1). Reason [Error]. Message: 
                                              │
│                                                                              │
│ ❱ 519 │   │   _download_distribution(additional_distribution, dest_dir)      │
│                                                                              │
│ /usr/local/lib/python3.10/site-packages/flytekit/core/utils.py:295 in        │
│ wrapper                                                                      │
│                                                                              │
│ ❱ 295 │   │   │   │   return func(*args, **kwargs)                           │
│                                                                              │
│ /usr/local/lib/python3.10/site-packages/flytekit/tools/fast_registration.py: │
│ 113 in download_distribution                                                 │
│                                                                              │
│ ❱ 113 │   FlyteContextManager.current_context().file_access.get_data(additio │
│                                                                              │
│ /usr/local/lib/python3.10/site-packages/flytekit/core/data_persistence.py:32 │
│ 6 in get_data                                                                │
│                                                                              │
│ ❱ 326 │   │   │   raise FlyteAssertion(                                      │
╰──────────────────────────────────────────────────────────────────────────────╯
FlyteAssertion: Failed to get data from 
<s3://flyte-artifacts.dev.degould.online/spec-check/development/2UG5RZNOOPUKCLMUJ>
LHOHXTUEY======/fast97ceef003a149782301c596a71a9b60c.tar.gz to /root/ 
(recursive=False).

Original exception: module 'aiobotocore' has no attribute 'AioSession'
.
@Guy Arad it looks like setting
fsspec>=2023.3.0,<=2023.9.2
causes it. I tried without and don’t get this error 😕
g

Guy Arad

11/09/2023, 12:49 AM
A change was introduced by fsspec broke flytekit. I believe it was mostly fixed by then as part of a refactor, but the constraint was not removed. Do you have a repro for the issue you are having?
g

Gauthier Castro

12/08/2023, 1:00 PM
Just getting back to this after a long holiday 🙂
@Guy Arad not quite sure where this issue is at. Anything I can do to help?
g

Guy Arad

01/07/2024, 8:16 AM
@Gauthier Castro sorry i was preoccupied with other work stuff... way back when, this was resolved by locking the fsspec version. This wasn't localized to my own environment, I just found out about it first because installed flytekit 2 days after the problematic dependency was released
g

Gauthier Castro

01/08/2024, 10:17 AM
No worries thanks for letting me know
n

Nofar Yungman

01/19/2024, 4:55 PM
Hi 🙂 just got this error too. how do you suggest to solve it?
I’m using
flytekit = "1.10.2"
g

Gauthier Castro

01/21/2024, 1:02 PM
Kind of, if you have a look at the link above hopefully it’ll help
61 Views