singularityhub / singularityhub.github.io

Container tools for scientific computing! Docs at https://singularityhub.github.io/singularityhub-docs
https://singularityhub.github.io
68 stars 9 forks source link

ERROR: 'Bootstrap' type not supported: library #213

Closed zhinoos closed 4 years ago

zhinoos commented 4 years ago

Links

Version of Singularity

Write here

Behavior when Building Locally

Write here.

Error on Singularity Hub

I recieved this error while building image on singularity hub : Found spec file Singularity.latest in repository ERROR: 'Bootstrap' type not supported: library ERROR: 'Bootstrap' type not supported: library Image failed build: build end 3 seconds.

What do you think is going on?

How I can resolve it?

ramou commented 4 years ago

40% chance running dos2unix on your singularity file. Took me forever to figure out that it was hiding that linebreaks were confusing it, specifically windows linebreaks.

On Thu, May 7, 2020 at 10:45 AM zhinoos notifications@github.com wrote:

Links

  • container collection:
  • GitHub repository or recipe file:

Version of Singularity

Write here Behavior when Building Locally

Write here. Error on Singularity Hub

I recieved this error while building image on singularity hub : Found spec file Singularity.latest in repository ERROR: 'Bootstrap' type not supported: library ERROR: 'Bootstrap' type not supported: library Image failed build: build end 3 seconds. What do you think is going on?

How I can resolve it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/singularityhub/singularityhub.github.io/issues/213, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN2OQEY3IKMGVUIRQM7RK3RQLCPTANCNFSM4M3MNXHA .

-- Stuart Thiel, P. Eng.

vsoch commented 4 years ago

Thanks @ramou ! Also be sure to check that your builder (collection settings) is 3.x and not something like 2.5.1.

zhinoos commented 4 years ago

@vsoch the default version of singularity is 2.x, so how can I change it to 3.x?I could not find settings in my collections.

vsoch commented 4 years ago

If you go to your collection you can click on settings and change your default builder. Are you aware of the documentation, which is linked in the top bar? https://singularityhub.github.io/singularityhub-docs/docs/builds/#how-do-i-customize-build-settings

zhinoos commented 4 years ago

Yes, thanks. Just found it. and do you know why I can not run .def file to build an image on Singularity hub?

vsoch commented 4 years ago

The recipes are auto detected and must be named in the structure of Singularity.* or just Singularity. You can try putting .def files in a folder called Singularity and I’ve seen that hack work. You can also trigger manual builds and specify any file that you want. I would encourage you to look more closely at the documentation because most of these questions that you’re asking are already answered there in detail. :)

vsoch commented 4 years ago

@zhinoos do you still need help here or can we close the issue?

vsoch commented 4 years ago

No response, issue resolved and closing.