splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

Client module not importable from pip install in virtualenv

Open dtrodger opened this issue 6 years ago • 2 comments

I might be doing something wrong here... I pip installed the SDK in a Python 3.8 virtual environment. I see the splunk-sdk and splunklib libs in the virtualenv. When I try to import splunklib.client, an exception is raised "AttributeError: module 'splunklib' has no attribute 'client'"

dtrodger avatar Sep 13 '20 20:09 dtrodger

Adding line 22 to the root folder init gets around it for now. Screen Shot 2020-09-13 at 3 28 56 PM

dtrodger avatar Sep 13 '20 20:09 dtrodger

Hello, any ideas on this? We've included the SDK source in our project and it's a lot of work to refactor it to pass Python 3 linting.

dtrodger avatar Sep 17 '20 22:09 dtrodger