Bee-Mar / mmpm

MagicMirror Package Manager
MIT License
193 stars 29 forks source link

Installation failed [Fixed] #1

Closed moryoav closed 5 years ago

moryoav commented 5 years ago

Installation initially failed because I had libgit2 missing (pip3 install pygit2 failed). Additionally, "sudo apt-get install libgit2-dev" succeeded but pip3 install pygit2 complained that it can't find the right version. My solution was:

$ wget https://github.com/libgit2/libgit2/archive/v0.28.1.tar.gz
$ tar xzf v0.28.1.tar.gz
$ cd libgit2-0.28.1/
$ cmake .
$ make
$ sudo make install

and then:

sudo pip3 install pygit2
sudo ldconfig 
python3 -c 'import pygit2'

Only then could I proceed with the installation of mmpm.

Bee-Mar commented 5 years ago

Thanks for letting me know! I'll add this to the installation instructions. I must have installed something previously was bundled libgit2-dev, and never realized it was a dependency of pygit2.

Bee-Mar commented 5 years ago

I've updated the README, so I'll close this issue now.

drippyer commented 5 years ago

I am actually still having an issue because of pygit2. Attempting to run any mmpm command results in PyGit2 package not found. Pip installing with --user flag. That eventually fails with Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1t_8046a/pygit2/

Bee-Mar commented 5 years ago

Have you tried any of the following

python -m pip install --upgrade pip

python3 -m pip3 install --upgrade pip3

pip install --upgrade setuptools

pip install ez_setup

easy_install distribute

pip install --upgrade distribute

pip3 install --upgrade distribute

sudo apt install python-dev libpython-dev libevent-dev python3-dev libpython3-dev  -y

I'll look into removing pygit2 just to remove dependencies, and since I don't really use it much within the code

drippyer commented 5 years ago

I think it was upgrading pip that fixed it? I'd already tried upgrading setuptools and that didn't help but I can at least list installed modules now!

Bee-Mar commented 5 years ago

Awesome! I actually just went in and removed the code that used pygit2, which was just one line. I swore I used it elsewhere, but that was probably in some previous version. I'm about to push the new version that doesn't need the pygit2 module.

Also, assuming everything works properly for you now, you can just run mmpm -e (or the long version mmpm --enhance-mmpm) every so often manually, or let it run whenever a new snapshot file is taken. That command will check if there are any updates made to the repository, download the new version, and install it for you.