I am getting the below error while running spot_connect.sutils.load_profiles() in the mac os.
python3 ec2_spot.py
lib: profiles.txt profiles /
pull: /Users/xyz/Desktop/MyComputer/Development/env_aws/lib/python3.8/site-packages/spot_connect
Traceback (most recent call last):
File "ec2_spot.py", line 18, in <module>
print(sutils.load_profiles())
File "/Users/xyz/Desktop/MyComputer/Development/env_aws/lib/python3.8/site-packages/spot_connect/sutils.py", line 60, in load_profiles
profile = [f for f in list(absoluteFilePaths(pull_root()+'/data/')) if f.split('\\')[-1]=='profiles.txt'][0]
IndexError: list index out of range
Found issue during the
f.split('\\')[-1]=='profiles.txt'
Possible solution to this is using pathlib package.
I am getting the below error while running spot_connect.sutils.load_profiles() in the mac os.
Found issue during the
Possible solution to this is using pathlib package.