04/23/2020, 9:17 AM
i am trying to package azure cli as pex so when i do:
Copy code
pip install azure-cli
python -m azure.cli
everything works as expected. but when i try this
Copy code
pex azure-cli -m azure.cli -o az
i get this error
Copy code
Traceback (most recent call last):
  File "/az/.bootstrap/pex/", line 396, in execute
  File "/az/.bootstrap/pex/", line 328, in _wrap_coverage
  File "/az/.bootstrap/pex/", line 359, in _wrap_profiling
  File "/az/.bootstrap/pex/", line 447, in _execute
  File "/az/.bootstrap/pex/", line 544, in execute_entry
  File "/az/.bootstrap/pex/", line 551, in execute_module
  File "/usr/local/lib/python3.7/", line 201, in run_module
    mod_name, mod_spec, code = _get_module_details(mod_name)
  File "/usr/local/lib/python3.7/", line 109, in _get_module_details
  File "/root/.pex/installed_wheels/70125b7d832d1ca0e01f7578de3d97524756eb0e/azure_cli_core-2.4.0-py3-none-any.whl/azure/", line 5, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
how do i debug and fix this?