okorach / sonar-tools

Additional command line based tools to help in SonarQube administration tasks
GNU Lesser General Public License v3.0
47 stars 17 forks source link

Running sonar-audit: TypeError: sequence item 0: expected str instance, int found #1386

Closed kad-meedel closed 8 hours ago

kad-meedel commented 6 days ago

I get errors running sonar-audit within a wsl2 environment.

2024-10-07 16:49:57,752 | sonar-audit | INFO | MainThread | User 'admin' default password has been changed ( last good message ) Traceback (most recent call last): File "/home/xxxxxxx/.local/bin/sonar-audit", line 8, in sys.exit(main()) File "/home/xxxxxxx/.local/lib/python3.10/site-packages/cli/audit.py", line 167, in main problems = _audit_sq(sq, settings, what_to_audit=util.check_what(kwargs[options.WHAT], _ALL_AUDITABLE, "audited"), key_list=key_list) File "/home/xxxxxxx/.local/lib/python3.10/site-packages/cli/audit.py", line 86, in _audit_sq problems += sq.audit(audit_settings=settings) File "/home/xxxxxxx/.local/lib/python3.10/site-packages/sonar/platform.py", line 516, in audit

Running on WSL2 with sonarqube 10.5.1 Developer Edition Python3 version 3.10.12

okorach commented 4 days ago

Hi @kad-meedel ,

Thanks for reporting this. Can you tell me which version of sonar-tools you use ?

Olivier

kad-meedel commented 3 days ago

Hi Olivier,

Thanks for your reply. I am using the latest! sonar-tools version 3.4.1

Bert

okorach commented 9 hours ago

Thanks Bert,

Problem understood. I will make a fix soon.

okorach commented 6 hours ago

Hi @kad-meedel , Problem fixed in version 3.4.2 that I just released Thank you again for reporting the problem