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

Flask ext.script module not found #46

Closed
patrickjmcd opened this issue Jul 18, 2018 · 9 comments
Closed

Flask ext.script module not found #46

patrickjmcd opened this issue Jul 18, 2018 · 9 comments
Assignees

Comments

@patrickjmcd
Copy link

When initializing the db with sudo python manage.py initdb, I get the error

Traceback (most recent call last):
  File "manage.py", line 9, in <module>
    from flask.ext.script import Manager, Command
ImportError: No module named ext.script

The flask extensions have changed from using flask.ext.script to flask_script naming scheme.

@Segfault198
Copy link

This is causing problems for the docker image as well. If you use the image then attempt to update the webapp it breaks because of this issue.

@patrickjmcd
Copy link
Author

Crickets from the devs. Looks like we're going to have to do this ourselves.

@Segfault198
Copy link

I was looking at the code. Shouldn't be terrible to fix, though I'm no professional coder. I'll try to give it a shot this weekend.

@Segfault198
Copy link

Update. Unfortunately I have not had a chance to dig into the code at this time.

@patrickjmcd
Copy link
Author

I've been attempting to fix it as well, but it's not as simple as a find and replace.

@f34rdotcom f34rdotcom self-assigned this Aug 10, 2018
@f34rdotcom
Copy link
Contributor

I tried to reproduce but no luck. I took my stock image and booted it on a the new Pi 3B+. I went into /opt/alarmdecoder-webapp and did a 'python manage.py initdb' I did not SUDO as the owners should all be pi:pi but to see if it did cause an issue I also did it with sudo. Only issue was an alchemy warning.

What do I need to do to reproduce this?

@weevis
Copy link
Collaborator

weevis commented Aug 12, 2018 via email

@vperez
Copy link
Contributor

vperez commented Aug 28, 2018

I published a pull request to fix this. Waiting for it to be approved.
#47

@f34rdotcom
Copy link
Contributor

This was merged. Thanks!

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

5 participants