zerodha / frappe-attachments-s3

A frappe app to upload file attachments in doctypes to s3.
Other
115 stars 131 forks source link

on site installation it gives error : cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py) #63

Closed ashish-greycube closed 6 months ago

ashish-greycube commented 6 months ago

Actual behaviour

Installing frappe_s3_attachment... Updating DocTypes for frappe_s3_attachment: [========================================] 100% frappe.integrations.doctype.s3_backup_settings.s3_backup_settings.take_backups_daily is not a valid method: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py)

Step to reproduce

bench get-app https://github.com/shridarpatil/frappe-attachments-s3 bench --site sitename install-app frappe_s3_attachment

Version

v-14

ashish-greycube commented 6 months ago

@shridarpatil , any pointers to fix this is welcome! thanks

ashish-greycube commented 6 months ago

I think urilib3 vesion issue on bench..doing following commands solved it

source env/bin/activate
pip3 install python-magic -U
pip3 install botocore -U
pip3 install boto3 -U