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

Running examples raises ModuleNotFoundError: No module named 'sdk_exceptions' #756

Closed
slobodan-ilic opened this issue Jul 15, 2021 · 2 comments · Fixed by #1066
Closed

Comments

@slobodan-ilic
Copy link

I was trying to set up the basic SDK from python and tried to follow through with the examples. The first one that I've tried, namely the test_connection.py can't be run, because it raises:

➜  looker-sdk-example python test_connection.py
Traceback (most recent call last):
  File "test_connection.py", line 6, in <module>
    import sdk_exceptions
ModuleNotFoundError: No module named 'sdk_exceptions'

I tried to do a search of the sdk_exceptions in the repository, and I can only find it in the examples code. So I'm assuming that it's a remnant of an older version, which hasn't been updated in the examples.

Could the examples please be updated with the valid code? I'll keep researching and I'm happy to open a PR once I figure out what this is about (what should be used instead of sdk_exceptions).

@slobodan-ilic
Copy link
Author

Never mind, I found the definition of the sdk_exceptions in the examples folder. It's a little bit weird that it's defined there, with no prior references that one should go forward and download the entire example suite, or at least copy the extra files over.

@lanlooker
Copy link
Contributor

Hi @slobodan-ilic, thank you for letting us know about this issue. I'll make add a note into the readme.md python examples folder to clarify this module.

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

Successfully merging a pull request may close this issue.

2 participants