-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
It's running python3 -m pip show --version splunktaucclib and throwing exit code 1, probably because running it that way has nothing to do with the place it's installing the packages. (which is ./output/app/lib). This'd be another place it'd be good to see better error messages as the exit code 1 could mean a variety of things. (similar to #1600)
Using pip to check the installation status is an inherently flawed way of doing it in this context either way, as the environment with ucc-gen doesn't necessarily have the packages that are going to be installed into the app.
INFO: Executing: pip install -r "package/lib/requirements.txt" --target "_<snip>/output/app/lib_" --no-compile --prefer-binary --ignore-installed
INFO: Executing: python3 -m pip show --version splunktaucclib
ERROR: Command (python3 -m pip show --version splunktaucclib) returned 1 status code
ERROR: This add-on has an UI, so the splunktaucclib is required but not found in package/lib/requirements.txt. Please add it there and make sure it is at least version 6.6.0.requirements.txt
requests
splunk-sdk
splunktaucclib
outputs dir
➜ ls output/app/lib
PySocks-1.7.1.dist-info defusedxml-0.7.1.dist-info requests sortedcontainers-2.4.0.dist-info
bin deprecation-2.1.0.dist-info requests-2.32.3.dist-info splunk_sdk-2.1.0.dist-info
certifi deprecation.py socks.py splunklib
certifi-2025.1.31.dist-info idna sockshandler.py splunktaucclib
charset_normalizer idna-3.10.dist-info solnlib splunktaucclib-8.0.0.dist-info
charset_normalizer-3.4.1.dist-info packaging solnlib-6.2.0.dist-info urllib3
defusedxml packaging-24.2.dist-info sortedcontainers urllib3-1.26.20.dist-infonote that the required packages are present where they should be.
What UCC version are you using?
5.59.0
Additional System Info
python 3.9.6
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working