Azure / Azure/azure-cli-dev-tools

Profile fails in silly way

Đang mở
#271 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@kairu-ms đang làm issue này rồi.

Từ ngày 13/1/2021.

Ngôn ngữ chính
Python
Star
91
Fork
134
Merge trung bình
2 giờ 51 phút
Pull request đã merge (30 ngày)
1

Mô tả

When I run azdev test I get
```
File "/home/pmiller/azure-cli-extensions/penv/lib/python3.8/site-packages/azdev/operations/testtool/__init__.py", line 329, in _get_test_index
test_index = _discover_tests(profile)
File "/home/pmiller/azure-cli-extensions/penv/lib/python3.8/site-packages/azdev/operations/testtool/__init__.py", line 200, in _discover_tests
profile_split = profile.split('-')
TypeError: a bytes-like object is required, not 'str'
```
This seems to be because of
def current_profile():
return cmd('az cloud show --query profile -otsv', show_stderr=False).result

When I run az cloud show --query profile -otsv

I get
``
File "/home/pmiller/azure-cli-extensions/penv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 777, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'azure-cli==2.14.0' distribution was not found and is required by the application
``
This is all in a fairly new/clean venv.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.