Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneLogin Python SDK v3.0.0 causes ModuleNotFoundError #76

Open
drewdavies opened this issue Oct 29, 2022 · 7 comments
Open

OneLogin Python SDK v3.0.0 causes ModuleNotFoundError #76

drewdavies opened this issue Oct 29, 2022 · 7 comments

Comments

@drewdavies
Copy link

It appears that the release of the OneLogin Python SDK v3.0.0 breaks the current onelogin-python-aws-assume-role implementation.

Traceback (most recent call last):
  File "/Users/user/.local/bin/onelogin-aws-assume-role", line 5, in <module>
    from aws_assume_role.aws_assume_role import main
  File "/Users/user/.local/pipx/venvs/onelogin-aws-assume-role/lib/python3.10/site-packages/aws_assume_role/aws_assume_role.py", line 17, in <module>
    from onelogin.api.client import OneLoginClient
ModuleNotFoundError: No module named 'onelogin.api.client'

In the interim, pinning the dependency to v2.0.3 resolves the issue:

'onelogin>=2.0.3',

@liorfranko
Copy link

+1

1 similar comment
@orarnon
Copy link

orarnon commented Oct 31, 2022

+1

@alanbrent
Copy link

+1

Note for those installing this script via pip: We have solved this by installing via pip install -r requirements.txt, where requirements.txt looks like this:

onelogin!=3.0.0
onelogin-aws-assume-role

@ehealy
Copy link

ehealy commented Nov 1, 2022

+1

@yossi-silberhaft
Copy link

I changed the Dockerfile to use the set version of 2.0.4 and it works for me
RUN pip install boto3 lxml onelogin==2.0.4

@bdellegrazie
Copy link

Note also that this problem still exists with onelogin==3.0.1

@xadamxk
Copy link

xadamxk commented May 10, 2024

Bumping for visibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants