Cannot run the Data Center App Performance Toolkit

Hi,

I try to install and run the Data Center App Performance Toolkit in my local machine flowing this Guide: https://developer.atlassian.com/platform/marketplace/dc-apps-performance-toolkit-user-guide-jira/

Flowing the guide, I config my project, but it got some error:

  • Install python3, pip, java8
    19

  • Create new virtual env with python3:

  • When Install dependencies, I got the error.

pip install -r requirements.txt
Building wheel for pandas (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/xx/x/xxx/xxx/dc-app-performance-toolkit/app/venv/bin/python /Users/xx/x/xxx/xxx/dc-app-performance-toolkit/app/venv/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/sr/31_phmy925n77wbd5hc1b9f170c5_t/T/tmp928ed9u_
       cwd: /private/var/folders/sr/31_phmy925n77wbd5hc1b9f170c5_t/T/pip-install-r6nqf4ro/pandas
  Complete output (1351 lines):
running bdist_wheel
  running build
  running build_py
...........
3 errors generated.
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for pandas
Failed to build pandas
ERROR: Could not build wheels for pandas which use PEP 517 and cannot be installed directly

==> I workaround try to install manually → flowing the requirement.txt file


pip install matplotlib==3.3.2
pip install  pandas          # Cannot using the pandas==1.1.2 because got the error
pip install  importlib-metadata==2.0.0
pip install  zipp==2.2.0 
pip install  bzt==1.15.0
pip install locust==1.2.3

After install we have

==> Run bzt jira.yml. got this error

 > bzt jira.yml
15:28:16 INFO: Taurus CLI Tool v1.15.0
15:28:16 INFO: Starting with configs: ['jira.yml']
15:28:16 INFO: Configuring...
15:28:16 INFO: Artifacts dir: /Users/xxx/xx/xx/dc-app-performance-toolkit/app/results/jira/2020-11-04_15-28-16
15:28:16 INFO: Preparing...
python3.7(6951,0x109f7adc0) malloc: can't allocate region
*** mach_vm_map(size=18446744066392039424) failed (error code=3)
python3.7(6951,0x109f7adc0) malloc: *** set a breakpoint in malloc_error_break to debug
init_dgelsd failed init
15:28:16 ERROR: RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned

  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/cli.py", line 259, in perform
    self.engine.prepare()
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/engine/engine.py", line 214, in prepare
    self.__prepare_aggregator()
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/engine/engine.py", line 696, in __prepare_aggregator
    self.aggregator = self.instantiate_module(cls)
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/engine/engine.py", line 483, in instantiate_module
    classobj = self.__load_module(alias)
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/engine/engine.py", line 468, in __load_module
    self.modules[alias] = load_class(clsname)
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/utils.py", line 981, in load_class
    module = __import__(module_name)
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/modules/__init__.py", line 23, in <module>
    from bzt.modules.aggregator import ConsolidatingAggregator
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/modules/aggregator.py", line 27, in <module>
    from hdrpy import HdrHistogram, RecordedIterator
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/hdrpy/__init__.py", line 29, in <module>
    import numpy
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/numpy/__init__.py", line 286, in <module>
    raise RuntimeError(msg)
15:28:16 INFO: Post-processing...
15:28:16 INFO: Artifacts dir: /Users/tdang/Workspace/Jira/plugins/dc-app-performance-toolkit/app/results/jira/2020-11-04_15-28-16
15:28:16 WARNING: Done performing with code: 1
15:28:17 WARNING: There is newer version of Taurus 1.15.1 available, consider upgrading. What's new: http://gettaurus.org/docs/Changelog/

I am using macOs ver 10.15.3

Do you have anyidea about this?

Hi @tien.dang

i had the same problem with python 3.9 on macOS, in my case i installed python 3.8 and used python3.8 and pip3.8 commands

Cheers
Adam Labus

Thank you @adam.labus

I workaround try to install numpy=1.18.0 then it works

Cheers,