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
Cannot run flask on app engine #380
Comments
Which version of Flask is that? |
Thanks for the traceback. I'll fix it. |
latest one, i've just used http://f.souza.cc/2010/08/flying-with-flask-on-google-app-engine/ as guide. Here is project attached On 16 янв. 2012, at 14:57, Armin Ronacher wrote:
|
It's master. I see now that App Engine has a loader with a slightly different API. I have the fix, will apply shortly. |
Needs a test, which likely requires introducing a mock library.
@aksonov I pushed a fix to master. Could you try it? If it works, I'll add a test. If not, I'll have to get to know Google App Engine's import loader. We use topic branches for new development, but sometimes we don't catch Google App Engine issues until we are closer to a Flask release. You can always drop back to the latest Flask release where there are GAE issues with master. Thanks for reporting this! Ron |
Works well now, thanks! |
File "/Users/aksonov/PycharmProjects/issuengine/flask/app.py", line 289, in init
instance_path = self.auto_find_instance_path()
File "/Users/aksonov/PycharmProjects/issuengine/flask/app.py", line 577, in auto_find_instance_path
prefix, package_path = find_package(self.import_name)
File "/Users/aksonov/PycharmProjects/issuengine/flask/helpers.py", line 532, in find_package
filename = loader.archive
AttributeError: 'HardenedModulesHook' object has no attribute 'archive'
INFO 2012-01-16 12:52:07,534 dev_appserver.py:2832] "GET / HTTP/1.1" 500
The text was updated successfully, but these errors were encountered: