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

Unable to "python run.py" #21

Open
hydropero opened this issue Feb 28, 2021 · 3 comments
Open

Unable to "python run.py" #21

hydropero opened this issue Feb 28, 2021 · 3 comments

Comments

@hydropero
Copy link

hydropero commented Feb 28, 2021

While attempting to python run.py in a virtual environment with Python version 3.6.9 on Ubuntu 18.04 I get

ModuleNotFoundError: No module named 'guest'

The full error:
Traceback (most recent call last): File "run.py", line 1, in <module> from app import app File "/home/mbulla/Bootcamp-Exercises/frameworks/app/__init__.py", line 9, in <module> from app.models import Guest File "/home/mbulla/Bootcamp-Exercises/frameworks/app/models/__init__.py", line 1, in <module> from guest import Guest ModuleNotFoundError: No module named 'guest'

@hydropero
Copy link
Author

Nevermind, I believe everything was written with Python2 and that's why I am unable to follow this project myself.

@ramereth
Copy link
Contributor

ramereth commented Mar 1, 2021

Yes, we unfortunately haven't updated this for Python3 yet. Feel free to make a PR which updates it!

@yehtetmaungmaung
Copy link

Hello guys. I'm also learning with OSU DOBC. First I installed python2 on global using ..
$sudo apt install python2
Then I installed python2 in virtualenv using..
$virtualenv --python=/usr/bin/python2 venv
It shows some warning but I think it's okay as we are learning.

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