Skip to content

Commit

Permalink
add psutil as dependency, bump v0.9.6
Browse files Browse the repository at this point in the history
#7 added the need for psutil, it seems that it is not installed by default on many systems
  • Loading branch information
Nanoseb committed Apr 19, 2016
1 parent a84e1b5 commit 1509f30
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ A ncurses Telegram client developed in Python with the urwid library.
* [Telegram-cli](https://github.com/vysheng/tg)
* [urwid](http://urwid.org)
* [pytg](https://github.com/luckydonald/pytg)
* python-psutil
* libnotify (optional)
* caca-utils (optional)

Expand All @@ -33,7 +34,7 @@ $ pacaur -y nctelegram-git
Install dependencies:

```
$ sudo dnf install telegram-cli python-urwid
$ sudo dnf install telegram-cli python3-urwid python3-psutil
```

Install ncTelegram through pip:
Expand All @@ -54,7 +55,7 @@ To install telegram-cli just follow its [readme](https://github.com/vysheng/tg).
Install urwid:

```
$ sudo apt-get install python3-urwid
$ sudo apt-get install python3-urwid python3-psutil
```

Install ncTelegram through pip:
Expand Down
8 changes: 3 additions & 5 deletions nctelegram
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@
import os
import sys
import subprocess
import psutil
import os.path
import configparser

import ncTelegram
import psutil



# Check if telegram-cli is already running on the same port
list_connection = [ i[4] for i in psutil.net_connections() ]
for connection in list_connection:
if connection and connection[1] == 4458:
for connection in psutil.net_connections():
if connection[4] and connection[4][1] == 4458:
print('telegram-cli is already running, kill it before starting ncTelegram')
sys.exit(1)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from distutils.core import setup

setup(name='ncTelegram',
version='0.9.5',
version='0.9.6',
description='A curse Telegram client',
license='GPLv3',
author='Sébastien Lemaire',
Expand Down

0 comments on commit 1509f30

Please sign in to comment.