-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Latest Conda doesn't work against Artifactory with "conda install" #8623
Comments
@mingwandroid Maybe you could have a look please? :) |
Artifactory is a 3rd party index, and while conda doesn't intentionally break it, we also make no effort to ensure that it will not break, nor do we "fix" conda when it breaks. |
Bump. Same issue on Linux. |
The actual fix has already been committed, |
Any insight on when we can see an update to conda 4.6.x on Linux that applies this fix? |
This can be closed, the solution landed in conda 4.7.0 |
Current Behavior
The latest Conda client (tested with 4.6.14) fails to perform
conda install X
against JFrog Artifactory.Any version of 4.5.x and below does work.
Seems to be an issue with a new commit on
conda/common/url.py
line 119, inpath_to_url
Steps to Reproduce
Go to Artifctory Conda repo, click on
Set Me Up
in the top rightunder ~/.condarc add the text from the Set Me Up dialog
(starts with:
channel_alias: http://admin:<KEY>@localhost:8081/artifactory/api/conda/conda/......
)conda install scipy
IndexError: string index out of range
of the client.The following stacktrace appears:
I would mention that I noticed the
url.py
code has been changed in the latest version.During the run, the
path
variable gets the value of/
.However the new code looks for ":" at second char for some reason.
On the old version (4.5.12) I see the value of path is also
/
, and it works perfectly with Artifactory.Stacktrace shows problem is here:
But I couldn't figure out where the path is derived from.
Seems to me the condition should be different.
Environment Information
`conda info`
``` active environment : None user config file : /Users/yuvalr/.condarc populated config files : /Users/yuvalr/.condarc conda version : 4.6.14 conda-build version : not installed python version : 2.7.16.final.0 base environment : /Users/yuvalr/miniconda2 (writable) channel URLs : http://admin:@localhost:8080/artifactory/api/conda/conda-remote/osx-64 http://admin:@localhost:8080/artifactory/api/conda/conda-remote/noarch package cache : /Users/yuvalr/miniconda2/pkgs /Users/yuvalr/.conda/pkgs envs directories : /Users/yuvalr/miniconda2/envs /Users/yuvalr/.conda/envs platform : osx-64 user-agent : conda/4.6.14 requests/2.21.0 CPython/2.7.16 Darwin/18.5.0 OSX/10.14.4 UID:GID : 501:20 netrc file : None offline mode : False ```
`conda config --show-sources`
``` ==> /Users/yuvalr/.condarc <== channels: - http://admin:@localhost:8080/artifactory/api/conda/conda-remote/ default_channels: - http://admin:@localhost:8080/artifactory/api/conda/conda-remote/ channel_alias: http://admin:@localhost:8080/artifactory/api/conda/conda-remote/ ```
The text was updated successfully, but these errors were encountered: