Open droy-proxsys opened 1 year ago
I think you might have forgotten to post the error code, can you re-post it please? Also what version of python are you using?
Ah, I see. The error code is 3221225477. I'm still curious what version of python and boto3 you are using.
What 3221225477 means: https://stackoverflow.com/a/59363446
This is a pretty weird problem to have. Does this occur when you run the code normally, outside of AREPL, but still using the same python executable and virtual env?
That would be helpful, apologies.
Python 3.10. 9 Current boto3
And no its only doing it with this. Everything else seems to be fine!
Thanks for the bug report. I was able to reproduce this on a windows machine on the second run of the above code. The first run is fine.
You can reproduce the problem with just the below code as well:
import boto3
session = boto3.session.Session()
s3_client = session.client('s3', aws_access_key_id = '<key id here>', aws_secret_access_key = '<secret key here>')
s3_client.list_buckets()
This issue is the same issue as a number of other problems introduced by the import clearing mechanism, like https://github.com/Almenon/AREPL-vscode/issues/436. I try to keep each run the same by clearing any new imports, but this appears to have side effects.
As a workaround you can put boto3
in AREPL.pyGuiLibraries
, although this slows down AREPL. Let me know what you think of the slowness.
Most of the time this works great however, lately I've been getting the above error code when during evaluating this snippet.