yoheinakajima / prettygraph

An experimental UI for text-to-knowledge-graph generation
MIT License
590 stars 40 forks source link

Poetry.lock is not consistent with pyproject.toml #1

Open mattlgroff opened 2 months ago

mattlgroff commented 2 months ago
matt@WSL2:~/working$ git clone https://github.com/yoheinakajima/prettygraph
Cloning into 'prettygraph'...
remote: Enumerating objects: 29, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 29 (delta 11), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (29/29), 103.88 KiB | 1.85 MiB/s, done.
Resolving deltas: 100% (11/11), done.
matt@WSL2:~/working$ cd prettygraph/
matt@WSL2:~/working/prettygraph (main)$ poetry install
Creating virtualenv python-template-hgXLYGdK-py3.10 in /home/matt/.cache/pypoetry/virtualenvs
Installing dependencies from lock file
Warning: poetry.lock is not consistent with pyproject.toml. You may be getting improper dependencies. Run `poetry lock [--no-update]` to fix it.

Because python-template depends on python-dotenv (^0.20.0) which doesn't match any versions, version solving failed.
matt@WSL2:~/working/prettygraph (main)$ poetry run python main.py
Traceback (most recent call last):
  File "/home/matt/working/prettygraph/main.py", line 1, in <module>
    from flask import Flask, render_template, request, jsonify
ModuleNotFoundError: No module named 'flask'

Ran into this while following the README.md

Xemin0 commented 3 weeks ago

Same here getting a warning message asking me to fix the lock file

craigtrim commented 1 week ago

Run poetry lock