You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A namespace package does not have a file property. Instead utilize
the __path__ attribute and use the first element in the list. While
this may not capture the dynamic cases, it should capture the
necessary data for most cases.
Fixes#667
The new
capture_backtrace
function inscout_apm.core.backtrace
raises an AttributeError when the stack includes a PEP-420 namespace package.This is caused by the
module_filepath
function, specifically line 32:If
sys.modules[root_module]
is a PEP-420 namespace package, this will raiseSteps to reproduce
Create a namespace package, with some modules inside, e.g.:
Then on an interactive Python shell:
Details
The text was updated successfully, but these errors were encountered: