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

jlap: error with file:/// repositories #12963

Closed
2 tasks done
dholth opened this issue Aug 3, 2023 · 0 comments · Fixed by #12994
Closed
2 tasks done

jlap: error with file:/// repositories #12963

dholth opened this issue Aug 3, 2023 · 0 comments · Fixed by #12994
Assignees
Labels
locked [bot] locked due to inactivity source::anaconda created by members of Anaconda, Inc. type::bug describes erroneous operation, use severity::* to classify the type

Comments

@dholth
Copy link
Contributor

dholth commented Aug 3, 2023

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

--experimental=jlap errors when pointed to a file:/// repository containing .jlap:

For example,

.condarc:

channels:
   - file:///Users/dholth/prog/conda/repo
experimental: [jlap]

In the repo folder, download repodata.json, repodata.json.zst, repodata.jlap into noarch/ and your arch (e.g. osx-arm64/) folders. A copy from defaults is fine for testing.

Now try something like a conda search a few times until the second or third time where it would normally consult .jlap (which it only does after fetching repodata.json).

An error appears since the "pretend requests can talk to file" system doesn't understand headers.

      File ".../conda/gateways/repodata/jlap/fetch.py", line 131, in request_jlap
        log.debug("request headers: %s", pprint.pformat(response.request.headers))
    AttributeError: 'NoneType' object has no attribute 'headers'

Conda Info

Version 23.7.2

@dholth dholth added type::bug describes erroneous operation, use severity::* to classify the type source::anaconda created by members of Anaconda, Inc. labels Aug 3, 2023
@dholth dholth self-assigned this Aug 16, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Aug 26, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity source::anaconda created by members of Anaconda, Inc. type::bug describes erroneous operation, use severity::* to classify the type
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant