-
Notifications
You must be signed in to change notification settings - Fork 11
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
KeyError while running tests #7
Comments
An update to pandas is causing this. I am not sure if it is a cause of worry, but to be on the safe side, I would pin the version of pandas (and potentially other packages) to the ones here https://github.com/pinellolab/haystack_bio/blob/master/Dockerfile#L35. Alternatively, you can use the Docker container. Rick, |
Thanks, it makes sense! I think I will use the docker container but I was considering building a Singularity container and pinning pandas will help. |
I have no experience building Singularity containers but I think it would be a great solution for people running the pipeline on HPC clusters. Maybe @lucapinello knows more about these types of containers. I'll ask him. |
They work roughly the same as Docker containers, it's just a matter to create the right recipe for building them. Usually I install a package locally to see if I am able to build everything, before going the container way. My reason to use Singularity is mostly the root/user issue for Docker and to deal with filesystem isolation, but there are other differences as well. Thanks! |
Hi there!
I think the current Docker file and image should work already with
Singularity:
https://github.com/pinellolab/haystack_bio/blob/master/Dockerfile
To make it run on singularity you could try with:
singularity run pinellolab/haystack_bio (add command and flags here)
Please let us know how it goes!
Thanks,
Luca
…On Mon, Apr 12, 2021 at 12:46 PM micdonato ***@***.***> wrote:
They work roughly the same as Docker containers, it's just a matter to
create the right recipe for building them. Usually I install a package
locally to see if I am able to build everything, before going the container
way.
My reason to use Singularity is mostly the root/user issue for Docker and
to deal with filesystem isolation, but there are other differences as well.
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIH72W3SDNPC5EYLO3R3JLTIMPX5ANCNFSM42RWWO2A>
.
|
Hi all, and thanks! That is what I tried at first. Unfortunately, it seems that Singularity fails to actually build the image, as packages that should be installed are missing: The command: The result:
That is why I wanted to try rebuild the singularity image from scratch. |
I can reproduce your error and it seems there is no simple solution to directly use the docker with singularity. You may want to explore this tool to convert the docker image : docker2singularity. I have tested the docker image on my machine and it is still working as expected but I understand that this may not be a viable option for you. You can try to downgrade pandas in the conda environment you have created previously and if necessary also the other packages: numpy==1.13.3 @rfarouni do you have the bandwidth to pin pandas in the next few days in the bioconda package and resubmit it so we can fix this for other users trying the package through bioconda? Of course this will require to create a separate conda env just for haystack |
@lucapinello I will look into this as soon as I can |
Thanks Rick!
…On Wed, Apr 14, 2021 at 3:13 PM Rick Farouni ***@***.***> wrote:
@lucapinello <https://github.com/lucapinello> I will look into this as
soon as I can
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIH72XUZ7FTLWNPYAUC463TIXSNLANCNFSM42RWWO2A>
.
|
I found that the easiest way to deal with this error is to run
|
Thanks Rick!
I will update the documentation accordingly to propose this fix.
|
I see you already update it :)
What about we propose this as a single line?
conda install haystack_bio pandas==0.21
…On Thu, Apr 22, 2021 at 12:24 PM Luca Pinello ***@***.***> wrote:
Thanks Rick!
I will update the documentation accordingly to propose this fix.
|
This seems to work as well |
Great, I think this is an excellent compromise and we don't need to
update the recipe.
Thanks for looking into it!
…On Thu, Apr 22, 2021 at 1:23 PM Rick Farouni ***@***.***> wrote:
This seems to work as well
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIH72TWHTQEKCBC7CVSBULTKBLS3ANCNFSM42RWWO2A>
.
|
Hi, I am trying to install haystack on our server and I am running into an error when running the tests:
The tests complete successfully but at the end I get this:
Should I be worried?
The text was updated successfully, but these errors were encountered: