Coder Social home page Coder Social logo

Comments (7)

fergyfresh avatar fergyfresh commented on June 13, 2024

Still having this issue? I just tried deploying it again and didn't have an issue.

What version of python are you using?

from geemusic.

fergyfresh avatar fergyfresh commented on June 13, 2024

Closing for lack of follow up.

from geemusic.

stridger avatar stridger commented on June 13, 2024

I am having the same issue, I'm afraid. Tried various things like different Python version etc, but cannot seem to fix it :(

from geemusic.

fergyfresh avatar fergyfresh commented on June 13, 2024

"/srv/alexa/lib/python3.5/site-packages/jinja2/compiler.py" I'm using python3.6 and the tests run fine for me. Try with python3.6

from geemusic.

stridger avatar stridger commented on June 13, 2024

I tried python 3.5, 3.6 and 3.7. Always the same error. Interestingly I get the dependency inconsistency issues below when installing the requirements in the virtual environment. However even if I fix those, the error remains the same.

ERROR: flask-ask 0.9.8 has requirement aniso8601==1.2.0, but you'll have aniso8601 1.2.1 which is incompatible.
ERROR: flask-ask 0.9.8 has requirement Flask==0.12.1, but you'll have flask 0.12.2 which is incompatible.
ERROR: flask-ask 0.9.8 has requirement pyOpenSSL==17.0.0, but you'll have pyopenssl 17.2.0 which is incompatible.
ERROR: flask-ask 0.9.8 has requirement PyYAML==3.12, but you'll have pyyaml 3.13 which is incompatible.
ERROR: flask-ask 0.9.8 has requirement six==1.11.0, but you'll have six 1.10.0 which is incompatible.
ERROR: zappa 0.45.1 has requirement PyYAML==3.12, but you'll have pyyaml 3.13 which is incompatible.
ERROR: zappa 0.45.1 has requirement six>=1.11.0, but you'll have six 1.10.0 which is incompatible.
ERROR: zappa 0.45.1 has requirement Werkzeug==0.12, but you'll have werkzeug 0.12.2 which is incompatible.

from geemusic.

stridger avatar stridger commented on June 13, 2024

Here is my Traceback:

22:03:35 web.1 | Traceback (most recent call last):
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask/app.py", line 1997, in call
22:03:35 web.1 | return self.wsgi_app(environ, start_response)
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_app
22:03:35 web.1 | response = self.handle_exception(e)
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exception
22:03:35 web.1 | reraise(exc_type, exc_value, tb)
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
22:03:35 web.1 | raise value
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
22:03:35 web.1 | response = self.full_dispatch_request()
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
22:03:35 web.1 | rv = self.handle_user_exception(e)
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
22:03:35 web.1 | reraise(exc_type, exc_value, tb)
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
22:03:35 web.1 | raise value
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
22:03:35 web.1 | rv = self.dispatch_request()
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
22:03:35 web.1 | return self.view_functionsrule.endpoint
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask_ask/core.py", line 767, in _flask_view_func
22:03:35 web.1 | result = self._map_intent_to_view_func(self.request.intent)()
22:03:35 web.1 | File "/local/www/secure/geemusic/geemusic/intents/selection.py", line 122, in play_song
22:03:35 web.1 | return statement(render_template("no_song"))
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/flask/templating.py", line 133, in render_template
22:03:35 web.1 | return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/jinja2/environment.py", line 869, in get_or_select_template
22:03:35 web.1 | return self.get_template(template_name_or_list, parent, globals)
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
22:03:35 web.1 | return self._load_template(name, self.make_globals(globals))
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
22:03:35 web.1 | template = self.loader.load(self, name, globals)
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/jinja2/loaders.py", line 125, in load
22:03:35 web.1 | code = environment.compile(source, name, filename)
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/jinja2/environment.py", line 581, in compile
22:03:35 web.1 | defer_init=defer_init)
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/jinja2/environment.py", line 543, in _generate
22:03:35 web.1 | optimized=self.optimized)
22:03:35 web.1 | File "/local/www/secure/geemusic/.venv/lib/python3.6/site-packages/jinja2/compiler.py", line 78, in generate
22:03:35 web.1 | raise TypeError('Can't compile non template nodes')
22:03:35 web.1 | TypeError: Can't compile non template nodes

from geemusic.

stridger avatar stridger commented on June 13, 2024

OK, got it. The LANGUAGE environment variable by default on Ubuntu is en_US or en_GB etc, the app however expects just "en" or "fr" etc. So setting this correct makes it find the templates and makes it work.

from geemusic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.