Getting Data In

Is splunk-appinspect package broken?

wswongki
New Member

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?
Labels (2)
0 Karma

wswongki
New Member

The installation part:

09:10:20 Collecting splunk-appinspect
09:10:21 Installing build dependencies: started
09:10:33 Installing build dependencies: finished with status 'done'
09:10:33 Getting requirements to build wheel: started
09:10:34 Getting requirements to build wheel: finished with status 'done'
09:10:34 Preparing wheel metadata: started
09:10:35 Preparing wheel metadata: finished with status 'done'
09:10:35 Collecting packaging==21.3
09:10:35 Collecting markdown==3.*,>=3.1.1
09:10:36 Collecting ipaddress==1.*,>=1.0.22
09:10:36 Collecting langdetect==1.*,>=1.0.7
09:10:38 Collecting python-magic==0.4.24
09:10:38 Collecting mako==1.*,>=1.0.12
09:10:38 Requirement already satisfied: six==1.*,>=1.12.0 in /usr/lib/python3/dist-packages (from splunk-appinspect) (1.16.0)
09:10:38 Collecting pyyaml==6.*,>=6.0.1
09:10:41 Collecting lxml==4.*,>=4.6.0
09:10:41 Requirement already satisfied: future==0.*,>=0.18.0 in /usr/lib/python3/dist-packages (from splunk-appinspect) (0.18.2)
09:10:42 Collecting beautifulsoup4==4.*,>=4.8.1
09:10:45 Collecting regex==2022.1.18
09:10:46 Requirement already satisfied: jinja2<4,>=2.11.3 in /usr/local/lib/python3.9/dist-packages (from splunk-appinspect) (3.1.2)
09:10:46 Collecting semver>=2.13.0
09:10:46 Collecting click==7.*,>=7.0.0
09:10:47 Collecting enum34==1.*,>=1.1.6
09:10:47 Collecting croniter<2,>0.3.34
09:10:47 Collecting futures-then==0.*,>=0.1.1
09:10:48 Collecting jsoncomment==0.3.3
09:10:48 Collecting defusedxml==0.7.1
09:10:49 Collecting chardet==3.0.4
09:10:49 Collecting painter==0.*,>=0.3.1
09:11:06 Collecting pillow==9.5.0
09:11:07 Collecting soupsieve>1.2
09:11:07 Requirement already satisfied: MarkupSafe>=0.9.2 in /usr/local/lib/python3.9/dist-packages (from mako==1.*,>=1.0.12->splunk-appinspect) (2.1.3)
09:11:07 Collecting importlib-metadata>=4.4
09:11:07 Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/lib/python3/dist-packages (from packaging==21.3->splunk-appinspect) (2.4.7)
09:11:08 Requirement already satisfied: python-dateutil in /usr/lib/python3/dist-packages (from croniter<2,>0.3.34->splunk-appinspect) (2.8.1)
09:11:08 Requirement already satisfied: zipp>=0.5 in /usr/lib/python3/dist-packages (from importlib-metadata>=4.4->markdown==3.*,>=3.1.1->splunk-appinspect) (1.0.0)
09:11:08 Building wheels for collected packages: splunk-appinspect, futures-then, langdetect, painter
09:11:08 Building wheel for splunk-appinspect (PEP 517): started
09:11:10 Building wheel for splunk-appinspect (PEP 517): finished with status 'done'
09:11:10 Created wheel for splunk-appinspect: filename=splunk_appinspect-2.38.0-py3-none-any.whl size=1345524 sha256=357f01e587ba950015c961fc4d87302d1daa2e898a91866586e7c9e2aa26790f
09:11:10 Stored in directory: /home/jkagent/.cache/pip/wheels/76/8b/a9/fe23bb819b710aedd68789c2c0edad998f97d4d3f21741a584
09:11:10 Building wheel for futures-then (setup.py): started
09:11:10 Building wheel for futures-then (setup.py): finished with status 'done'
09:11:10 Created wheel for futures-then: filename=futures_then-0.1.1-py3-none-any.whl size=3644 sha256=7a91593c59f54ae86d89a54bff202d4130f96a54cb8561e790a7d0e57c6756ae
09:11:10 Stored in directory: /home/jkagent/.cache/pip/wheels/6d/a2/e5/d68f808ac4d624e28e0856e004a3092987a7adedd61a901c81
09:11:10 Building wheel for langdetect (setup.py): started
09:11:11 Building wheel for langdetect (setup.py): finished with status 'done'
09:11:11 Created wheel for langdetect: filename=langdetect-1.0.9-py3-none-any.whl size=993222 sha256=6133a0efa46d94abd6e038b9ea949881648885fb168ae0d08bcea8c6d0145358
09:11:11 Stored in directory: /home/jkagent/.cache/pip/wheels/2a/b9/fd/df0c29965aef4c9a549f0e60c5a82a753cc41ac4711cba8872
09:11:11 Building wheel for painter (setup.py): started
09:11:12 Building wheel for painter (setup.py): finished with status 'done'
09:11:12 Created wheel for painter: filename=painter-0.3.1-py3-none-any.whl size=7078 sha256=1b204b1a645f5bbff9b4a79ecd290a496fb0b55ae9ac9dd97e3a7eada6666df2
09:11:12 Stored in directory: /home/jkagent/.cache/pip/wheels/90/1c/11/f0b2176bc83665853e2990a78b741b5b38ae3ef76b719bd176
09:11:12 Successfully built splunk-appinspect futures-then langdetect painter
09:11:12 Installing collected packages: soupsieve, importlib-metadata, semver, regex, pyyaml, python-magic, pillow, painter, packaging, markdown, mako, lxml, langdetect, jsoncomment, ipaddress, futures-then, enum34, defusedxml, croniter, click, chardet, beautifulsoup4, splunk-appinspect
09:11:12 WARNING: The script pysemver is installed in '/home/jkagent/.local/bin' which is not on PATH.
09:11:12 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
09:11:13 WARNING: The script strip-color is installed in '/home/jkagent/.local/bin' which is not on PATH.
09:11:13 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
09:11:14 WARNING: The script markdown_py is installed in '/home/jkagent/.local/bin' which is not on PATH.
09:11:14 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
09:11:14 WARNING: The script mako-render is installed in '/home/jkagent/.local/bin' which is not on PATH.
09:11:14 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
09:11:15 WARNING: The script chardetect is installed in '/home/jkagent/.local/bin' which is not on PATH.
09:11:15 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
09:11:16 WARNING: The script splunk-appinspect is installed in '/home/jkagent/.local/bin' which is not on PATH.
09:11:16 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
09:11:17 Successfully installed beautifulsoup4-4.12.2 chardet-3.0.4 click-7.1.2 croniter-1.4.1 defusedxml-0.7.1 enum34-1.1.10 futures-then-0.1.1 importlib-metadata-6.8.0 ipaddress-1.0.23 jsoncomment-0.3.3 langdetect-1.0.9 lxml-4.9.3 mako-1.2.4 markdown-3.5 packaging-21.3 painter-0.3.1 pillow-9.5.0 python-magic-0.4.24 pyyaml-6.0.1 regex-2022.1.18 semver-3.0.2 soupsieve-2.5 splunk-appinspect-2.38.0
 
0 Karma
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...