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

ModuleNotFoundError: No module named 'playhouse' #64

Closed
kms-hoangdao opened this issue Sep 8, 2023 · 8 comments · Fixed by #110
Closed

ModuleNotFoundError: No module named 'playhouse' #64

kms-hoangdao opened this issue Sep 8, 2023 · 8 comments · Fixed by #110
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@kms-hoangdao
Copy link

When I try run python db_init.py
terminal throw the error
Traceback (most recent call last): File "/home/ces-user/Desktop/gpt-pilot/pilot/db_init.py", line 3, in <module> from database.database import create_tables, drop_tables File "/home/ces-user/Desktop/gpt-pilot/pilot/database/database.py", line 1, in <module> from playhouse.shortcuts import model_to_dict ModuleNotFoundError: No module named 'playhouse'

@kms-hoangdao
Copy link
Author

kms-hoangdao commented Sep 8, 2023

playhouse is a part of the peewee package, see github.com/coleifer/peewee/blob/master/setup.py#L145-L146 -- if you pip install peewee then playhouse is already installed

@kms-hoangdao
Copy link
Author

  • pip install --upgrade prompt-toolkit
  • pip install --upgrade questionary
  • pip install --upgrade yaspin

@LeonOstrez
Copy link
Member

if i see correct, nothing is missing in requirements.txt. Do you still have that issue or is was it solved once you did pip install ... ?

@kms-hoangdao
Copy link
Author

kms-hoangdao commented Sep 8, 2023

@LeonOstrez I don't know but once I did all comments above it ran correctly

@Tzahile
Copy link

Tzahile commented Sep 12, 2023

I got this error as well when I tried running python db_init.py.
Turns out I wasn't source'd on the venv (I closed and opened my terminal..)

source ./pilot-env/bin/activate
cd pilot
python db_init.py

@fluxthedev
Copy link

It seems that there are 2 requirements files, one at the root and one inside ./pilot. The app ran fine when I ran pip install -r requirements.txt both places.

@nalbion
Copy link
Contributor

nalbion commented Sep 28, 2023

@LeonOstrez do we need both requirements.txt files?

@nalbion nalbion added bug Something isn't working good first issue Good for newcomers labels Sep 28, 2023
@LeonOstrez
Copy link
Member

requirements.txt inside pilot folder has been removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants