`linkml-ws` followup: `make setup`: `poetry: command not found`
Describe the bug
I'm following the steps in this video to set up a new LinkML project using linkml-ws.
To Reproduce Steps to reproduce the behavior:
- Create an empty directory in which to create project.
- (~optional) Make a virtual environment
-
pip install linkml - Try to create a new LinkML workspace using:
linmkl-ws new -D "<WORKSPACE_NAME>" <WORKSPACE_NAME> -
cd <WORKSPACE_NAME> -
make setup
Expected behavior Project should be set up.
Actual behavior
make setup
poetry install
bash: poetry: command not found
make: *** [install] Error 127
Things I tried
- Making sure LinkML is installed.
pip freeze | grep linkml
biolinkml==1.7.6
linkml==1.2.10
linkml-dataops==0.1.0
linkml-runtime==1.2.9
linmkl-ws new -D "tccm"
zsh: command not found: linmkl-ws
Possible solutions
- Making sure that the following is included as an argument to
setup()insetup.py:
install_requires=[
'poetry',
],
@joeflack4: you can see the repo no longer uses setuptools and pipenv for package management. We could have documented this better, but you can install the poetry binaries on your machine, and not as a python package, by following the instructions here: https://python-poetry.org/docs/
I am aware now, thanks Sujay. I discussed briefly w/ Chris during a LinkML meeting. He understands the UX argument I'm making. I think probably some automation can be done for the edge case where a random user on the internet wants to pick up LinkML, but isn't using poetry. But it is probably not worth the dev time anyway to handle that case, so I really don't mind if this PR is closed. I mainly wanted to bring attention to the issue. Hopefully I can contribute in a more meaningful way though some time in the future.
Hi @joeflack4 - thanks! You could also checkout the linkml-initializer, which is the start of a web-based project creation strategy. Closing for now, but please do try it out and give @pkalita-lbl any feedback about how it could be improved.
Oh yeah, I saw that on the LinkML call last week I think. Looked pretty awesome.