Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any instructions for centos 7 #329

Closed
sduqlsc opened this issue Jun 27, 2019 · 7 comments
Closed

any instructions for centos 7 #329

sduqlsc opened this issue Jun 27, 2019 · 7 comments

Comments

@sduqlsc
Copy link

sduqlsc commented Jun 27, 2019

got error as follows:

sudo pip3 install safeeyes
Collecting safeeyes
  Using cached https://files.pythonhosted.org/packages/9c/23/ce771f76ff8fe22d45520f7b31b8f264a560b11391e52bc37dc2aca20f9e/safeeyes-2.0.9.tar.gz
Collecting babel (from safeeyes)
  Using cached https://files.pythonhosted.org/packages/2c/60/f2af68eb046c5de5b1fe6dd4743bf42c074f7141fe7b2737d3061533b093/Babel-2.7.0-py2.py3-none-any.whl
Requirement already satisfied: psutil in /usr/local/python3/lib/python3.7/site-packages (from safeeyes) (5.6.3)
Collecting PyGObject (from safeeyes)
  Using cached https://files.pythonhosted.org/packages/40/ee/8daf797cda4ffe7724b9d47cbb5e2b44ca6235764622d163c586bd9bd7c5/PyGObject-3.32.2.tar.gz
  Could not find a version that satisfies the requirement pycairo (from versions: )
No matching distribution found for pycairo

@slgobinath
Copy link
Owner

Hi though I don't remember the exact steps, once I did this by installing in a Python virtual env. All you need is a supporting Python version (I guess 3.6), create a Python virtual env and install Safe Eyes in it.

@sduqlsc
Copy link
Author

sduqlsc commented Jun 27, 2019

@slgobinath thanks for the reply, would check after restart.

i have built and installed 3.7, using venv:

mkdir safeeyes
cd safeeyes/

pip3 install virtualenv --user
virtualenv --no-site-packages venv
source venv/bin/activate
pip3 install safeeyes

before that should check necessary dependencies:
yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel

yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel

@slgobinath
Copy link
Owner

@sduqlsc does it work?

If so I will add the instructions to the README.

@sduqlsc
Copy link
Author

sduqlsc commented Jun 27, 2019

@slgobinath worked, though with an error, seems no big deal

(__main__.py:21762): Gdk-CRITICAL **: 20:35:20.193: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed

image

note that dbus also needed:
yum install dbus dbus-devel

and under the venv mode execute cmd: pip3 install dbus-python

then you can start safe eyes with terminal:

cd /home/user/Programs/safeeyes & source venv/bin/activate
python3 -m safeeyes

My environment info:
CentOS Linux release 7.6.1810 (Core)
Python 3.7

@sduqlsc
Copy link
Author

sduqlsc commented Jun 27, 2019

I think it would be better to encapsulate a shell script to start, anyway, leaving a terminal opening is not a good idea, especially for the rookies.

@slgobinath
Copy link
Owner

Thank you @sduqlsc I will update the README with your instructions.

@slgobinath
Copy link
Owner

Added to README with 9bb074b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants