Coder Social home page Coder Social logo

archey's People

Contributors

alenbasic avatar djmelik avatar e7p avatar fuhunter avatar omp avatar tomru avatar wting avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

archey's Issues

Encountered a bug

Traceback (most recent call last):
  File "/usr/bin/archey", line 261, in <module>
    out.append(classes[x]())
  File "/usr/bin/archey", line 215, in __init__
    used = int(ram[2]) - int(ram[5]) - int(ram[6])
IndexError: list index out of range

Used the version currently available in the AUR.

Error with some hard drive disk usages

Traceback (most recent call last):
File "/usr/bin/archey", line 305, in
func()
File "/usr/bin/archey", line 289, in disk_display
usedpercent = float(re.sub("[A-Z]", "", used)) / float(re.sub("[A-Z]", "", size)) * 100
ValueError: invalid literal for float(): 1,6

There is a problem if a hard drive with some special characters in its name is plugged in.
Thank you !

EDIT: It's not name-related, but same issue about the disk usage parsing (sorry for the duplicate then).

error in gentoo

In gentoo i get

archey                                                 1s 
Traceback (most recent call last):
  File "/usr/bin/archey", line 118, in <module>
    DetectDistro = Popen(['lsb_release', '-i'], stdout=PIPE).communicate()[0].split(':')[1].lstrip('\t').rstrip('\n')
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

eth0.me no longer available

Archey now gives the following error when run:

curl: (7) Failed to connect to eth0.me port 80: Connection refused

As a consequence, no IP address is shown.

It seems that eth0.me is no longer available.

One line missing with Crunchbang Distro

Traceback (most recent call last):
File "/usr/bin/archey", line 304, in
func()
File "/usr/bin/archey", line 184, in distro_display
output('OS', distro)
UnboundLocalError: local variable 'distro' referenced before assignment

We have to add distro = 'CrunchBang %s %s' % (release, arch) manually at line 180.

Error on Ubuntu 12.04

Package version: 0.2.8
Operating System: Ubuntu 12.04 LTS
Python version: 2.7.3
Error message (when launching "archey" command):

Traceback (most recent call last):
File "/usr/bin/archey", line 304, in
func()
File "/usr/bin/archey", line 288, in disk_display
usedpercent = float(re.sub("[A-Z]", "", used)) / float(re.sub("[A-Z]", "", size)) * 100
ValueError: invalid literal for float(): 4,9

What's the $EDITOR mean?

When run archey,I saw $EDITOR: None
but even I set EDITOR=vim in bashrc,archey still show $EDITOR: None ,it's odd!

Wrong RAM returned fedora 21

It's not possible to use a -32.5GB ram on a system that only has 24GB.

Fedora 21 version installed from rpm:

       :/------------://        OS: Fedora 21 x86_64
    :------------------://      Hostname: thebes
  :-----------/shhdhyo/-://     Kernel: 3.19.1-201.fc21.x86_64
/-----------omMMMNNNMMMd/-:/    Uptime: 1:39

:-----------sMMMdo:/ -:/ Packages: 1573
:-----------:MMMd------- --:/ RAM: -32573 MB / 24040 MB
/-----------:MMMy------- ---/ CPU: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
:------ --/+MMMh/-- ---: Shell: Bash
:--- oNMMMMMMMMMNho -----: Terminal: Xterm-256color
:-- +shhhMMMmhhy++ ------: Root FS: 4.9G / 50G (ext4)
:- -----:MMMy--------------/ Home FS: 307G / 1.6T (ext4)
:- ------/MMMy-------------: Boot FS: 97M / 477M (ext4)
:- ----/hMMM+------------: 34A401E6A401Ac04 FS: 381G / 1.4T (fuseblk)

[scott@thebes Downloads]$ free -m
total used free shared buff/cache available
Mem: 24040 2000 7495 455 14544 21277
Swap: 12031 0 12031

your script calculates: used = int(ram[2]) - int(ram[5]) - int(ram[6])

so 2000 - 14544 - 21277 ??

How about this:
used = int(ram[2]) + int([4])

mine comes close to matching top and htop.

thanks.

RAM_display issue

RAM_DISPLAY ISSUE on ubuntu 16.04.
Output from the terminal:

Traceback (most recent call last):
File "/usr/bin/archey", line 304, in
func()
File "/usr/bin/archey", line 140, in ram_display
used = int(ram[2]) - int(ram[5]) - int(ram[6])
IndexError: list index out of range

Lintian check results for archey-0.2.8.deb

E: archey: wrong-file-owner-uid-or-gid usr/ 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/bin/ 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/bin/archey 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/share/ 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/share/archey/ 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/share/archey/CHANGELOG 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/share/archey/COPYING 1000/1000

Is that an error, because without pdb archey does nothing.

Traceback (most recent call last):
File "/usr/lib/python2.7/pdb.py", line 1314, in main
pdb._runscript(mainpyfile)
File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript
self.run(statement)
File "/usr/lib/python2.7/bdb.py", line 400, in run
exec cmd in globals, locals
File "", line 1, in
File "./archey", line 97, in
'--no-headers')), encoding='utf8').rstrip('\n').split('\n')
TypeError: str() takes at most 1 argument (2 given)
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program

/home/aboettger/src/archey/archey(97)()
-> '--no-headers')), encoding='utf8').rstrip('\n').split('\n')

