enthought / chaco

Chaco is a Python package for building interactive and custom 2-D plots.
http://docs.enthought.com/chaco/
Other
291 stars 101 forks source link

ImportError: cannot import name 'BaseTool' from 'chaco.api' #878

Closed homosapien-lcy closed 1 year ago

homosapien-lcy commented 1 year ago

Problem Description ImportError: cannot import name 'BaseTool' from 'chaco.api' when running chaco/examples/demo/canvas/mptools.py

Reproduction Steps: python chaco/examples/demo/canvas/mptools.py

OS, Python version: [MacOS, python3.11, python3.8 (with EDM)]

homosapien-lcy commented 1 year ago

It seems that BaseTool should be imported from the enable api https://github.com/enthought/enable/blob/main/enable/api.py (line 272), we probably can solve this by importing BaseTool in chaco.api (from enable.api)