Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mattlgroff opened this issue May 2, 2024 · 2 comments
Open

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

mattlgroff opened this issue May 2, 2024 · 2 comments

Comments

@mattlgroff
Copy link

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
Copy link

Xemin0 commented Jun 9, 2024

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

@craigtrim
Copy link

Run poetry lock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants