klattimer / SystemDashboard

A lightweight python system dashboard written in cherry py delivered over the web.
MIT License
10 stars 2 forks source link

mdstat not found in pip #14

Open impshum opened 5 years ago

impshum commented 5 years ago

Entered...

impshum$ pip3.5 install -r requirements.txt

Got...

Collecting mdstat==1.0.4 (from -r requirements.txt (line 1))
  Could not fetch URL https://pypi.python.org/simple/mdstat/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
  Could not find a version that satisfies the requirement mdstat==1.0.4 (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for mdstat==1.0.4 (from -r requirements.txt (line 1))
klattimer commented 5 years ago

Looks like you have an SSL/TLS certificate issue on your system. You're hitting a SSL/TLS error which looks like an old insecure TLS version is being served to you, do you get this problem with other things? It could indicate a man in the middle attack. Will keep it open out of curiosity until you get it working.

Can't reproduce it... on a mac, or linux box.

Collecting mdstat==1.0.4 (from -r requirements.txt (line 1)) Downloading https://files.pythonhosted.org/packages/61/57/879865d489c7f56d1b1687866f4e9eaecbc7dce7072bcf5bb4877c66c492/mdstat-1.0.4.tar.gz Requirement already satisfied: CherryPy==18.1.1 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 2)) (18.1.1) Requirement already satisfied: psutil==5.6.1 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 3)) (5.6.1) Requirement already satisfied: cheroot>=6.2.4 in ./venv/lib/python3.5/site-packages (from CherryPy==18.1.1->-r requirements.txt (line 2)) (6.5.4) Requirement already satisfied: more-itertools in ./venv/lib/python3.5/site-packages (from CherryPy==18.1.1->-r requirements.txt (line 2)) (7.0.0) Requirement already satisfied: zc.lockfile in ./venv/lib/python3.5/site-packages (from CherryPy==18.1.1->-r requirements.txt (line 2)) (1.4) Requirement already satisfied: portend>=2.1.1 in ./venv/lib/python3.5/site-packages (from CherryPy==18.1.1->-r requirements.txt (line 2)) (2.3) Requirement already satisfied: backports.functools-lru-cache in ./venv/lib/python3.5/site-packages (from cheroot>=6.2.4->CherryPy==18.1.1->-r requirements.txt (line 2)) (1.5) Requirement already satisfied: six>=1.11.0 in ./venv/lib/python3.5/site-packages (from cheroot>=6.2.4->CherryPy==18.1.1->-r requirements.txt (line 2)) (1.12.0) Requirement already satisfied: setuptools in ./venv/lib/python3.5/site-packages (from zc.lockfile->CherryPy==18.1.1->-r requirements.txt (line 2)) (18.2) Requirement already satisfied: tempora>=1.8 in ./venv/lib/python3.5/site-packages (from portend>=2.1.1->CherryPy==18.1.1->-r requirements.txt (line 2)) (1.14) Requirement already satisfied: pytz in ./venv/lib/python3.5/site-packages (from tempora>=1.8->portend>=2.1.1->CherryPy==18.1.1->-r requirements.txt (line 2)) (2018.9) Requirement already satisfied: jaraco.functools>=1.20 in ./venv/lib/python3.5/site-packages (from tempora>=1.8->portend>=2.1.1->CherryPy==18.1.1->-r requirements.txt (line 2)) (2.0) Building wheels for collected packages: mdstat Building wheel for mdstat (setup.py) ... done Stored in directory: /Users/karllattimer/Library/Caches/pip/wheels/af/aa/2d/26995d4f58c7568f22063685fbcda381427069e14883541a46 Successfully built mdstat Installing collected packages: mdstat Successfully installed mdstat-1.0.4

impshum commented 5 years ago

I've not had this problem before no.

klattimer commented 5 years ago

OK, this should be fixed in two parts, firstly mdstat is now an optional requirement of the requirements.txt file. And secondly the UI doesn't crap out if you don't have a raid, or booted with uboot. So works in a pi, and should work on your mac.

Please check and confirm.

impshum commented 5 years ago

I'm not running xcode as I never use it (plus it's a waste of space for me). psutil requires it.

Not going smoothly here like.

klattimer commented 5 years ago

xcode command line utils perhaps?

impshum commented 5 years ago

I seriously need to flash this machine. It's got the bad AIDS or something.

klattimer commented 5 years ago

Try this - https://www.maketecheasier.com/install-command-line-tools-without-xcode/