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

'subdirectory' config not supported for git reference in pip #946

Closed
jday1 opened this issue Mar 10, 2023 · 2 comments
Closed

'subdirectory' config not supported for git reference in pip #946

jday1 opened this issue Mar 10, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@jday1
Copy link
Contributor

jday1 commented Mar 10, 2023

Raised PR #947 to solve this.

Describe the bug

A clear and concise description of what the bug is.

If I install a package from a github repository using the subdirectory feature, the url is not reflected correctly in ClearML's saved config.

E.g.

my_package @ git+https://github.com/my_owner/my_repository#egg=my_package&subdirectory=my_subdirectory

becomes

my_package @ git+https://github.com/my_owner/my_repository#egg=my_package

This causes an issue. For example, if I want to perform hyperparameter tuning for that job it will fail because the package installation directory is invalid. This can be solved by using the detect_with_pip_freeze: true flag. However, ideally this should work with Pigar as well.

Read more about the subdirectory option here: https://packaging.python.org/en/latest/specifications/direct-url/#id1

To reproduce

Install a package of that form such as:
pip install 'airr @ git+https://github.com/SyntenyBio/airr-standards#egg=airr&subdirectory=lang/python'

Run a clearml experiment with the package installed and detect_with_pip_freeze: false in config.

In the clearml console under packages, you will see airr is malformed.

Expected behaviour

Packages are saved as expected.

Environment

  • Server type (self hosted \ app.clear.ml)
  • ClearML SDK Version
  • ClearML Server Version (Only for self hosted). Can be found on the bottom right corner of the settings screen.
  • Python Version
  • OS (Windows \ Linux \ Macos)

Related Discussion

If this continues a slack thread, please provide a link to the original slack thread.

@pollfly
Copy link
Contributor

pollfly commented Apr 3, 2023

Hey @jday1 ! Just letting you know that this issue has been resolved in the recently released v1.10.0. Let us know if there are any issues :)

@jkhenning
Copy link
Member

@jday1 closing this, please reopen if required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants