Skip to content

No module named 'weight' #1

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

Open
blaudp79 opened this issue Jan 22, 2021 · 0 comments
Open

No module named 'weight' #1

blaudp79 opened this issue Jan 22, 2021 · 0 comments

Comments

@blaudp79
Copy link

Hi,

I've tried to re-create the web code first manually based on the tutorial and then by cloning from here. I get the below error message regardless. Any idea why?

pi@raspberrypi:~/website/app $ flask run -h 0.0.0.0
 * Serving Flask app "/home/pi/website/website.py"
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: off
Usage: flask run [OPTIONS]

Error: While importing "website", an ImportError was raised:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/cli.py", line 235, in locate_app
    __import__(module_name)
  File "/home/pi/website/website.py", line 1, in <module>
    from app import app
  File "/home/pi/website/app/__init__.py", line 8, in <module>
    from app import routes
  File "/home/pi/website/app/routes.py", line 3, in <module>
    from weight import add_weight_point
ModuleNotFoundError: No module named 'weight'

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