2014/1/12 Maykel Franco <maykeldebian@gmail.com>:
2014/1/12 Kacper Żuk <kacper.b.zuk@gmail.com>:
2014/1/12 Maykel Franco <maykeldebian@gmail.com>:
2014/1/12 Kacper Żuk <kacper.b.zuk@gmail.com>:
2014/1/12 Maykel Franco <maykeldebian@gmail.com>:
2014/1/11 BlissSam <m13253@hotmail.com>:> Thanks for your responsed. I try install blink with python 2:
[root@arch-maykel blink-0.6.0]# python2 setup.py install running install running build running build_py running build_scripts running install_lib running install_scripts changing mode of /usr/bin/blink to 755 running install_data running install_egg_info Removing /usr/lib/python2.7/site-packages/blink-0.6.0-py2.7.egg-info Writing /usr/lib/python2.7/site-packages/blink-0.6.0-py2.7.egg-info
And launch with python2:
[root@arch-maykel blink-0.6.0]# python2 blink /usr/bin/python2: can't find '__main__' module in 'blink'
Am I doing something wrong?
Try python2 /usr/bin/blink instead of python2 blink.
I try:
[maykel@arch-maykel ~]$ python2 /usr/bin/blink Traceback (most recent call last): File "/usr/bin/blink", line 24, in <module> from blink import Blink File "/usr/lib/python2.7/site-packages/blink/__init__.py", line 27, in <module> from eventlib import api ImportError: No module named eventlib
You have to install eventlib: https://pypi.python.org/pypi/eventlib (remember to use python2 and not python).
[root@arch-maykel maykel]# LC_ALL=C yaourt -S python2-eventlib --noconfirm
==> Downloading python2-eventlib PKGBUILD from AUR... x PKGBUILD python2-eventlib 0.1.1-1 (Mon Dec 3 02:59:29 CET 2012) ( Unsupported package: Potentially dangerous ! ) ==> python2-eventlib dependencies: - python2-greenlet (already installed) - python2-pyopenssl (already installed)
==> Continue building python2-eventlib ? [Y/n] ==> ------------------------------------------ ==> ==> Building and installing package ==> WARNING: Building package as root is dangerous. Please run yaourt as a non-privileged user. ==> Making package: python2-eventlib 0.1.1-1 (Sun Jan 12 15:08:51 CET 2014) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Downloading python-eventlib-0.1.1.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 Not Found ==> ERROR: Failure while downloading python-eventlib-0.1.1.tar.gz Aborting... ==> ERROR: Makepkg was unable to build python2-eventlib. ==> Restart building python2-eventlib ? [y/N] ==> ----------------------------------------- ==>
This PKGBUILD is very old, install eventlib the same way you've installed blink.