alena-bartosh / speaking-eye Goto Github PK
View Code? Open in Web Editor NEW:postal_horn::eyes: Track & analyze your computer activity. Focus on work and don't forget to take breaks
License: MIT License
:postal_horn::eyes: Track & analyze your computer activity. Focus on work and don't forget to take breaks
License: MIT License
Wanted to track my work activity with speaking-eye and found some issues while installing it.
Problem:
After removed pkg-resources
(#1) from requirements.txt
I got next error while building pycairo
dependencies
$ git clone https://github.com/alena-bartosh/speaking-eye.git && \
cd speaking-eye && \
python3 -m venv .env && \
source .env/bin/activate && \
pip install --upgrade pip && \
pip install -r requirements.txt
...
ERROR: Command errored out with exit status 1: /home/tas/Workspace/speaking-eye/.env/bin/python3 /home/tas/Workspace/speaking-eye/.env/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-qk6wrbri/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output.
Solution:
In order to resolve this issue I installed missing system dependency with sudo apt-get install libcairo2-dev
Environment:
$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=19.1
DISTRIB_CODENAME=tessa
DISTRIB_DESCRIPTION="Linux Mint 19.1 Tessa"
$ python3
>>> import sys; print(sys.version)
3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0]
Just updated speaking-eye from Alpha into Beta and found some issues when starting the app ๐ฒ
๐ Problem:
$ bash start.sh
Traceback (most recent call last):
File "/home/tas/Workspace/speaking-eye/src/speaking_eye.py", line 67, in
main()
File "/home/tas/Workspace/speaking-eye/src/speaking_eye.py", line 61, in main
app = SpeakingEyeApp(APP_ID, config, logger)
File "/home/tas/Workspace/speaking-eye/src/speaking_eye_app.py", line 84, in init
self.__dbus_subscribe_to_screen_saver_signals()
File "/home/tas/Workspace/speaking-eye/src/speaking_eye_app.py", line 153, in __dbus_subscribe_to_screen_saver_signals
raise Exception('self.screen_saver_bus_names should be set!')
Exception: self.screen_saver_bus_names should be set!
โ๏ธ Solution:
In order for app to work I removed next section from speaking_eye_app.py
if not self.screen_saver_bus_names:
raise Exception('self.screen_saver_bus_names should be set!')
In my case self.screen_saver_bus_names
was empty list. It seems that using not
operator is not always the best choice ๐
๐ Environment:
App was installed and started according to README. Python version is 3.7.3 โ๏ธ
..
..
..
Since Speaking Eye was added to PyPi it is necessary to test its installation steps. And make sure that the specified dependencies are enough.
For it I can install a fresh Linux system using GNOME Boxes and running commands from Installation section in README
:
$ sudo apt-get install \
python3-dev \
python3-venv \
libcairo2-dev \
libgirepository1.0-dev \
python3-gi \
gir1.2-gtk-3.0 \
gir1.2-wnck-3.0 \
gir1.2-appindicator3-0.1 \
gir1.2-notify-0.7
$ pip install speaking-eye
$ speaking-eye
Wanted to track my work activity with speaking-eye and found some issues while installing it.
Problem:
Installed system dependencies but got error from setup command.
$ git clone https://github.com/alena-bartosh/speaking-eye.git && \
cd speaking-eye && \
python3 -m venv .env && \
source .env/bin/activate && \
pip install --upgrade pip && \
pip install -r requirements.txt
...
ERROR: Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from -r requirements.txt (line 3)) (from versions: none)
ERROR: No matching distribution found for pkg-resources==0.0.0 (from -r requirements.txt (line 3))
Solution:
In order to resolve this issue I removed pkg-resources==0.0.0
from requirements.txt
Environment:
$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=19.1
DISTRIB_CODENAME=tessa
DISTRIB_DESCRIPTION="Linux Mint 19.1 Tessa"
$ python3
>>> import sys; print(sys.version)
3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.