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

[meta] updating old tools / python version pinning by default #6488

Open
hexylena opened this issue Oct 25, 2024 · 2 comments
Open

[meta] updating old tools / python version pinning by default #6488

hexylena opened this issue Oct 25, 2024 · 2 comments

Comments

@hexylena
Copy link
Member

hamronize: summarize version 1.0.3 uses iteritems meaning it is incompatible with python 3. I don't notice any issues running hamronize with py3 but the summarisation specifically is an issue.

This was fixed 2 years ago upstream: pha4ge/hAMRonization@e560d83 and github suggests it is included in v1.1.0 to v1.1.7 (latest), and IUC has an updated version of this.

however installing the older version which is used in workflows doesn't work specifically for one code path (html report.)

It is one of those cases where it would be nice if we could update old tools more easily. Add the dependency on py2 to ensure the conda environment gets resolved correctly.

Simultaneously, it'd be nice if IUC by policy, consider adding a current version of python to python tools, to prevent this situation in the future. Sure update the python version as we go along, but pinning the python version to something stable so that if a tool works today, it continues to work in the future when folks install it. Otherwise it's not reproducible without knowing which version of whatever language dependency might've been available when the tool was released, and manually fixing the conda environment on disk.

as a result I'm having to replace the version of hamronize in this workflow which has been well tested by others, I don't know that this new version doesn't change behaviours, but, I have no choice because I cannot easily tell consumers of the workflow that they will need to run some conda commands on their galaxy server to fix the dependencies.

@bgruening
Copy link
Member

I'm not sure I completely understand the issue. Are you saying version 1.0.3 should have a dependency on python=2.7 and not 3.x? In this case this PR here is wrong https://github.com/bioconda/bioconda-recipes/pull/26528/files and we can create a new conda package that fixes those dependencies.

@hexylena
Copy link
Member Author

hexylena commented Oct 28, 2024

Yes! correct. Version 1.0.3 of hamronize: summarize requires python 2.7. Most of the code paths are OK with py3 which I guess is why it wasn't caught. But specifically the html report generation fails because it still uses iteritems.

Thanks @bgruening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants