Skip to content

Instantly share code, notes, and snippets.

@juampynr
Last active May 29, 2020 12:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juampynr/6578111 to your computer and use it in GitHub Desktop.
Save juampynr/6578111 to your computer and use it in GitHub Desktop.
Blink SIP client installation on Ubuntu 13 (saucy) and 14 (trusty)
  1. Install python with sudo apt-get install python.

  2. Download Blink sources from http://download.ag-projects.com/BlinkQt

  3. Extract contents and open the terminal.

  4. Change directory into the Blink folder and run sudo python setup.py install

  5. Install the following Python libraries:

sudo apt-get install python-sipsimple python-gnutls python-eventlib python-application
  1. From the command line, open Blink by typing blink.

Here are the steps that worked for me on Ubuntu 14.10

mkdir $home/software
cd $home/software
darcs get http://devel.ag-projects.com/repositories/blink-qt
cd blink-qt
sudo apt-get install cython
sudo python setup.py install
@pjnovas
Copy link

pjnovas commented Mar 10, 2014

Hey!, thanks for the info, I had run into a little thing that maybe would help someone else.

Before point 5

I had to add the keys for AG-Projects to have python-sipsimple python-eventlib
So I followed this guide:
http://projects.ag-projects.com/projects/documentation/wiki/Repositories

wget http://download.ag-projects.com/agp-debian-gpg.key 
sudo apt-key add agp-debian-gpg.key

Added lines into /etc/apt/sources.list (Mine is Quantal, check yours at the link)

deb http://ag-projects.com/ubuntu quantal main
deb-src http://ag-projects.com/ubuntu quantal main

sudo apt-get update

and then point 5 with also package python-cjson

sudo apt-get install python-sipsimple python-gnutls python-eventlib python-application python-cjson

Thanks again!

@charlesbedrosian
Copy link

