You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
I'm trying to follow the instructions about 'Using S3 Notifications to sync caches' and I have an exception when running the script
ppc-create-s3-sync config.ini
Traceback (most recent call last):
File "/opt/homebrew/bin/ppc-create-s3-sync", line 9, in <module>
sys.exit(create_sync_scripts())
File "/opt/homebrew/lib/python3.10/site-packages/pypicloud/lambda_scripts.py", line 291, in create_sync_scripts
kwargs = S3Storage.configure(settings)
File "/opt/homebrew/lib/python3.10/site-packages/pypicloud/storage/object_store.py", line 83, in configure
kwargs.update(cls._subclass_specific_config(settings, kwargs))
File "/opt/homebrew/lib/python3.10/site-packages/pypicloud/storage/s3.py", line 58, in _subclass_specific_config
return {"sse": sse, "bucket": cls.get_bucket(bucket_name, settings)}
File "/opt/homebrew/lib/python3.10/site-packages/pypicloud/storage/s3.py", line 66, in get_bucket
config_settings = settings.get_as_dict(
AttributeError: 'ConfigDict' object has no attribute 'get_as_dict'
I tried to debug a bit and while settings is defined as EnvironSettings when I print the class I get <class 'plaster_pastedeploy.ConfigDict'>
Ah, this probably broke when I added the EnvironSettings helper. This flow has never been well tested because I suspect it's rarely used, so I'm not surprised to see some code rot. If that's the only issue, the fix might be pretty simple.
Hi!
I'm trying to follow the instructions about 'Using S3 Notifications to sync caches' and I have an exception when running the script
I tried to debug a bit and while settings is defined as EnvironSettings when I print the class I get <class 'plaster_pastedeploy.ConfigDict'>
Any ideas why it doesn't work? And how I could make it work? :)
Thanks!
The text was updated successfully, but these errors were encountered: