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

Trying to run under mac os and python 3.10 #41

Open
Thorbenl opened this issue Dec 8, 2022 · 0 comments
Open

Trying to run under mac os and python 3.10 #41

Thorbenl opened this issue Dec 8, 2022 · 0 comments

Comments

@Thorbenl
Copy link

Thorbenl commented Dec 8, 2022

Not sure what im doing wrong, but after installing, and running ./prestart.sh, i am getting the following error:

Traceback (most recent call last):
  File "/Users/personal/ultimate-fastapi-tutorial/part-07-database/./app/backend_pre_start.py", line 3, in <module>
    from tenacity import after_log, before_log, retry, stop_after_attempt, wait_fixed
ModuleNotFoundError: No module named 'tenacity'
./prestart.sh: line 7: alembic: command not found
Traceback (most recent call last):
  File "/Users/personal/ultimate-fastapi-tutorial/part-07-database/./app/initial_data.py", line 3, in <module>
    from app.db.base import Base
ModuleNotFoundError: No module named 'app'

All i did was cloning the repo, going into one of the parts, and running poetry install.

/personal/ultimate-fastapi-tutorial/part-07-database main stock-lcpoetry install                                                                           17:31:09
Installing dependencies from lock file

Package operations: 1 install, 20 updates, 0 removalsUpdating dnspython (2.2.1 -> 2.1.0)
  • Updating greenlet (2.0.1 -> 1.1.2)
  • Updating idna (3.4 -> 3.2)
  • Updating markupsafe (2.1.1 -> 2.0.1)
  • Updating typing-extensions (4.4.0 -> 3.10.0.0)
  • Updating click (8.1.3 -> 7.1.2)
  • Updating email-validator (1.3.0 -> 1.1.3)
  • Updating h11 (0.14.0 -> 0.9.0)
  • Updating httptools (0.5.0 -> 0.1.2)
  • Updating mako (1.2.4 -> 1.1.4)
  • Updating pydantic (1.10.2 -> 1.8.2)
  • Installing python-editor (1.0.4)
  • Updating sqlalchemy (1.4.44 -> 1.4.22)
  • Updating starlette (0.22.0 -> 0.14.2)
  • Updating uvloop (0.17.0 -> 0.15.3)
  • Updating websockets (10.4 -> 8.1)
  • Updating alembic (1.8.1 -> 1.6.5)
  • Updating fastapi (0.88.0 -> 0.68.0)
  • Updating jinja2 (3.1.2 -> 3.0.1)
  • Updating tenacity (8.1.0 -> 8.0.1)
  • Updating uvicorn (0.20.0 -> 0.11.8)

Installing the current project: app (0.0.1)

And yes, even after manually installing tenacity, it still throws that error

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

1 participant