I do a local splunk-appinspect on packages before uploading them to Splunk Cloud. Each jenkins run will 'pip install splunk-appinspect'. If the same agent has been installed, it will of course not...
See more...
I do a local splunk-appinspect on packages before uploading them to Splunk Cloud. Each jenkins run will 'pip install splunk-appinspect'. If the same agent has been installed, it will of course not get installed again. Here's the job run console logs: 09:11:18 LEVEL="CRITICAL" TIME="2023-10-10 01:11:18,718" NAME="root" FILENAME="main.py" MODULE="main" MESSAGE="An unexpected error occurred during the run-time of Splunk AppInspect" 09:11:18 Traceback (most recent call last): 09:11:18 File "/home/jkagent/.local/lib/python3.9/site-packages/splunk_appinspect/main.py", line 581, in validate 09:11:18 groups_to_validate = splunk_appinspect.checks.groups( 09:11:18 File "/home/jkagent/.local/lib/python3.9/site-packages/splunk_appinspect/checks.py", line 205, in groups 09:11:18 check_group_modules = import_group_modules(check_dirs) 09:11:18 File "/home/jkagent/.local/lib/python3.9/site-packages/splunk_appinspect/checks.py", line 73, in import_group_modules 09:11:18 group_module = imp.load_source(group_module_name, filepath) 09:11:18 File "/usr/lib/python3.9/imp.py", line 171, in load_source 09:11:18 module = _load(spec) 09:11:18 File "<frozen importlib._bootstrap>", line 711, in _load 09:11:18 File "<frozen importlib._bootstrap>", line 680, in _load_unlocked 09:11:18 File "<frozen importlib._bootstrap_external>", line 790, in exec_module 09:11:18 File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed 09:11:18 File "/home/jkagent/.local/lib/python3.9/site-packages/splunk_appinspect/checks/check_source_and_binaries.py", line 17, in <module> 09:11:18 import splunk_appinspect.check_routine as check_routine 09:11:18 File "/home/jkagent/.local/lib/python3.9/site-packages/splunk_appinspect/check_routine/__init__.py", line 15, in <module> 09:11:18 from .find_endpoint_usage import find_endpoint_usage 09:11:18 File "/home/jkagent/.local/lib/python3.9/site-packages/splunk_appinspect/check_routine/find_endpoint_usage.py", line 7, in <module> 09:11:18 from pyparsing import Generator 09:11:18 ImportError: cannot import name 'Generator' from 'pyparsing' (/usr/lib/python3/dist-packages/pyparsing.py) Any idea what exactly is broken and suggestion on how to solve them?