'GUnicorn Implementation Causes Python Error
Just throwing this out there because I'm an idiot and I don't know what this means. It seems like GUnicorn is causing Python to throw this error when the init tries to load EE. Hoping someone can at least point me on the right track to solving this problem.
SyntaxError: invalid syntax
[2022-05-16 23:01:39 +0000] [12] [INFO] Worker exiting (pid: 12)
[2022-05-16 23:01:39 +0000] [13] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/home/appuser/.local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 586, in spawn_worker
worker.init_process()
File "/home/appuser/.local/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 203, in init_process
super(GeventWorker, self).init_process()
File "/home/appuser/.local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 135, in init_process
self.load_wsgi()
File "/home/appuser/.local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
self.wsgi = self.app.wsgi()
File "/home/appuser/.local/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/home/appuser/.local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/home/appuser/.local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/home/appuser/.local/lib/python2.7/site-packages/gunicorn/util.py", line 350, in import_app
__import__(module)
File "/home/appuser/.local/lib/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
result = _import(*args, **kwargs)
File "/home/appuser/app/tiles/__init__.py", line 4, in <module>
import ee
File "/home/appuser/.local/lib/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
result = _import(*args, **kwargs)
File "/home/appuser/.local/lib/python2.7/site-packages/ee/__init__.py", line 17, in <module>
from . import batch
File "/home/appuser/.local/lib/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
result = _import(*args, **kwargs)
File "/home/appuser/.local/lib/python2.7/site-packages/ee/batch.py", line 17, in <module>
from . import data
File "/home/appuser/.local/lib/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
result = _import(*args, **kwargs)
File "/home/appuser/.local/lib/python2.7/site-packages/ee/data.py", line 611
lambda x, y, z: f'{_tile_base_url}/{version}/{name}/tiles/{z}/{x}/{y}')
^
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
