-
Notifications
You must be signed in to change notification settings - Fork 15
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
pepatac bulker crate issues with /etc/resolv.conf, genrich, and macs2/python problems #159
Comments
So, the way we're currently doing it is that python and packages will all just use your native one, and bulker doesn't touch it, which is why it's listed under "host commands". So, what this means is that this is the one "weak link" of bulker -- you do have to install all the python related stuff manually. It's best if you just use bulker to handle all the non-python dependencies. While in theory you could bundle those up, you'd have to define a separate monolithic container for each use case, which would defeat the purpose of bulker. |
Also just to be clear: python3 is not containerized in the pepatac manifest. So it's calling your native python. So, just make sure you follow the install instructions to install all the python packages listed in |
And follow up regarding the warning, I also have always seen this, to no negative consequences. Not sure if there was any conclusion other than that. |
Yes - the mentioned warning has no negative effects other than showing up all the time. Is there a rationale for why some steps of the pipeline (whichever one requires |
with respect to this:
This could be clarified in the instructions. Currently, the wording "otherwise" made me believe that the python requirements did not apply when running inside the container:
Or you could explicitly mention the python requirements here: |
Bulker's macs2 is itself a container which is hosted from quay.io. Presumably then, the hosted container contains python itself. Not sure why it would be searching there, short of that being the within container path. Will investigate further here. I'll definitely clarify, and add in a note on the run-container page. |
To clarify -- This makes it seem like the macs2 container is broken. |
that macs2 container is working fine on our cluster with singularity.
and interactively like you did:
|
does your setup happen to have python at |
No.
|
what do you see for
|
I think it's an issue with the way singularity is configured on your server. maybe it's not able to access /dev/random or something? you could try some other python container to make sure it's not just the macs container. can you do:
|
To answer your questions:
For what its worth, I just edited the bulker manifest file to use my local macs2 and deleted the container and reloaded it. The whole pipeline works now. I'm going to assume that its something specific to my system which is hard to troubleshoot and really not necessary. It could easily be something related to how I've configured python or my python virtualenv? Happy to keep plugging away at this but only if you think its useful. otherwise, feel free to close. |
forgot to mention that |
Yes, in the process of adding some new options in. Thanks for the heads up. Will make sure the manifest is also updated. |
I'm having a few issues getting the pepatac bulker crate to work. honestly, some of this might be better posted to
bulker
instead.I get a persistent warning (looks like every time a singularity container is loaded) when running
pepatac
from within the crate:WARNING: Skipping mount /var/singularity/mnt/session/etc/resolv.conf [files]: /etc/resolv.conf doesn't exist in container
This problem is specific to singularity containers associated with the
pepatac:1.0.4
bulker container and does not happen with other bulker containers (alpine
orcoreutils
)I'm having issues with python from within the
bulker
container. I think this is because bulker is trying to use a local version of python based on this message which occurs during crate loading:Host commands available: python3, perl
First, the container couldnt find
pararead
.Then
macs2
threw a very bizarre error:Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python
When I launch the
_macs2
singularity container, it tries to access a python version at/usr/local/bin/python
which is not the version of python that I use (and I think that python install is actually botched).I'm not totally clear on how python is working within bulker. Even if the python3 executable provided with the
pepatac:1.0.4
crate were called, I dont know where it would get the corresponding libraries/modules if not from the local environment.The text was updated successfully, but these errors were encountered: