sentry-gitlab icon indicating copy to clipboard operation
sentry-gitlab copied to clipboard

AttributeError: 'Gitlab' object has no attribute 'Project'

Open EtreRe opened this issue 9 years ago • 7 comments

Hello all,

I'm using GitLab Community Edition 8.11.2

I have tried to install sentry-gitlab with pip or with cloning the repo. I have also tried to use the repo name or the repo id.

And everytime i have this error.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/sentry/../django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/../django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/../django/utils/decorators.py", line 29, in _wrapper
    return bound_func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/../django/utils/decorators.py", line 99, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/../django/utils/decorators.py", line 25, in bound_func
    return func(self, *args2, **kwargs2)
  File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/base.py", line 175, in dispatch
    return self.handle(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/group_plugin_action.py", line 25, in handle
    response = plugin.get_view_response(request, group)
  File "/usr/local/lib/python2.7/site-packages/sentry/plugins/base/v1.py", line 296, in get_view_response
    response = self.view(request, group)
  File "/usr/local/lib/python2.7/site-packages/sentry/plugins/bases/issue.py", line 226, in view
    request=request,
  File "/usr/local/lib/python2.7/site-packages/sentry/../sentry_gitlab/plugin.py", line 88, in create_issue
AttributeError: 'Gitlab' object has no attribute 'Project'
[ERROR] django.request: Internal Server Error: /sentry/php-error/issues/2263/actions/gitlab/

Do you know why ?

Thank you.

EtreRe avatar Aug 29 '16 11:08 EtreRe

Same error here! @ajcrowe Could it be that the API changed? I'm also using Gitlab 8.11(.5)

jmatsushita avatar Sep 11 '16 18:09 jmatsushita

Maybe it's related to #11 ?

jmatsushita avatar Sep 12 '16 08:09 jmatsushita

Like I said, I have tried to use de repo id but didn't work.

EtreRe avatar Sep 12 '16 08:09 EtreRe

Seems also rasing my original issue https://github.com/getsentry/sentry-plugins/issues/34

I use GitLab 8.12.4

lippoliv avatar Oct 09 '16 12:10 lippoliv

👍

lippoliv avatar Oct 09 '16 12:10 lippoliv

I can only assume a version bump if python-gitlab has completely changed their API and we aren't correctly pinning. :(

mattrobenolt avatar Oct 09 '16 19:10 mattrobenolt

@EtreRe Hi,maybe it's too late,but I have an idea to solve this problem.

First:you can source activate. Second:you can execute pip uninstall sentry-gitlab,then you should execute pip install sentry-plugins=={your sentry version} Last:you can restart sentry

I using this method to solve this question,I hope it is helpful for you.

BooksLiu avatar Jul 17 '18 07:07 BooksLiu