Skip to content

No module named 'weight' #1

Open
@blaudp79

Description

@blaudp79

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions