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

Searx Python pool equests.py #69

Closed
yunohost-bot opened this issue Nov 3, 2015 · 5 comments
Closed

Searx Python pool equests.py #69

yunohost-bot opened this issue Nov 3, 2015 · 5 comments
Labels
👾 bug Something isn't working

Comments

@yunohost-bot
Copy link

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

@yunohost-bot
Copy link
Author

Properties Change

Author: jerome

@yunohost-bot
Copy link
Author

Original Redmine Comment

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.

@yunohost-bot
Copy link
Author

Original Redmine Comment

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...
pallets/jinja#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

@yunohost-bot
Copy link
Author

Original Redmine Comment

Author: Bram


Is it still relevant?

@yunohost-bot
Copy link
Author

Original Redmine Comment

Author: alexAubin

Status Changed: Rejected


Closing because too old / app changed a lot since then, probably fixed.

@yunohost-bot yunohost-bot added the 👾 bug Something isn't working label May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👾 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant