-
Notifications
You must be signed in to change notification settings - Fork 133
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
Linter fails in channel_dataframe() #360
Comments
ping @bioconda/core Help appreciated. I think this is now permanent. |
Looks like it comes from I tried to debug reproducing the part of from bioconda_utils import (utils,
linting)
import pandas as pd
platforms = ['linux', 'osx']
channels = ['bioconda', 'conda-forge', 'defaults']
for platform in platforms:
for channel in channels:
repo, noarch = utils.get_channel_repodata(channel, platform)
try :
df = pd.DataFrame(repo)
except ValueError as e:
print(f'Encountered error: {e} for channel: {channel}/{platform}')
break This returns EDIT: Looks like Then the faulty json object can be dissected (see below) Get a glimpse at the faulty JSON objectFetch it with: from bioconda_utils import utils
repo, noarch = utils.get_channel_repodata("conda-forge", "linux")
Lead on a solution?For the record, I tried to use the idea mentioned here to parse the json object and load it using from ruamel.yaml import YAML
yaml = YAML(typ="safe")
data = yaml.load(str(repo))
pd.io.json.json_normalize(data) |
In case it "works again" soon, here's a pickle of the |
So, is this problem fundamentally upstream? Is there anything individual packages can do to address it? |
I need to figure out if this is a upstream problem or if we need to adjust or build infrastructure. |
I think we should be resilient. Working on it ... |
I was wondering if there is any update on this? Seems like a bioconda wide outage for PR, is there a way to promote this issue to a higher priority ? |
The above PR for bioconda/bioconda-recipes#12347 was merged as tests passed, but then the uploads failed due to the issue mentioned on this PR. |
You should be able to close this now. |
Thanks @dpryan79 |
Thanks guys for solving this ! |
I am still getting same error when testing packages using circleci build locally. And, i might have missed it but I don't see where or how was it resolved. Thanks |
@mshakya Try updating bioconda-utils. |
@mshakya The entire piece of code was rewritten. Your |
@epruesse that did the trick. I had the old image. I pulled the new image |
E.g. in bioconda/bioconda-recipes#12441, https://circleci.com/gh/bioconda/bioconda-recipes/35848?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
The text was updated successfully, but these errors were encountered: