I have 2 fresh installs, one local VM and one on Google Cloud. Both packaged from Bitnami. I get this error when trying to set up email server. Same on both.
App Versions
{
“erpnext”: “7.0.0-beta”,
“frappe”: “7.0.0-beta”
}
Route
Form/Email Account/Notifications
Error Report
Traceback (most recent call last):
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 20, in savedocs
doc.save()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 250, in save
self._validate()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 369, in _validate
self._save_passwords()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 582, in _save_passwords
set_encrypted_password(self.doctype, self.name, new_password, df.fieldname)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/utils/password.py”, line 25, in set_encrypted_password
{ ‘doctype’: doctype, ‘name’: name, ‘fieldname’: fieldname, ‘pwd’: encrypt(pwd) })
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/utils/password.py”, line 95, in encrypt
cipher_suite = Fernet(encode(get_encryption_key()))
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-packages/cryptography/fernet.py”, line 32, in init
backend = default_backend()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-packages/cryptography/hazmat/backends/init.py”, line 35, in default_backend
_default_backend = MultiBackend(_available_backends())
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-packages/cryptography/hazmat/backends/init.py”, line 22, in _available_backends
“cryptography.backends”
AttributeError: ‘EntryPoint’ object has no attribute ‘resolve’
Traceback (most recent call last):
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/app.py”, line 58, in application
response = frappe.handler.handle()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/init.py”, line 875, in call
return fn(*args, **newargs)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 20, in savedocs
doc.save()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 250, in save
self._validate()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 369, in _validate
self._save_passwords()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 582, in _save_passwords
set_encrypted_password(self.doctype, self.name, new_password, df.fieldname)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/utils/password.py”, line 25, in set_encrypted_password
{ ‘doctype’: doctype, ‘name’: name, ‘fieldname’: fieldname, ‘pwd’: encrypt(pwd) })
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/utils/password.py”, line 95, in encrypt
cipher_suite = Fernet(encode(get_encryption_key()))
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-packages/cryptography/fernet.py”, line 32, in init
backend = default_backend()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-packages/cryptography/hazmat/backends/init.py”, line 35, in default_backend
_default_backend = MultiBackend(_available_backends())
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python2.7/site-packages/cryptography/hazmat/backends/init.py”, line 22, in _available_backends
“cryptography.backends”
AttributeError: ‘EntryPoint’ object has no attribute ‘resolve’
Request Data
{
“type”: “POST”,
“args”: {
“doc”: “{"default_outgoing":1,"email_id":"art.b@shopinpart.com","creation":"2016-08-18 04:08:25.146662","doctype":"Email Account","unreplied_for_mins":30,"use_imap":0,"owner":"Administrator","use_ssl":1,"always_use_account_email_id_as_sender":0,"default_incoming":0,"modified_by":"Administrator","service":"GMail","use_tls":1,"enable_incoming":0,"attachment_limit":1,"docstatus":0,"enable_auto_reply":0,"enable_outgoing":1,"add_signature":0,"email_account_name":"Notifications","name":"Notifications","idx":0,"modified":"2016-08-18 04:08:25.146662","login_id_is_different":0,"notify_if_unreplied":0,"__last_sync_on":"2016-09-11T20:19:09.656Z","__unsaved":1,"email_server":"pop.gmail.com","smtp_server":"smtp-relay.gmail.com","smtp_port":587,"password":"*****"}”,
“action”: “Save”,
“cmd”: “frappe.desk.form.save.savedocs”
},
“btn”: {},
“freeze”: true,
“freeze_message”: “Saving”,
“url”: “/”
}
Response JSON
{
“_server_messages”: “["{\"message\": \"Did not save\"}"]”
}
Anyone have a clue how to fix this? Is this due to Bitnami packaging or not?
Thanks,
Art.