Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unit tests failing due to matplotlib and numpy dependency #655

Closed
dhblum opened this issue Jul 12, 2024 · 1 comment
Closed

Unit tests failing due to matplotlib and numpy dependency #655

dhblum opened this issue Jul 12, 2024 · 1 comment

Comments

@dhblum
Copy link
Collaborator

dhblum commented Jul 12, 2024

Unit tests are failing with (see https://app.travis-ci.com/github/ibpsa/project1-boptest/jobs/624003987):

Traceback (most recent call last):
  File "/home/travis/build/ibpsa/project1-boptest/testing/report.py", line 9, in <module>
    import utilities
  File "/home/travis/build/ibpsa/project1-boptest/testing/utilities.py", line 15, in <module>
    import matplotlib.pyplot as plt
  File "/home/travis/virtualenv/python3.9.6/lib/python3.9/site-packages/matplotlib/pyplot.py", line 36, in <module>
    import matplotlib.colorbar
  File "/home/travis/virtualenv/python3.9.6/lib/python3.9/site-packages/matplotlib/colorbar.py", line 44, in <module>
    import matplotlib.contour as contour
  File "/home/travis/virtualenv/python3.9.6/lib/python3.9/site-packages/matplotlib/contour.py", line 17, in <module>
    import matplotlib.text as text
  File "/home/travis/virtualenv/python3.9.6/lib/python3.9/site-packages/matplotlib/text.py", line 16, in <module>
    from .textpath import TextPath  # Unused, but imported by others.
  File "/home/travis/virtualenv/python3.9.6/lib/python3.9/site-packages/matplotlib/textpath.py", line 11, in <module>
    from matplotlib.mathtext import MathTextParser
  File "/home/travis/virtualenv/python3.9.6/lib/python3.9/site-packages/matplotlib/mathtext.py", line 27, in <module>
    from PIL import Image
  File "/home/travis/virtualenv/python3.9.6/lib/python3.9/site-packages/PIL/Image.py", line 68, in <module>
    from ._typing import StrOrBytesPath, TypeGuard
  File "/home/travis/virtualenv/python3.9.6/lib/python3.9/site-packages/PIL/_typing.py", line 10, in <module>
    NumpyArray = npt.NDArray[Any]
AttributeError: module 'numpy.typing' has no attribute 'NDArray'
makefile:155: recipe for target 'test_parser' failed
make: *** [test_parser] Error 1

matplotlib and numpy versions are already specified in travis config file using:

install: pip install --upgrade pip && pip install pandas==1.2.5 numpy==1.20.2 matplotlib==3.3.4 requests==2.25.1

This issue is to address this.

@dhblum
Copy link
Collaborator Author

dhblum commented Jul 29, 2024

Closed by #659.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant