Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

test suite failure due to missing dep matplotlib #665

Closed
1 task
ipatch opened this issue Dec 30, 2024 · 4 comments
Closed
1 task

test suite failure due to missing dep matplotlib #665

ipatch opened this issue Dec 30, 2024 · 4 comments
Assignees

Comments

@ipatch
Copy link
Collaborator

ipatch commented Dec 30, 2024

  • update the 2x freecad formulas i.e [email protected]_py312 (qt5 version) and the [email protected]_py312_qt6 to include mataplot lib as a formula dependency to hopefully allow all the unit tests to run without any failures.

presently running the test suite i'm getting the current failures text in STDOUT

Failed to set matplotlib backend to Qt5Agg
======================================================================
ERROR: test_femobjects_make (femtest.app.test_object.TestObjectCreate.test_femobjects_make)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/linuxbrew/.linuxbrew/lib/python3.12/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/home/linuxbrew/.linuxbrew/lib/python3.12/unittest/case.py", line 634, in run
    self._callTestMethod(testMethod)
  File "/home/linuxbrew/.linuxbrew/lib/python3.12/unittest/case.py", line 589, in _callTestMethod
    if method() is not None:
       ^^^^^^^^
  File "/home/linuxbrew/.linuxbrew/Cellar/[email protected]_py312_qt6/1.0.0/Mod/Fem/femtest/app/test_object.py", line 67, in test_femobjects_make
    doc = create_all_fem_objects_doc(self.document)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/linuxbrew/.linuxbrew/Cellar/[email protected]_py312_qt6/1.0.0/Mod/Fem/femtest/app/test_object.py", line 1099, in create_all_fem_objects_doc
    res = analysis.addObject(ObjectsFem.makeResultMechanical(doc))[0]
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/linuxbrew/.linuxbrew/Cellar/[email protected]_py312_qt6/1.0.0/Mod/Fem/ObjectsFem.py", line 591, in makeResultMechanical
    from femviewprovider import view_result_mechanical
  File "/home/linuxbrew/.linuxbrew/Cellar/[email protected]_py312_qt6/1.0.0/Mod/Fem/femviewprovider/view_result_mechanical.py", line 36, in <module>
    from femtaskpanels import task_result_mechanical
  File "/home/linuxbrew/.linuxbrew/Cellar/[email protected]_py312_qt6/1.0.0/Mod/Fem/femtaskpanels/task_result_mechanical.py", line 40, in <module>
    import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
@ipatch
Copy link
Collaborator Author

ipatch commented Jan 7, 2025

pr #668

should resolve this issue. 🤞

==> brew install --only-dependencies freecad/freecad/[email protected]_py312
==> brew install freecad/freecad/[email protected]_py312
==> brew install --only-dependencies freecad/freecad/[email protected]_py312
==> brew linkage --test freecad/freecad/[email protected]_py312
==> brew linkage --cached --test --strict freecad/freecad/[email protected]_py312
==> FAILED
Full linkage --cached --test --strict freecad/freecad/[email protected]_py312 output
Truncated linkage --cached --test --strict freecad/freecad/[email protected]_py312 output
  Warning:   open-mpi
  
==> brew install --only-dependencies --include-test freecad/freecad/[email protected]_py312
==> brew test --retry --verbose freecad/freecad/[email protected]_py312
==> brew uninstall --force --ignore-dependencies freecad/freecad/[email protected]_py312
Warning: 2 failed steps ignored!
brew linkage --cached --test --strict freecad/freecad/fc_bundle_py312
brew linkage --cached --test --strict freecad/freecad/[email protected]_py312

@ipatch
Copy link
Collaborator Author

ipatch commented Jan 7, 2025

==> brew uninstall --formulae --force --ignore-dependencies acl attr autoconf automake bison brotli c-ares cmake coreutils curl docbook docbook-xsl docutils doxygen flex font-util freecad/freecad/[email protected] gdbm gettext gobject-introspection gpatch gperf help2man json-c libidn2 libnghttp2 libssh2 libunistring libuv lzip mandoc meson nasm ninja node openldap patchelf perl perl-xml-parser rtmpdump spirv-headers swig util-macros xcb-proto xmlto xtrans yasm
==> brew install --only-dependencies ./fc_bundle_py312--0.9.2_2.x86_64_linux.bottle.1.tar.gz
==> brew install ./fc_bundle_py312--0.9.2_2.x86_64_linux.bottle.1.tar.gz
==> brew linkage --test freecad/freecad/fc_bundle_py312
==> brew linkage --cached --test --strict freecad/freecad/fc_bundle_py312
==> FAILED
Full linkage --cached --test --strict freecad/freecad/fc_bundle_py312 output
  Indirect dependencies with linkage:
    zlib
Truncated linkage --cached --test --strict freecad/freecad/fc_bundle_py312 output
  Warning:   zlib
  
==> brew linkage --cached freecad/freecad/fc_bundle_py312
==> brew install --formula --only-dependencies --include-test freecad/freecad/fc_bundle_py312
==> brew test --verbose freecad/freecad/fc_bundle_py312

@ipatch
Copy link
Collaborator Author

ipatch commented Jan 7, 2025

this issue should now be resolved with PR #668

@ipatch ipatch closed this as completed Jan 7, 2025
@ipatch
Copy link
Collaborator Author

ipatch commented Jan 8, 2025

for completeness i just ran the test suite on my arch linux install, and got a final report with the below snippet,

<Exception> There are no visible objects to be cut

----------------------------------------------------------------------
Ran 1590 tests in 2.33e+02s

OK
System exit
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/bearer/libqconnmanbearer.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/bearer/libqgenericbearer.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/bearer/libqnmbearer.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/iconengines/libqsvgicon.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/imageformats/libqgif.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/imageformats/libqicns.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/imageformats/libqico.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/imageformats/libqjpeg.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/imageformats/libqpdf.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/imageformats/libqsvg.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/imageformats/libqtga.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/imageformats/libqtiff.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/imageformats/libqwbmp.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/imageformats/libqwebp.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/xcbglintegrations/libqxcb-glx-integration.so"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
QLibraryPrivate::unload succeeded on "libdbus-1"
QLibraryPrivate::unload succeeded on "/home/capin/homebrew/Cellar/qt@5/5.15.16/plugins/platforms/libqxcb.so"
QLibraryPrivate::unload succeeded on "Xcursor" (faked)
QLibraryPrivate::unload succeeded on "crypto" (faked)
QLibraryPrivate::unload succeeded on "ssl" (faked)

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

No branches or pull requests

1 participant