Azure / Azure/azure-cli-dev-tools

Psutil seems broken?

Open
#269 7 comments 0 reactions 1 assignee Assigned to @haroldrandom View on GitHub
Dominant language
Python
Stars
91
Forks
134
Avg merge
2h 51m
Merged PRs (30d)
1

Description

The 'psutil~=5.7' distribution was not found and is required by azure-cli

So often after using az dev setip I get errors about psutil

```
pmiller@millercloud:~/azure-cli$ azdev setup -c

=======================
| Azure CLI Dev Setup |
=======================

Azure CLI:
/home/pmiller/azure-cli

Installing packages
=====================

Upgrading pip...
Installing `requirements.txt`...
Installing `azure-cli-telemetry`...
Installing `azure-cli-core`...
Installing `azure-cli`...
Installing `azure-cli-testsdk`...
az Installing `requirements.py3.Linux.txt`...
aks nod
Elapsed time: 0 min 14 sec

Finished dev setup!
=====================

pmiller@millercloud:~/azure-cli$ az aks nodepool update --help
Traceback (most recent call last):
File "/home/pmiller/fudge/bin/az", line 4, in
__import__('pkg_resources').require('azure-cli==2.14.2')
File "/home/pmiller/fudge/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3099, in
def _initialize_master_working_set():
File "/home/pmiller/fudge/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3082, in _call_aside
f(*args, **kwargs)
File "/home/pmiller/fudge/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3111, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/home/pmiller/fudge/lib/python3.8/site-packages/pkg_resources/__init__.py", line 573, in _build_master
ws.require(__requires__)
File "/home/pmiller/fudge/lib/python3.8/site-packages/pkg_resources/__init__.py", line 891, in require
needed = self.resolve(parse_requirements(requirements))
File "/home/pmiller/fudge/lib/python3.8/site-packages/pkg_resources/__init__.py", line 777, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'psutil~=5.7' distribution was not found and is required by azure-cli
```
When I try and pip install I get
``
psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory
9 | #include
| ^~~~~~~~~~
```

This is on an ubuntu 20 box with a pretty vanilla python setup and I'm in a venv

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.