Closed jhned closed 5 years ago
hey @jhned ! Sorry for the trouble here - it's entirely a version issue for Singularity Python - we refactored the recipe parser (and I need to update the tutorial here). Can you point me to where you are reading and I'll do this asap?
okay, so the fix is very simple, just these two lines here:
from spython.main.parse.parsers import DockerParser
parser = DockerParser("Dockerfile").parse()
I just opened a pull request to update all the examples, #25, if you want to take a look! Give that a go, and when you've confirmed it's good, I'll merge.
Hey @vsoch, thanks for the reply! I was reading about it here: https://openschemas.github.io/schemaorg/. I'll try the update now.
Ok, now I'm getting this message:
ERROR Cannot find Dockerfile, is the path correct?
Was I supposed to download a Dockerfile as well as part of this?
Oh, you'd need to have a Dockerfile in your present working directory to work with! If you want a complete, packaged example, see this repo -> https://github.com/openbases/extract-dockerfile I've provided a Dockerfile in each folder.
That repo is currently linked in the examples README: https://github.com/openschemas/schemaorg/tree/master/examples
And the google example folder does have a Dockerfile: https://github.com/openschemas/schemaorg/tree/master/examples/google
I think I mostly never expected someone to copy paste into a script from the getting started page and have it associated with a folder in the repo, sorry about that! Hopefully I've provided enough examples and files in other places so it's not a hassle.
No worries! Thanks for the help!
Hey there, thanks for making this, this will really help me out! I'm not familiar with Python, but I'm trying to follow along with the tutorial. So far, I downloaded the repo, ran
python3 setup.py
and then put this code into a file titledSoftwareSourceCode.py
:I ran
python3 SoftwareSourceCode.py
and got this output:Any idea what I'm missing off the top of your head?