Open Jonas231 opened 2 years ago
These are the versions that I am using: chaco 5.0.0 1 dbanas enable 5.2.1 py38h4da3286_2 dbanas
The same Chaco demo crashes in macOS too.
Traceback (most recent call last): File "chaco_test.py", line 4, in
from chaco.api import Plot, ArrayPlotData File "/Users/jam99/opt/anaconda3/envs/enthought/lib/python3.7/site-packages/chaco/api.py", line 314, in from .plots.horizon_plot import BandedMapper File "/Users/jam99/opt/anaconda3/envs/enthought/lib/python3.7/site-packages/chaco/plots/horizon_plot.py", line 14, in from enable.api import transparent_color_trait File "/Users/jam99/opt/anaconda3/envs/enthought/lib/python3.7/site-packages/enable/api.py", line 200, in from .enable_traits import ( File "/Users/jam99/opt/anaconda3/envs/enthought/lib/python3.7/site-packages/enable/enable_traits.py", line 18, in from enable.trait_defs.kiva_font_trait import KivaFont File "/Users/jam99/opt/anaconda3/envs/enthought/lib/python3.7/site-packages/enable/trait_defs/kiva_font_trait.py", line 13, in from pyface.font import Font as PyfaceFont ModuleNotFoundError: No module named 'pyface.font'
Fails in Python 3.7 on macOS too.
macOS 12.5.1 Python 3.7.13
Package versions:
chaco 5.0.0 pypi_0 pypi enable 5.3.1 pypi_0 pypi pyface 7.3.0 py37hecd8cb5_1
traits 6.2.0 py37h9ed2024_0
traitsui 7.2.1 pyhd3eb1b0_0
Installation method:
conda create -n enthought python traitsui, traits, mayavi conda activate enthought pip install chaco
To reproduce the error, it is enough to try to import Plot from the chaco api
python -c "from chaco.api import Plot"
which gives the error
Traceback (most recent call last): File "
", line 1, in File "/Users/jam99/opt/anaconda3/envs/enthought/lib/python3.7/site-packages/chaco/api.py", line 314, in from .plots.horizon_plot import BandedMapper File "/Users/jam99/opt/anaconda3/envs/enthought/lib/python3.7/site-packages/chaco/plots/horizon_plot.py", line 14, in from enable.api import transparent_color_trait File "/Users/jam99/opt/anaconda3/envs/enthought/lib/python3.7/site-packages/enable/api.py", line 200, in from .enable_traits import ( File "/Users/jam99/opt/anaconda3/envs/enthought/lib/python3.7/site-packages/enable/enable_traits.py", line 18, in from enable.trait_defs.kiva_font_trait import KivaFont File "/Users/jam99/opt/anaconda3/envs/enthought/lib/python3.7/site-packages/enable/trait_defs/kiva_font_trait.py", line 13, in from pyface.font import Font as PyfaceFont ModuleNotFoundError: No module named 'pyface.font'
I can't reproduce with current main branch of Chaco, but there have been a number of improvements towards installing using pip.
For the PyfaceFont
issue, it looks like your version of Pyface is too old - try Pyface 7.4.x (you will need to wait until the next Chaco release to work with Pyface 8.0+)
Hello, I have this problem (the code had worked before, but now it does not work anymore):
Problem Description
When I execute the below python code example from your documentation page. I get this error message:
Reproduction Steps: I used "pip install chaco" and "pip install --upgrade chaco" to install chaco.
Expected behavior:
I had hoped the example would work
OS, Python version: [Enter OS name and Python version] Python 3.8.12 , Windows 10
Best regards, Jonas