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

Fix detection of dashboard build files in installed packages. #1084

Merged

Conversation

notoraptor
Copy link
Collaborator

@notoraptor notoraptor commented Feb 20, 2023

Description

Hi @bouthilx ! This PR tries to fix #1083 . However, I don't know how to test it in CI. CI currently tests normal installation, but this issue seems related to a corner case, and I don't know how to reproduce it in CI.

Changes

t seems that, depending on installation, additional files may be installed in <sys.prefix>/local instead of just <sys.prefix>. More info: https://stackoverflow.com/questions/14211575/any-python-function-to-get-data-files-root-directory#comment99087548_14211600

So, this PR just checks both <sys.prefix> then <sys.prefix>/local to find dashboard build parent folder (named orion-dashboard).

On regular installations (e.g. in CI tests), checking <sys.prefix> is enough. But it seems data are installed in <sys.prefix>/local on Jupyter installations. I don't know why there's this difference.

Checklist

Tests

  • I added corresponding tests for bug fixes and new features. If possible, the tests fail without the changes
  • All new and existing tests are passing ($ tox -e py38; replace 38 by your Python version if necessary)

Documentation

  • I have updated the relevant documentation related to my changes

Quality

  • I have read the CONTRIBUTING doc
  • My commits messages follow this format
  • My code follows the style guidelines ($ tox -e lint)

@notoraptor
Copy link
Collaborator Author

@bouthilx it seems to have worked, including conda-build !

@bouthilx bouthilx merged commit 85bb4ee into Epistimio:develop Feb 22, 2023
@notoraptor notoraptor deleted the fix-detecting-dashboard-build-on-install branch March 2, 2023 18:30
@notoraptor notoraptor mentioned this pull request Mar 2, 2023
@notoraptor notoraptor added the bug Indicates an unexpected problem or unintended behavior label Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli fails on google colab
2 participants