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

WSGI deployment causes Internal error #42

Closed
hodduc opened this issue May 12, 2014 · 0 comments
Closed

WSGI deployment causes Internal error #42

hodduc opened this issue May 12, 2014 · 0 comments

Comments

@hodduc
Copy link

hodduc commented May 12, 2014

In EarthReader-Web 2.0, deploying by wsgi (as documented in README.rst) causes following error.

  File "/home/hodduc/.virtualenvs/earthreader/local/lib/python2.7/site-packages/earthreader/web/app.py", line 246, in feeds
    cursor = Cursor(category_id)
  File "/home/hodduc/.virtualenvs/earthreader/local/lib/python2.7/site-packages/earthreader/web/app.py", line 129, in __init__
    with get_stage() as stage: 
  File "/home/hodduc/.virtualenvs/earthreader/local/lib/python2.7/site-packages/earthreader/web/app.py", line 224, in get_stage
    repository = from_url(app.config['REPOSITORY'])
  File "/home/hodduc/.virtualenvs/earthreader/local/lib/python2.7/site-packages/libearth/repository.py", line 104, in from_url
    raise lookup_error
LookupError: cannot find the corresponding repository to :// scheme

When I attached file:// prefix to REPOSITORY argument, It works well.
IMO, get_stage() should automatically choose and add suitable prefix, or simply document should be changed. (First option is more consistent with CLI... maybe?)

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

1 participant