Skip to content

Incorrect path to .py files in build? #1065

@Erraen

Description

@Erraen
  • dash version: 2.18.2
  • dash-bootstrap-components version: 1.7.0
  • components affected by bug:
    dash-bootstrap-components >=1.7.0rc3

What is happening?

I upgrade dbc (with pip install) and got error on start app:

import dash_bootstrap_components as dbc
   File "/usr/local/lib/python3.12/site-packages/dash_bootstrap_components/__init__.py", line 7, in <module>
     from dash_bootstrap_components._components import Table
 ImportError: cannot import name 'Table' from 'dash_bootstrap_components._components' (unknown location

After install all components files are placed into /usr/local/lib/python3.12/site-packages/dash_bootstrap_components/, not into /usr/local/lib/python3.12/site-packages/dash_bootstrap_components/_components/ as expected.

What should be happening?

Components *.py files should be placed into dash_bootstrap_components/_components/ or imports path should be changed.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions