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

[BUG] Regression - Running python ./splunk_eventgen/__main__.py generate splunk_eventgen/README/eventgen.conf.tutorial1 failed #153

Closed
li-wu opened this issue Apr 8, 2019 · 1 comment
Assignees
Labels
bug Malfunctioning Eventgen due to potential bug

Comments

@li-wu
Copy link
Contributor

li-wu commented Apr 8, 2019

Description
Running python ./splunk_eventgen/__main__.py generate splunk_eventgen/README/eventgen.conf.tutorial1 for develop branch failed.

To Reproduce
Directly run python ./splunk_eventgen/__main__.py generate splunk_eventgen/README/eventgen.conf.tutorial1.

Expected behavior
Give events output.

Actual behavior
Error throw:

  File "./splunk_eventgen/__main__.py", line 25, in <module>
    EVENTGEN_VERSION = splunk_eventgen_init.__version__
AttributeError: 'module' object has no attribute '__version__'

Sample files and eventgen.conf file
splunk_eventgen/README/eventgen.conf.tutorial1

Additional context
This is caused by the the pep8 pull request here:
https://github.com/splunk/eventgen/pull/151/files#diff-afc41a2be8638faf5aa07904e026e238R17

When moving import eventgen_core to the front which inserts splunk_eventgen/lib to the front of sys.path. Then the import __init__ as splunk_eventgen_init imports splunk_eventgen/lib/__init__.py which is not expected.

@li-wu li-wu added the bug Malfunctioning Eventgen due to potential bug label Apr 8, 2019
@jmeixensperger
Copy link
Contributor

Tested fix locally with reproduction steps.

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

No branches or pull requests

2 participants