Giter Site home page Giter Site logo

alena-bartosh / speaking-eye Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 854 KB

:postal_horn::eyes: Track & analyze your computer activity. Focus on work and don't forget to take breaks

License: MIT License

Python 87.89% Shell 1.59% Makefile 1.96% CSS 8.56%
python3 gtk wnck worktracker dash pandas timetracker

speaking-eye's People

Contributors

alena-bartosh avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

speaking-eye's Issues

Problem with installing pycairo dependencies from requirements.txt [2]

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]

Test speaking-eye==0.1.1 installation

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

Problem with installing pkg-resources from requirements.txt [1]

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]

Problem with starting Alpha version

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 โ˜๏ธ

..
..
..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.