Closed jbrooksuk closed 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
Then all I need to do is restart Sentry? Do I need to activate it or anything?
Yeah, simple restart Sentry and you should be good to go.
Still no luck. Is this compatible with Sentry 6.4.4?
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
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.
Nope, I can't import the module. I'm confused. I'm in the virtualenv of sentry (/var/www/sentry/bin/activate)
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
Awesome! I've seen the sentry-gitlab==0.1.1
line. Just restarting now.
Perfect! It's all installed now. Thanks @ajcrowe!
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.