question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Eve

See original GitHub issue

Even though Eve is a wrapper around Flask, using sentry on Eve throws an exception, e.g.:

# app.py
from eve import Eve
from raven.contrib.flask import Sentry

app = Eve()
sentry = Sentry(app, dsn='...')
app.run()
Traceback (most recent call last):
  File "flask-sentry.py", line 5, in <module>
    sentry = Sentry(app, dsn='https://ccbeb003ed194f0bab837d8c33269cef:ad3c0bdbe07740799fcf3a30fe491449@sentry.io/136957')
  File "MYPATH/env/lib/python3.5/site-packages/raven/contrib/flask.py", line 114, in __init__
    self.init_app(app)
  File "MYPATH/env/lib/python3.5/site-packages/raven/contrib/flask.py", line 284, in init_app
    got_request_exception.connect(self.handle_exception, sender=app)
  File "MYPATH/env/lib/python3.5/site-packages/blinker/base.py", line 130, in connect
    sender_ref = reference(sender, self._cleanup_sender)
  File "MYPATH/env/lib/python3.5/site-packages/blinker/_utilities.py", line 134, in reference
    weak = callable_reference(object, callback)
  File "MYPATH/env/lib/python3.5/site-packages/blinker/_utilities.py", line 145, in callable_reference
    return BoundMethodWeakref(target=object, on_delete=callback)
  File "MYPATH/env/lib/python3.5/site-packages/blinker/_saferef.py", line 135, in __new__
    key = cls.calculate_key(target)
  File "MYPATH/env/lib/python3.5/site-packages/blinker/_saferef.py", line 196, in calculate_key
    return (id(get_self(target)), id(get_func(target)))
  File "MYPATH/env/lib/python3.5/site-packages/events/events.py", line 41, in __getattr__
    (self.__class__.__name__, name))
AttributeError: type object 'Eve' has no attribute '__self__'
Sentry is attempting to send 1 pending error messages
Waiting up to 10 seconds
Press Ctrl-C to quit

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

4reactions
fernandocamargoaicommented, Nov 12, 2017

A workaround for this problem is to subclass Eve as follows:

class BlinkerCompatibleEve(Eve):
    """
    Workaround for https://github.com/pyeve/eve/issues/1087
    """
    def __getattr__(self, name):
        if name in {"im_self", "im_func"}:
            raise AttributeError("type object '%s' has no attribute '%s'" %
                                 (self.__class__.__name__, name))
        return super(BlinkerCompatibleEve, self).__getattr__(name)
0reactions
Ziulcommented, Sep 27, 2017

No updates about it yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

EVE Online - Support
Technical Support. Can't find what you're looking for? Please contact support. Submit a request. © EVE Online. Search... Powered by Zendesk.
Read more >
Eve to Add Thread Support to HomeKit-Enabled Accessories
Eve intends to expand hardware support for Thread to its entire product line, upgrading Eve accessories to connect over a fast, self-healing wireless...
Read more >
Eve upgrades three products to support Matter - 9to5Mac
Eve is upgrading 3 of its existing device to support Matter. ... Eve adds Matter support to three products with a free firmware...
Read more >
EVE online adds support for AMD Freesync - Reddit
Eve O has a minimize to background feature that makes it no different for the GPU to run 100 or 1 client. This...
Read more >
EVE-NG System Requirements
Please consult to EVE support for CPU tune before use. Older series AMD can have issues. NOT supported or have serious issues: Using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found