OpenSignals/instalace/Linux 2013 alpha

OpenSignals/instalace/Linux 2013 alpha

unzip Linux_Alpha.zip
cat README.rtf
mkdir OpenSignals4Linux
cd OpenSignals4Linux
unzip ../OpenSignals4Linux.zip
setup.sh

Chyby:

command 'i686-linux-gnu-gcc' failed with exit status 1

dogůglím, že potřebuji

sudo apt-get install python-dev
Následující extra balíky budou instalovány:
   libpython-dev libpython2.7-dev python2.7-dev
Následující NOVÉ balíky budou nainstalovány:
   libpython-dev libpython2.7-dev python-dev python2.7-dev
0 aktualizováno, 4 nově instalováno, 0 k odstranění a 104 neaktualizováno.
Potřebuji stáhnout 22,1 MB archivů.
Po této operaci bude na disku použito dalších 31,1 MB.
Chcete pokračovat? [Y/n] y
VAROVÁNÍ: Následující balíky nemohou být autentizovány!
   libpython2.7-dev python2.7-dev
Instalovat tyto balíky bez ověření? [y/N] y
Searching for pybluez
Reading https://pypi.python.org/simple/pybluez/
Best match: PyBluez 0.22
Downloading https://files.pythonhosted.org/packages/c1/98/3149481d508bee174335be6725880f00d297afebe75c15e917af8f6fe169/PyBluez-0.22.zip#sha256=4ce006716a54d9d18e8186a3f1c8b12a8e6befecffe8fd5828a291fb694ce49d
Processing PyBluez-0.22.zip
Writing /tmp/easy_install-93cwx1/PyBluez-0.22/setup.cfg
Running PyBluez-0.22/setup.py -q bdist_egg --dist-dir /tmp/easy_install-93cwx1/PyBluez-0.22/egg-dist-tmp-JoT394
warning: no files found matching '*.h' under directory 'osx'
warning: no previously-included files matching '*.pyc' found under directory '*'
warning: no previously-included files matching '*.o' found under directory '*'
warning: no previously-included files matching '*.opp' found under directory '*'
In file included from bluez/btmodule.c:20:0:
bluez/btmodule.h:5:33: fatal error: bluetooth/bluetooth.h: Adresář nebo soubor neexistuje
 #include <bluetooth/bluetooth.h>
                                 ^
compilation terminated.
error: Setup script exited with error: command 'i686-linux-gnu-gcc' failed with exit status 1
bluez/btmodule.h:5:33: fatal error: bluetooth/bluetooth.h: No such file or directory
   #include <bluetooth/bluetooth.h>
                                    ^ compilation terminated. 

You need to install libbluetooth-dev package for compiling your code

sudo apt-get install libbluetooth-dev

That should install the bluetooth header files.

  • Vypadá, že to konečně proběhlo bez chyby.

Teoreticky by se to mělo spustit z aplikačního menu. Najdu to v kategorii Ostatní: OpenSignals Ale nic to nedělá.

Dohledám, že se to spouští skriptem:

OpenSignals4Linux/OpenSignals/go.sh

který v podstatě spustí:

python ./Python/OpenSignals.py
/usr/local/lib/python2.7/dist-packages/setuptools-2.1-py2.7.egg/pkg_resources.py:975: UserWarning: /home/petr/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
Traceback (most recent call last):
  File "./Python/OpenSignals.py", line 31, in <module>
    from txws import WebSocketFactory
  File "/Data60G/mir/inst/OpenSignals/OpenSignals4Linux/OpenSignals/Python/txws.py", line 33, in <module>
    from twisted.internet.interfaces import ISSLTransport
  File "/usr/local/lib/python2.7/dist-packages/Twisted-18.4.0rc1-py2.7-linux-i686.egg/twisted/__init__.py", line 11, in <module>
    from twisted._version import __version__ as version
  File "/usr/local/lib/python2.7/dist-packages/Twisted-18.4.0rc1-py2.7-linux-i686.egg/twisted/_version.py", line 8, in <module>
    from incremental import Version
ImportError: No module named incremental
  • Takže zkusím:
sudo pip install incremental
  • Podobným způsobem pokračuji:
sudo pip install constantly

Konečně to, zdá se, běží:

Listening at port 9002 of 127.0.0.1
sh: 1: google-chrome: not found