Closed JohnMarohn closed 2 years ago
Hypothesized that installing traits, traitui, and mayavi using conda but installing chaco by pip was causing problems. Bite the bullet and carry out the installation using the Enthought Deployment Manager (EDM). Running macOS 12.5.1. To verify the EDM installation
$ edm --version
EDM 3.4.0 from /opt/edm/bin/../libexec/edm (cpython 3.6.13)
Create a new environment called enthought
with the desired packages installed
$ edm install traits, traitsui, mayavi, chaco, pandas -e enthought
Switch to the new environment, verify the installation, and exit.
$ edm shell -e enthought
$ python --version
Python 3.6.13 -- Enthought, Inc. (x86_64)
$ python -c "import traits; import traitsui; import chaco; import mayavi"
$ python -c "from chaco.api import Plot"
$ exit
The import thing to note is that running from chaco.api import Plot
in the new environment now succeeds.
In conclusion, installing chaco (and traits, traitui, mayavi) using the Enthought Deployment Manager seemed to solve the problem.
Problem Description:
Chaco demonstration in "Application-oriented plotting" in http://docs.enthought.com/chaco/user_manual/chaco_tutorial.html fails in macOS 12.5.1 running Python 3.7.13.
Reproduction Steps:
Install traitsui, traits, mayavi using conda and install chaco using pip. Conda chooses Python 3.7 to meet all the conflicting requirements.
This installation results in the following package versions
The following import fails
with the error message
Expected behavior:
The import should work without error.
OS, Python version:
macOS 12.5.1 Python 3.7.13