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

Cannot run flask on app engine #380

Closed
aksonov opened this issue Jan 16, 2012 · 6 comments
Closed

Cannot run flask on app engine #380

aksonov opened this issue Jan 16, 2012 · 6 comments
Assignees

Comments

@aksonov
Copy link

aksonov commented Jan 16, 2012

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

@mitsuhiko
Copy link
Contributor

Which version of Flask is that?

@rduplain
Copy link
Contributor

Thanks for the traceback. I'll fix it.

@aksonov
Copy link
Author

aksonov commented Jan 16, 2012

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:

Which version of Flask is that?


Reply to this email directly or view it on GitHub:
#380 (comment)

@rduplain
Copy link
Contributor

It's master. I see now that App Engine has a loader with a slightly different API. I have the fix, will apply shortly.

rduplain added a commit that referenced this issue Jan 16, 2012
Needs a test, which likely requires introducing a mock library.
@rduplain
Copy link
Contributor

@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

@aksonov
Copy link
Author

aksonov commented Jan 17, 2012

Works well now, thanks!

@ghost ghost assigned rduplain Jan 17, 2012
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants