Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2541 Lượt xem

Hi,

I am trying to connect Odoo Application (SP) with one of the IdP.

I have downloaded auth_saml for odoo12.

I am done with configurations for Metadata, certificates and Lasso Python Lib.

When I click on Login with SAML then its raising an Error for Lasso.

Error:

  File "/home/odoo12/gitlab_addons_new/other_custom_addons/auth_saml/models/auth_saml.py", line 52, in _get_lasso_for_provider

    server = lasso.Server.newFromBuffers(

AttributeError: module 'lasso' has no attribute 'Server'


Any issue with Configuration or Lasso? 

[Lasso installed on pip using: pip install lasso]

Appreciate for any help. Thanks

(Odoo12 - python 3.8) - [Also tried lasso install with 3.6 but same error]

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

First uninstall lasso, pip3 uninstall lasso

We can solve this issue by using the python3-lasso package install in ubuntu system.

sudo apt-get install python3-lasso

If we are using python environment i.e. env  then we can inherit python base packages to env (envionment) by using following command,

virtualenv  env_name  --system-site-packages


Now it is working for me.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hey Mohammed, 

Try running this below command.

pip3 install lasso

Thanks

Regards,




Email:      odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 10 23
9153
1
thg 9 23
3441
1
thg 5 23
2428
2
thg 4 23
3000
1
thg 3 23
2372