airbrake / pybrake

Python exception notifier for Airbrake
https://airbrake.io
Other
37 stars 17 forks source link

pybrake possible broken for non-Cython applications. #155

Closed badcure closed 2 years ago

badcure commented 3 years ago

Possibly a regression from: https://github.com/airbrake/pybrake/issues/86

I have not tested all the version, but when running with pybrake==0.4.6, the application starts up without an issue on AWS Lambdas.

When simply changing to pybrake==1.0.3, the following error occurs while attempting to import:

Traceback (most recent call last):
  File "/var/task/es_thin_lambdas/base.py", line 8, in <module>
    import pybrake
  File "/var/task/pybrake/__init__.py", line 1, in <module>
    from .notifier import Notifier
  File "/var/task/pybrake/notifier.py", line 15, in <module>
    from .routes import _Routes
  File "/var/task/pybrake/routes.py", line 8, in <module>
    from .tdigest import as_bytes, TDigestStat
  File "/var/task/pybrake/tdigest.py", line 3, in <module>
    import tdigest
  File "/var/task/tdigest/__init__.py", line 1, in <module>
    from .tdigest import TDigest
  File "/var/task/tdigest/tdigest.py", line 5, in <module>
    from accumulation_tree import AccumulationTree
  File "/var/task/accumulation_tree/__init__.py", line 2, in <module>
    from .accumulation_tree import AccumulationTree
ModuleNotFoundError: No module named 'accumulation_tree.accumulation_tree'
scottsbaldwin commented 2 years ago

Thanks @badcure, we will take a look. Sorry for the long delay in responsiveness.

scottsbaldwin commented 2 years ago

@salonijain0918 it looks like https://github.com/wavefrontHQ/wavefront-pyformance/issues/22#issuecomment-483438333 may have some clues for us with this issue.

otakusid commented 2 years ago

any workaround for this issue?

scottsbaldwin commented 2 years ago

any workaround for this issue?

Not yet. We have had some things come up and we haven't been able to investigate this like we had hoped.

smurf-U commented 2 years ago

@otakusid 'Container image' can be used to build lambda functions for you.

smurf-U commented 2 years ago

@otakusid I'm closing this issue for now. As mentioned, give it a shot. It'll work. Thanks.