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 'marker_trait' from 'chaco.api' #866

Closed homosapien-lcy closed 1 year ago

homosapien-lcy commented 1 year ago

Problem Description ImportError: cannot import name 'marker_trait' from 'chaco.api' when trying to run a 2008 demo

Reproduction Steps:

python chaco/examples/tutorials/scipy2008/traits_example.py

Expected behavior: test past

OS, Python version: [MacOS, python3.8 (with or without edm) or 3.11]

homosapien-lcy commented 1 year ago

In issue #878 It is caused by not importing from the right API. This may be a problem of similar cause.

corranwebster commented 1 year ago

In general it is better to fix the demo to conform to the current API than changing the API. Import from enable in the example if that is where things currently are.