Missing support for simfs/tempfs. Poor VPS support.

I created a fix and a pull request here: https://github.com/djmelik/archey/pull/38

How to fix since my branch hasn't been merged yet:
If you get the following error when trying to run Archey (especially if you are doing it in a VPS):

Traceback (most recent call last): File "/usr/bin/archey", line 304, in <module> func() File "/usr/bin/archey", line 285, in disk_display total = p1.splitlines()[-1] IndexError: list index out of range

Then chances are it didn't worse because of missing support for SimFs/TempFs. To fix this just edit this line in /usr/bin/archey

p1 = Popen(['df', '-Tlh', '--total', '-t', 'ext4', '-t', 'ext3', '-t', 'ext2', '-t', 'reiserfs', '-t', 'jfs', '-t', 'ntfs', '-t', 'fat32', '-t', 'btrfs', '-t', 'fuseblk', '-t', 'xfs'], stdout=PIPE).communicate()[0].decode("Utf-8")

to read

p1 = Popen(['df', '-Tlh', '--total', '-t', 'ext4', '-t', 'ext3', '-t', 'ext2', '-t', 'reiserfs', '-t', 'jfs', '-t', 'ntfs', '-t', 'fat32', '-t', 'btrfs', '-t', 'fuseblk', '-t', 'simfs', '-t', 'tempfs'], stdout=PIPE).communicate()[0]

Save and re run the archey command. If it works congrats you fixed Archey to work for you! If it still doesn't work please reply with the error outputted.

RAM issue

File "/usr/bin/archey", line 338, in
func()
File "/usr/bin/archey", line 149, in ram_display
used = int(ram[2])
IndexError: list index out of range

Got this error
looked at the code at this line and canΒ΄t find any issues.
I am new at Arch so make your answers as easy as possible xD

Fork

Hello guys, since this has been inactive project for quite a while I have made a fork of this repo. I updated archey2 in AUR to point to my repo. I am planning to keep maintaining this project. For any issues or pull requests, go to my fork. Cheers

Forked repo link: XdaemonX/archey

Error in Arch Linux while taking screenshot

Screenshotting in
5...4...3...2...1...Say Cheese!
Traceback (most recent call last):
  File "/usr/bin/archey3", line 860, in <module>
    main()
  File "/usr/bin/archey3", line 857, in main
    archey.run(options.screenshot)
  File "/usr/bin/archey3", line 722, in run
    screenshot(self.state)
  File "/usr/bin/archey3", line 628, in screenshot
    ctime().replace(' ','_')).split(" "))
  File "/usr/lib/python3.3/subprocess.py", line 542, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.3/subprocess.py", line 523, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.3/subprocess.py", line 824, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.3/subprocess.py", line 1448, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'import'

Wrong Free RAM value after procps-ng update

Hello,
It seems in free from procps-ng 3.3.10 buff and cache are combined together. See attached logs:

% free -V                                                                                
free from procps-ng 3.3.10
% free -m
              total        used        free      shared  buff/cache   available
Mem:           3957         551        3041          17         364        3193
Swap:          1023           0        1023

I suggest to change line 215 form:

used = int(ram[2]) - int(ram[5]) - int(ram[6])

to:

used = int(ram[2]) - int(ram[4]) - int(ram[5])

Or handle it a bit smarter, depending on type of free result.

EDIT:
It seems usage of free -wm was better approach :) - proper pull request is already merged. Closing this issue. Thanks!

BR

Input for upcoming version

Here's some input for the upcoming new version.

  • Main/Hardware/Ports: Stuff a buyer would want to know about the system. (Or a vain techie would want to boast.) Can basically be copy-pasted into classifieds. See also "About This Mac".
  • Battery: Expected battery time starting at 100%. This is vital as it's the only part of the machine that deteriorates with time and therefore affects the value of the system.
  • Space: Total free gigabytes of all connected disks. Trash: Total gigabytes in all trash folders.
  • Speed: Should be checked once per external IP (using speedtest) and cached in a text file.
  • Security: Should include all vital settings that affect system security.

Look into how this can be compacted / neatly formatted into columns to save space.

Tip: External IP can be efficiently checked with dig +short myip.opendns.com @resolver1.opendns.com.

$ archey -h
  -p --ports      Show ports
  -d --devices    Show devices
  -n --network    Show network
  -s --security   Show security

Model: Mac mini (Mid 2011)
System: High Sierra 10.13.5
Serial: 1234567890
Battery: 10 hours

HARDWARE
CPU: i5 2.30GHz
GPU: Intel 3000
RAM: 8 GB
SSD: 500 GB
Display: 1440x900

PORTS
USB 2.0 x 3
FireWire 400 x 2
Mini DisplayPort
Ethernet
SD reader
Microphone
Headphone

DEVICES
Apple Wireless Keyboard (53% battery)
Apple Wireless Trackpad (26% battery)
Apple Cinema Display 30” (2560x1440)
Apogee Duet One

NETWORK
User: user@host
Local: 10.0.1.5
Public: 12.34.56.78
Speed: 50/10 Mbit/s
Space: 275 GB
Trash: 30 GB
Uptime: 10 days

SECURITY
SSH ✘
Siri ✘
Location ✘
Firewall βœ”
FileVault βœ”
Password βœ”
Wi-Fi βœ”
Bluetooth ✘
Airdrop ✘
Suggestions ✘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.