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

Error when running "python app.py" #14

Open
Skaiar opened this issue Jul 22, 2016 · 5 comments
Open

Error when running "python app.py" #14

Skaiar opened this issue Jul 22, 2016 · 5 comments

Comments

@Skaiar
Copy link

Skaiar commented Jul 22, 2016

Keep getting the error when running the command "python app.py"

Error while finding spec for 'app.py' (<class "AttributeError">: module 'app' has no attribute "path")

Anybody got any ideas about this?

@hasanakg
Copy link

What Python version you have?

@Skaiar
Copy link
Author

Skaiar commented Jul 22, 2016

I'm on 3.5.1

@tolgaergin
Copy link

  1. Install requirements
    pip3 install -r requirements.txt

  2. Change line8 at api.py to from datetime import timezone

  3. Run
    python3 app.py

@Skaiar
Copy link
Author

Skaiar commented Jul 22, 2016

So I need to change import friend as friendo (line 8) to from datetime import timezone(Which is currently line 6)?
Just tried the 3 steps that you have suggested bit still sadly get the same error.

@Outpox
Copy link

Outpox commented Jul 22, 2016

Nope, juste change line 6 from
from datetime import timezone
to
from datetime import datetime

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

4 participants