By adding the sources to /etc/apt/sources.list (per http://projects.ag-projects.com/projects/documentation/wiki/Repositories) you can then simply install by means of the package manager using the package name blink

@juanolalla
Copy link

When executing sudo python setup.py install I got this errors:

from Cython.Build import cythonize ImportError: No module named Cython.Build

I solved it doing:
sudo apt-get install python-pip
sudo pip install Cython

But now back to sudo python setup.py install I get this error:

fatal error: rfb/rfbclient.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1

I solved it doing:
sudo apt-get install libvncserver-dev

But now, when typing blink I get this:

using set_wakeup_fd
Traceback (most recent call last):
  File "/usr/local/bin/blink", line 29, in 
    from blink import Blink
  File "/usr/local/lib/python2.7/dist-packages/blink/__init__.py", line 47, in 
    from blink.chatwindow import ChatWindow
  File "/usr/local/lib/python2.7/dist-packages/blink/chatwindow.py", line 37, in 
    from blink.configuration.settings import BlinkSettings
  File "/usr/local/lib/python2.7/dist-packages/blink/configuration/settings.py", line 12, in 
    from sipsimple.configuration.datatypes import AudioCodecList, NonNegativeInteger, PositiveInteger, Path, SampleRate, VideoCodecList
ImportError: cannot import name VideoCodecList

@davilima6
Copy link

This is super hard to install and get dependencies right. Blink people should have a look at PIP's requirements.txt, zc.buildout or at least declaring everything at setup.py

ATM I can't get past this error:

(blink)davilima@davi-dell:~/Projetos/blink$ ./bin/blink 
Traceback (most recent call last):
  File "./bin/blink", line 29, in <module>
    from blink import Blink
  File "/home/davilima/Projetos/blink/blink/__init__.py", line 47, in <module>
    from blink.chatwindow import ChatWindow
  File "/home/davilima/Projetos/blink/blink/chatwindow.py", line 39, in <module>
    from blink.contacts import URIUtils
  File "/home/davilima/Projetos/blink/blink/contacts.py", line 47, in <module>
    from blink.sessions import SessionManager, StreamDescription
  File "/home/davilima/Projetos/blink/blink/sessions.py", line 47, in <module>
    from blink.screensharing import ScreensharingWindow, VNCClient, ServerDefault
  File "/home/davilima/Projetos/blink/blink/screensharing/__init__.py", line 6, in <module>
    from blink.screensharing.vncclient import VNCClient, RFBSettings, ServerDefault, TrueColor, HighColor, LowColor
  File "/home/davilima/Projetos/blink/blink/screensharing/vncclient.py", line 15, in <module>
    from blink.screensharing._rfb  import RFBClient, RFBClientError
ImportError: No module named _rfb

But I also have been stuck here:

(blink)davilima@davi-dell:~/Projetos/blink-qt$ ./bin/blink 
Traceback (most recent call last):
  File "./bin/blink", line 29, in <module>
    from blink import Blink
  File "/home/davilima/Projetos/blink-qt/blink/__init__.py", line 34, in <module>
    from sipsimple.account import Account, AccountManager, BonjourAccount
  File "/usr/lib/python2.7/dist-packages/sipsimple/account/__init__.py", line 20, in <module>
    from eventlib import coros, proc
  File "/home/davilima/.pythonenvs/blink/local/lib/python2.7/site-packages/eventlib/proc.py", line 131, in <module>
    class ProcExit(api.GreenletExit):
AttributeError: 'module' object has no attribute 'GreenletExit'

Also I worked arounded several other errors with some help from: http://www.linuxforums.org/forum/red-hat-fedora-linux/180226-blink-sip-client-fedora.html

@lnxjenn
Copy link

lnxjenn commented Oct 5, 2016

I have used the suggestions here and gone through the INSTALL doc and fixed a couple of the other errors I was getting. But, I am still getting this error:

root@xxx-pc0219:/usr/src/blink-2.0.0/blink-qt# blink
Traceback (most recent call last):
File "/usr/local/bin/blink", line 40, in
from blink import Blink
File "/usr/local/lib/python2.7/dist-packages/blink/init.py", line 5, in
from PyQt5.QtCore import Qt, QEvent
ImportError: No module named PyQt5.QtCore
root@xxx-pc0219:/usr/src/blink-2.0.0/blink-qt# ./run
Traceback (most recent call last):
File "bin/blink", line 40, in
from blink import Blink
File "/usr/src/blink-2.0.0/blink-qt/blink/init.py", line 5, in
from PyQt5.QtCore import Qt, QEvent
ImportError: No module named PyQt5.QtCore

I have gone through all the suggested and possible python libraries that could help this, but I still get this error. Any ideas on this particular error?

Copy link

ghost commented Feb 2, 2017

On archlinux, to get pyqt5 working in a virtualenv:
sudo pacman -S pyqt5-common python2-pyqt5 # archlinux
cp -R /usr/lib/python2.7/site-packages/PyQt5 ./lib/python2.7/site-packages/
cp /usr/lib/python2.7/site-packages/sip.so ./lib/python2.7/site-packages/

@antonga23
Copy link

When executing sudo python setup.py install I got this errors:

from Cython.Build import cythonize
ImportError: No module named Cython.Build

I solved it doing:
sudo apt-get install python-pip
sudo pip install Cython

But now back to sudo python setup.py install I get this error:

fatal error: rfb/rfbclient.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

I solved it doing:
sudo apt-get install libvncserver-dev

But now, when typing blink I get this:

using set_wakeup_fd
Traceback (most recent call last):
File "/usr/local/bin/blink", line 29, in
from blink import Blink
File "/usr/local/lib/python2.7/dist-packages/blink/init.py", line 47, in
from blink.chatwindow import ChatWindow
File "/usr/local/lib/python2.7/dist-packages/blink/chatwindow.py", line 37, in
from blink.configuration.settings import BlinkSettings
File "/usr/local/lib/python2.7/dist-packages/blink/configuration/settings.py", line 12, in
from sipsimple.configuration.datatypes import AudioCodecList, NonNegativeInteger, PositiveInteger, Path, SampleRate, VideoCodecList
ImportError: cannot import name VideoCodecList

fatal error: rfb/rfbclient.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1

Thanks. Had the same problem, now fixed. Strange because after sudo apt-get install libvncserver-dev everything works for me. I've made my requiremnts.txt available for anyone who wants python package requirements

but I totally agree with davilima6. "This is super hard to install and get dependencies right. Blink people should have a look at PIP's requirements.txt". It's an absolute s***t show.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment