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

AttributeError: 'NoneType' object has no attribute 'traverse' #220

Closed
ahmedsalhin opened this issue Mar 9, 2018 · 1 comment
Closed

Comments

@ahmedsalhin
Copy link

ahmedsalhin commented Mar 9, 2018

while trying to app.css.get_all_css() I get this error

Traceback (most recent call last):
  File "/Users/ahmed.salhin/anaconda3/envs/cash_flow/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2862, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-94-41ada8291459>", line 1, in <module>
    app.css.get_all_css()
  File "/Users/ahmed.salhin/anaconda3/envs/cash_flow/lib/python3.6/site-packages/dash/resources.py", line 104, in get_all_css
    return self._resources.get_all_resources()
  File "/Users/ahmed.salhin/anaconda3/envs/cash_flow/lib/python3.6/site-packages/dash/resources.py", line 56, in get_all_resources
    all_resources = (
  File "/Users/ahmed.salhin/anaconda3/envs/cash_flow/lib/python3.6/site-packages/dash/resources.py", line 87, in get_inferred_resources
    extract_resource_from_component(t)
AttributeError: 'NoneType' object has no attribute 'traverse'
@ned2
Copy link
Contributor

ned2 commented Mar 11, 2018

This looks like the layout attribute has not been set. Check that you have actually assigned a value to the layout attribute of your Dash instance. If you have done that somewhere, then it's likely an import order issue, where the app is being run without importing the module that assigns layout a value. I actually just suggested a solution to this issue over on #221.

HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 28, 2021
add issue template and support md
HammadTheOne pushed a commit that referenced this issue Jul 23, 2021
add issue template and support md
AnnMarieW pushed a commit to AnnMarieW/dash that referenced this issue Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants