enthought / chaco

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

MAINT: add 3.11 test #861

Closed homosapien-lcy closed 1 year ago

homosapien-lcy commented 1 year ago

With new python tests, we also want to test and make sure all examples can work in 3.11. Since 3.11 is not available in EDM, pypi is tested. closes #860

homosapien-lcy commented 1 year ago

An error happened when running on python 3.6 which is similar to what happened in SciMath (https://github.com/enthought/scimath/issues/170)

Problem description: If python 3.6 is added to the pypi test, it will generate a "The version '3.6' with architecture 'x64' was not found for Ubuntu 22.04." error.

Reproduction steps: Add 3.6 to .github/workflows/test-with-pypi.yml.

Expected behavior: Pass the github workflows test.

OS: Ubuntu 22.04

Python version: 3.6

The tests with other python versions are past though

homosapien-lcy commented 1 year ago

testing procedure: 1 env setup: python3.11 -m venv --clear ~/.venvs/p311 && source ~/.venvs/p311/bin/activate 2 clone git clone git@github.com:enthought/chaco.git 3 install dependencies brew install portaudio (for mac) pip install configobj pip install pygments pip install pyaudio pip install traitsui pip install pyparsing pip install pyside6 pip install scikit-learn 4 install package python3.11 -m pip install -e .

chaco/examples/demo/: depth: NotImplementedError: the 'null' toolkit does not implement this method domain_limits: NotImplementedError: the 'null' toolkit does not implement this method financial_plot_dates: NotImplementedError: the 'null' toolkit does not implement this method aspect_ratio: NotImplementedError: the 'null' toolkit does not implement this method multiaxis: NotImplementedError: the 'null' toolkit does not implement this method multiaxis_using_Plot: NotImplementedError: the 'null' toolkit does not implement this method logo: SUCCESS financial_plot: NotImplementedError: the 'null' toolkit does not implement this method multi_line_plot: NotImplementedError: the 'null' toolkit does not implement this method noninteractive: SUCCESS (image generated) world_map: urllib.error.HTTPError: HTTP Error 404: Not Found

chaco/examples/tutorials/: tutor: ModuleNotFoundError: No module named 'configobj' tutorial1: SUCCESS (image generated) tutorial2: NotImplementedError: the 'null' toolkit does not implement this method tutorial2_ipython: NotImplementedError: the 'null' toolkit does not implement this method tutorial3: NotImplementedError: the 'null' toolkit does not implement this method tutorial4: NotImplementedError: the 'null' toolkit does not implement this method tutorial5: NotImplementedError: the 'null' toolkit does not implement this method tutorial6: NotImplementedError: the 'null' toolkit does not implement this method tutorial7: NotImplementedError: the 'null' toolkit does not implement this method tutorial8: NotImplementedError: the 'null' toolkit does not implement this method tutorial9: NotImplementedError: the 'null' toolkit does not implement this method tutorial9b: NotImplementedError: the 'null' toolkit does not implement this method tutorial10: NotImplementedError: the 'null' toolkit does not implement this method tutorial10b: NotImplementedError: the 'null' toolkit does not implement this method tutorial11: NotImplementedError: the 'null' toolkit does not implement this method

chaco/examples/user_guide/: h_plot_container_add_multiple_times: NotImplementedError: the 'null' toolkit does not implement this method grid_plot_container: NotImplementedError: the 'null' toolkit does not implement this method h_plot_container: NotImplementedError: the 'null' toolkit does not implement this method power_function_example: NotImplementedError: the 'null' toolkit does not implement this method h_plot_container_colorbar: NotImplementedError: the 'null' toolkit does not implement this method overlay_container_inset: NotImplementedError: the 'null' toolkit does not implement this method

homosapien-lcy commented 1 year ago

Full results in https://docs.google.com/spreadsheets/d/1vvkQgbG1_KrY-7y9h5HGSl15eocL2o1Av4y4b1iUCKg/edit#gid=393321095

corranwebster commented 1 year ago

python3.11 -m pip install -e .

You probably should be doing python3.11 -m pip install -e ".[examples]" or something similar to bring in pandas and scipy example dependencies.

homosapien-lcy commented 1 year ago

python3.11 -m pip install -e .

You probably should be doing python3.11 -m pip install -e ".[examples]" or something similar to bring in pandas and scipy example dependencies.

Hi Corran: thanks for the advice. Could you give an example of what should be in the ".[examples]"? This repositery for instance

homosapien-lcy commented 1 year ago

Full results updated in https://docs.google.com/spreadsheets/d/1R_HF86YJybiSqOLplDsk7-UiTmNJvdX4z3OjzW8Q6hQ/edit#gid=381404102 (add 120ish more tests)

corranwebster commented 1 year ago

Closing in favour of #891