Closed yunohost-bot closed 6 years ago
Author: jerome
Author: Anonymous
SOLUTION::
http://docs.python-requests.org/en/latest/user/install/#install cd /opt/yunohost/searx/bin/ sudo curl -OL https://github.com/kennethreitz/requests/zipball/master sudo mv master master.zip sudo unzip master.zip cd kenneth* sudo /opt/yunohost/searx/bin/python setup.py install sudo service uwsgi restart Searx loads! SUCCESS
ALL STEPS TO GET SOLUTION::
Searx "uWSGI Error Python application not found" sudo cat /var/log/uwsgi/app/searx.log sudo /opt/yunohost/searx/bin/pip install pytz sudo service uwsgi restart AttributeError: 'module' object has no attribute 'adapters' Reported bug with dev.yunohost.org issue tracker sudo /opt/yunohost/searx/bin/pip install requests sudo service uwsgi restart Researching... https://pypi.python.org/pypi/requests
python (2.7.3) import requests requests.version '0.12.1' requests.file '/usr/lib/python2.7/dist-packages/requests/init.pyc'
sudo /opt/yunohost/searx/bin/python (2.7.3) import requests requests.file 'requests/init.py' requests.version '2.8.1'
http://docs.python-requests.org/en/latest/user/install/#install cd /opt/yunohost/searx/bin/ sudo curl -OL https://github.com/kennethreitz/requests/zipball/master sudo mv master master.zip sudo unzip master.zip cd kenneth* sudo /opt/yunohost/searx/bin/python setup.py install sudo service uwsgi restart Searx loads! SUCCESS
NEW PROBLEM::
Search criteria "test"
RESULT::
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
Author: Anonymous
SOLUTION::
sudo /opt/yunohost/searx/bin/pip install --upgrade jinja2
ALL STEPS TO GET TO SOLUTION::
Search 'test' Internal Server Error sudo cat /var/log/uwsgi/app/searx.log https://www.newbserve.xyz/zerobin/?f72a5b04f865fba9#v2ANeDEhx5HkujBVmfhXgYG3xCRpQBe0Ta2RwstmQSI=
TemplateAssertionError no filer named 'urlencode' Researching... http://stackoverflow.com/questions/28092415/flask-security-templateassertionerror-no-filter-named-urlencode
sudo /opt/yunohost/searx/bin/python import jinja2 jinja2.version '2.6' jinja2.file '/usr/lib/python2.7/dist-packages/jinja2/init.pyc'
python import jinja2 jinja2.version '2.6' jinja2.file '/usr/lib/python2.7/dist-packages/jinja2/init.pyc'
"Same results... OK"
Researching... https://github.com/mitsuhiko/jinja2/issues/17 (Mar 8, 2011) https://github.com/mitsuhiko/jinja2/releases (2.7 @ Mar 20, 2013) Researching... https://pypi.python.org/pypi/Jinja2 http://jinja.pocoo.org/docs/dev/templates/ Search page for 'urlencode' Find "New in version 2.7" 'urlencode' back in jinja sudo /opt/yunohost/searx/bin/pip install jinja2 sudo service uwsgi restart (just in case) sudo /opt/yunohost/searx/bin/pip install --upgrade jinja2 sudo service uwsgi restart (just in case) Searx searches! SUCCESS
Author: Bram
Is it still relevant?
Author: alexAubin
Status Changed: Rejected
Closing because too old / app changed a lot since then, probably fixed.
Original Redmine Issue: 69
Author Name: Anonymous
Searx is not running properly.
sudo cat /var/log/uwsgi/app/searx.log
/opt/yunohost/searx/searx/poolrequests.py line 6 in
class HTTPAdapterWithConnParams(requests.adapters.HTTPAdapter):
AttributeError: 'module' object has no attribute 'adapters'
sudo cat /var/log/uwsgi/app/searx.log sudo /opt/yunohost/searx/bin/pip install -r /opt/yunohost/searx/requirements.txt sudo service uwsgi restart Same error
Most of these commands were help from jappix on yunohost.org