splunk / splunk-sdk-python

Splunk Software Development Kit for Python
http://dev.splunk.com
Apache License 2.0
687 stars 369 forks source link

Client module not importable from pip install in virtualenv #344

Closed dtrodger closed 4 years ago

dtrodger commented 4 years ago

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 commented 4 years ago

Adding line 22 to the root folder init gets around it for now.

Screen Shot 2020-09-13 at 3 28 56 PM
dtrodger commented 4 years ago

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.