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

How to install and use it? #10

Open
PengjuXu opened this issue May 12, 2018 · 2 comments
Open

How to install and use it? #10

PengjuXu opened this issue May 12, 2018 · 2 comments

Comments

@PengjuXu
Copy link

Hi,

Thanks for this great GUI tool!
But exactly how to install and use it?

@alpernebbi
Copy link
Owner

alpernebbi commented May 13, 2018

You should be able to install it with a simple pip install git-annex-metadata-gui in most cases, but sometimes the dependencies cause some problems.


If you're using Debian (or a derivative), you can install the system dependencies with:

# apt install git-annex python3-pip python3-pyqt5 python3-pygit2

At this point, you should be able to run these two without any errors:

$ python3 -c 'import PyQt5, pygit2'
$ git-annex version --raw

Then run:

$ pip3 install --user --no-deps git-annex-adapter git-annex-metadata-gui

Normally, pip tries to re-build pygit2 and complains that it can't. It also downloads a version of PyQt5 that doesn't support system themes, so the entire thing looks ugly. Since we already installed and verified we can use system-wide versions of these, the --no-deps flag lets us skip re-installing them.

This installs both my projects and creates a ~/.local/bin/git-annex-metadata-gui file, so you can run git-annex-metadata-gui from a terminal.


I hope I could help. Feel free to ask if anything goes wrong, or there is something unclear.

@PengjuXu
Copy link
Author

PengjuXu commented Jun 10, 2018

@alpernebbi
Thanks for instruction!

I tried on Debian but did not succeed.

pip3 install git-annex-metadata-gui
  Could not find any downloads that satisfy the requirement PyQt5 (from git-annex-metadata-gui)
sudo apt install python3-pyqt5
pip3 install git-annex-metadata-gui
  Could not find any downloads that satisfy the requirement PyQt5 (from git-annex-metadata-gui)
python3 -c 'import PyQt5, pygit2'
  ImportError: No module named 'pygit2'

I had success with Manjaro Linux:

install system pkg libgit2 first
sudo pip install git-annex-metadata-gui
  installed to /usr/bin/git-annex-metadata-gui
in /usr/lib/python/site-packages/
  changed modes of many related files and dirs  "ugo+rx"

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