ajcrowe / sentry-gitlab

GitLab Sentry Issue Plugin
ISC License
53 stars 15 forks source link

Installation #2

Closed jbrooksuk closed 10 years ago

jbrooksuk commented 10 years ago

I can't get sentry-gitlab to install in my version of Sentry. I followed the default instructions, but I've no idea where it should be cloned to as the README isn't very detailed.

ajcrowe commented 10 years ago

Hi @jbrooksuk, it doesn't matter where you clone it as the setup.py will copy all the files into your python environment.

I would suggest you clone it into the src folder of your virtualenv you created for Sentry.

Then you run python setup.py install when you're in the python environment that Sentry runs from. This might be a virtualenv or just your system's python install.

Another option would be to use pip to install it with:

pip install -e "git+https://github.com/ajcrowe/sentry-gitlab.git@v0.1.0#egg=sentry-gitlab"

Hope this helps! I add this pip method to the README

jbrooksuk commented 10 years ago

Then all I need to do is restart Sentry? Do I need to activate it or anything?

ajcrowe commented 10 years ago

Yeah, simple restart Sentry and you should be good to go.

jbrooksuk commented 10 years ago

Still no luck. Is this compatible with Sentry 6.4.4?

ajcrowe commented 10 years ago

I would have to check, we're still on 6.3.3. There is nothing I can see which should break with 6.4.x

Can you import the module?

$ python
import sentry_gitlab
ajcrowe commented 10 years ago

I've just done a fresh install of Sentry 6.4.4 and it all seems to be work, I can see the plugin listed under integrations.

jbrooksuk commented 10 years ago

Nope, I can't import the module. I'm confused. I'm in the virtualenv of sentry (/var/www/sentry/bin/activate)

ajcrowe commented 10 years ago

ok it might be the venv is just not active when you're installing, try something like this:

source /var/www/sentry/bin/activate
pip install -e "git+https://github.com/ajcrowe/sentry-gitlab.git@v0.1.1#egg=sentry-gitlab"
pip freeze | grep sentry-gitlab

You should see sentry-gitlab==0.1.1

jbrooksuk commented 10 years ago

Awesome! I've seen the sentry-gitlab==0.1.1 line. Just restarting now.

jbrooksuk commented 10 years ago

Perfect! It's all installed now. Thanks @ajcrowe!