Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyramid crashes when 'include()' used with relative import paths #311

Closed
jimabramson opened this issue Jul 14, 2017 · 2 comments
Closed
Labels
Milestone

Comments

@jimabramson
Copy link

jimabramson commented Jul 14, 2017

We added ddtrace-run to our py3 + pyramid app which caused it to crash on startup with an AttributeError (module 'ddtrace.contrib.pyramid' has no attribute 'models').

The cause turned out to be a series of config.include() calls which were using relative import paths; under ddtrace, pyramid's path resolver was mapping .foo to ddtrace.contrib.pyramid.foo (i guess it changes what __main__ means?)

Switching to absolute paths fixed the issue.

@palazzem
Copy link

palazzem commented Sep 7, 2017

@jimabramson this one has been merged #342 ; it should fix the problem.

Closing.

@palazzem palazzem closed this as completed Sep 7, 2017
@jimabramson
Copy link
Author

confirmed, issue no longer exists with 0.9.1+master2494 - thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants