-
Notifications
You must be signed in to change notification settings - Fork 2
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
Unable to run tests: missing 'populate_metadata' in module 'acanthophis' #7
Comments
Using SSH to container,
Then run
I tried other methods to install
|
RE @bricoletc's original issue
Oops, fixed in the readme. In fact I completely rewrote the readme as there were a few other errors there too.
Fixed, thanks.
See above, rewrote readme, correct now.
Likewise, hopefully much clearer in the current readme.
Can you confirm that the latest main branch has this issue still? I think it was fixed as part of one of the other issues you and @gbouras13 created, and was due to a very old version of Acanthophis being installed from pip, if I remember correctly. |
I just tried to reproduce this using exactly what you ran, but it worked fine for me with that docker container. Can you confirm that you have pulled the latest I have the following docker image tag:
|
@kdm9 , I've tried running the steps here: https://github.com/kdm9/Acanthophis/tree/main/tests Error in rule ncbitax:
jobid: 76
output: rawdata/ncbitax
log: rawdata/ncbitax/get.log (check log file(s) for error details)
shell:
(mkdir -p rawdata/ncbitax && cd rawdata/ncbitax && wget -c ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz && tar -zxvf taxdump.tar.gz) &>rawdata/ncbitax/get.log
(one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!) Here is the corresponding log file from that rule: Also, I've proposed pointing to the tests in your README in #20 :)) |
@bricoletc OK, that's super strange, the log file you attach seems to suggest a failed download (see how it continues past 100% of file downloaded in the progress indicator), resulting in an invalid tar file. I just tried that URL download manually myself and it worked fine. Any chance you could try Many thanks for the readme update b.t.w.! :) best, |
@kdm9 welcome for the update! However I still get the same error, on acanthophis version 0.3.3.dev0 installed from pypi as per ❯ snakemake -j $(nproc 2>/dev/null || echo 2) --software-deployment-method conda --ri
Traceback (most recent call last):
File "/home/adminbrice/Softs/miniforge3/envs/acanthophis/lib/python3.12/site-packages/snakemake/cli.py", line 1893, in args_to_api
dag_api = workflow_api.dag(
^^^^^^^^^^^^^^^^^
File "/home/adminbrice/Softs/miniforge3/envs/acanthophis/lib/python3.12/site-packages/snakemake/api.py", line 326, in dag
return DAGApi(
^^^^^^^
File "<string>", line 6, in __init__
File "/home/adminbrice/Softs/miniforge3/envs/acanthophis/lib/python3.12/site-packages/snakemake/api.py", line 436, in __post_init__
self.workflow_api._workflow.dag_settings = self.dag_settings
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminbrice/Softs/miniforge3/envs/acanthophis/lib/python3.12/site-packages/snakemake/api.py", line 383, in _workflow
workflow.include(
File "/home/adminbrice/Softs/miniforge3/envs/acanthophis/lib/python3.12/site-packages/snakemake/workflow.py", line 1379, in include
exec(compile(code, snakefile.get_path_or_uri(), "exec"), self.globals)
File "/home/adminbrice/Desktop/research/writing/reviewing_exernal/JOSS/Acanthophis/test_tool/Acanthophis/tests/Snakefile", line 6, in <module>
AttributeError: module 'acanthophis' has no attribute 'populate_metadata' |
@bricoletc thanks once again for helping debug this, but the only cause I can think of is an outdated copy of the snakefile in ./tests/. As you can see in the source, the Snakefile directly calls So, it's certainly true that This is suboptimal, so I've just added code to So, can I please ask one last debugging check of you? Please check if the Thanks a million for your persistence! best, |
@kdm9, you were right! I checked out tip of main, and running |
Brilliant, many thanks @bricoletc!! |
(Part of review thread openjournals/joss-reviews#6062)
Hello! I tried running the tests for this repo by following the instructions here and found the following minor issues:
conda.yml
as per the README, butenvironment-setup.yml
environment-setup.yml
, installing msprime from pip failed - see attached log filefailed_pip_install_msprime.txt. I found that simply installing msprime from conda-forge worked instead, as per instructions here.
--> Update the .yml accordingly?
tests
directory should be updated to reflect the current status of Acanthophis - i.e.,using the instructions from here in the main README, or just link to that.
Same for the comment '# once I put this on PyPI:' - I see acanthophis is on PyPI
And here is a more major issue:
snakemake --snakefile Snakefile.generate-rawdata -j 8 --use-conda
completed fine and produced therawdata
. However, for actually running acanthophis on the generatedtest dataset,
snakemake --snakefile Snakefile -j 8 --use-conda
,Snakefile
andconfig.yml
are missing.I saw that inside the script
test.sh
there are instructions to generate them, usingacanthophis-init
. Please eithertell the user to run
setup.sh
andtest.sh
, oracanthophis-init
, in the README code block.snakemake --snakefile Snakefile -j 8 --use-conda
gives the following error:The text was updated successfully, but these errors were encountered: