Skip to content

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

@mattlgroff

Description

@mattlgroff
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions