Closed
Description
The docs do not say which version of spython
is needed by */extract.py, so I did simply pip install spython
- but this seem to no longer have the DockerRecipe
class
(base) stain@biggie:~/src/extract-dockerfile$ pip show spython
Name: spython
Version: 0.0.73
Summary: Command line python tool for working with singularity.
Home-page: http://www.github.com/singularityhub/singularity-cli
Author: Vanessa Sochat
Author-email: [email protected]
License: LICENSE
Location: /scratch/conda/miniconda3/lib/python3.7/site-packages
Requires: semver
Required-by:
(base) stain@biggie:~/src/extract-dockerfile/SoftwareSourceCode$ python extract.py
/home/stain/miniconda3/lib/python3.7/site-packages/schemaorg/utils.py:237: YAMLLoadWarning: calling yaml.load_all() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
for doc in docs:
{'version': 1, 'schemas': {'SoftwareSourceCode': {'recommended': [{'softwareVersion': 'version'}, 'citation', 'identifier', 'keywords', 'license', 'url', 'sameAs', 'spatialCoverage', 'temporalCoverage', 'variableMeasured'], 'required': ['description', 'name']}, 'Person|Organization': {'required': ['description', 'name']}, 'Person': {'required': ['description', 'name']}, 'Organization': {'required': ['description', 'name']}}}
Specification base set to http://www.schema.org
Using Version 3.5
Found http://www.schema.org/Person
Person: found 69 properties
Specification base set to http://www.schema.org
Using Version 3.5
Found http://www.schema.org/ContactPoint
ContactPoint: found 22 properties
Traceback (most recent call last):
File "extract.py", line 63, in <module>
from spython.main.parse import DockerRecipe
ImportError: cannot import name 'DockerRecipe' from 'spython.main.parse' (/home/stain/miniconda3/lib/python3.7/site-packages/spython/main/parse/__init__.py)
Metadata
Metadata
Assignees
Labels
No labels