[GH-ISSUE #777] MemoryError #491

Closed
opened 2026-02-25 20:35:53 +03:00 by kerem · 6 comments
Owner

Originally created by @nobicycle on GitHub (Jun 8, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/777

Describe the bug

MemoryError
MemoryError

Traceback (most recent call last)
File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 2095, in __call__
return self.wsgi_app(environ, start_response)
File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/werkzeug/middleware/proxy_fix.py", line 187, in __call__
return self.app(environ, start_response)
File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 2080, in wsgi_app
response = self.handle_exception(e)
File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/app/routes.py", line 79, in decorated
_ = pickle.load(session_file)
MemoryError
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

dump() shows all variables in the frame
dump(obj) dumps all that's known about the object

To Reproduce
Steps to reproduce the behavior:

  1. Start Server.'
  2. Enter a search term in the browser (in my case '"food"

Deployment Method
pip/pipx

Version of Whoogle Search
v0.7.3

Desktop (please complete the following information):

  • OS: [e.g. iOS] Manjaro Linux
  • Browser [e.g. chrome, safari] Vivaldi
  • Versionv5.2.2623.46 (Stable

Additional context
Add any other context about the problem here.
$ python -V
Python 3.10.4

Originally created by @nobicycle on GitHub (Jun 8, 2022). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/777 **Describe the bug** ``` MemoryError MemoryError Traceback (most recent call last) File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 2095, in __call__ return self.wsgi_app(environ, start_response) File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/werkzeug/middleware/proxy_fix.py", line 187, in __call__ return self.app(environ, start_response) File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 2080, in wsgi_app response = self.handle_exception(e) File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 2077, in wsgi_app response = self.full_dispatch_request() File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request rv = self.dispatch_request() File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/app/routes.py", line 79, in decorated _ = pickle.load(session_file) MemoryError The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side. You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection: dump() shows all variables in the frame dump(obj) dumps all that's known about the object ``` **To Reproduce** Steps to reproduce the behavior: 1. Start Server.' 2. Enter a search term in the browser (in my case '"food" **Deployment Method** pip/pipx **Version of Whoogle Search** v0.7.3 **Desktop (please complete the following information):** - OS: [e.g. iOS] Manjaro Linux - Browser [e.g. chrome, safari] Vivaldi - Versionv5.2.2623.46 (Stable **Additional context** Add any other context about the problem here. $ python -V Python 3.10.4
kerem 2026-02-25 20:35:53 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@DUOLabs333 commented on GitHub (Jun 11, 2022):

What's your config?

<!-- gh-comment-id:1153008003 --> @DUOLabs333 commented on GitHub (Jun 11, 2022): What's your config?
Author
Owner

@nobicycle commented on GitHub (Jun 13, 2022):

What's your config?

None apart from a port change. I am using vanilla pip install. In systemd service (copied in full below) I use
python bin/whoogle-search --host 127.0.0.1 --port 8754

The systemd service is reporting :

$ systemctl status whoogle
● whoogle.service - Whoogle
     Loaded: loaded (/usr/lib/systemd/system/whoogle.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2022-06-14 07:32:40 WITA; 14min ago
   Main PID: 102474 (python)
      Tasks: 5 (limit: 4511)
     Memory: 71.1M
        CPU: 1.575s
     CGroup: /system.slice/whoogle.service
             └─ 102474 python bin/whoogle-search --host 127.0.0.1 --port 8754

Jun 14 07:46:43 tower whoogle[102474]:   File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request
Jun 14 07:46:43 tower whoogle[102474]:     rv = self.handle_user_exception(e)
Jun 14 07:46:43 tower whoogle[102474]:   File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request
Jun 14 07:46:43 tower whoogle[102474]:     rv = self.dispatch_request()
Jun 14 07:46:43 tower whoogle[102474]:   File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request
Jun 14 07:46:43 tower whoogle[102474]:     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
Jun 14 07:46:43 tower whoogle[102474]:   File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/app/routes.py", line 79, in decorated
Jun 14 07:46:43 tower whoogle[102474]:     _ = pickle.load(session_file)
Jun 14 07:46:43 tower whoogle[102474]: MemoryError
Jun 14 07:46:44 tower whoogle[102474]: WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

[Unit]
Description=Whoogle

[Service]
Type=simple
User=user
ExecStart=/bin/bash -c "cd '/home/user/Development/Python/whoogle-search' && . bin/activate && python bin/whoogle-search --host 127.0.0.1 --port 8754"
ExecReload=/bin/kill -HUP
Restart=always
RestartSec=3
SyslogIdentifier=whoogle

[Install]
WantedBy=multi-user.target

<!-- gh-comment-id:1154557448 --> @nobicycle commented on GitHub (Jun 13, 2022): > What's your config? None apart from a port change. I am using vanilla pip install. In systemd service (copied in full below) I use `python bin/whoogle-search --host 127.0.0.1 --port 8754` The systemd service is reporting : ``` $ systemctl status whoogle ● whoogle.service - Whoogle Loaded: loaded (/usr/lib/systemd/system/whoogle.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2022-06-14 07:32:40 WITA; 14min ago Main PID: 102474 (python) Tasks: 5 (limit: 4511) Memory: 71.1M CPU: 1.575s CGroup: /system.slice/whoogle.service └─ 102474 python bin/whoogle-search --host 127.0.0.1 --port 8754 Jun 14 07:46:43 tower whoogle[102474]: File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request Jun 14 07:46:43 tower whoogle[102474]: rv = self.handle_user_exception(e) Jun 14 07:46:43 tower whoogle[102474]: File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request Jun 14 07:46:43 tower whoogle[102474]: rv = self.dispatch_request() Jun 14 07:46:43 tower whoogle[102474]: File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request Jun 14 07:46:43 tower whoogle[102474]: return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) Jun 14 07:46:43 tower whoogle[102474]: File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/app/routes.py", line 79, in decorated Jun 14 07:46:43 tower whoogle[102474]: _ = pickle.load(session_file) Jun 14 07:46:43 tower whoogle[102474]: MemoryError Jun 14 07:46:44 tower whoogle[102474]: WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. ``` [Unit] Description=Whoogle [Service] Type=simple User=user ExecStart=/bin/bash -c "cd '/home/user/Development/Python/whoogle-search' && . bin/activate && python bin/whoogle-search --host 127.0.0.1 --port 8754" ExecReload=/bin/kill -HUP Restart=always RestartSec=3 SyslogIdentifier=whoogle [Install] WantedBy=multi-user.target
Author
Owner

@nobicycle commented on GitHub (Jun 13, 2022):

I just upgraded to v0.7.4 and have the same error.
Also:

$ python -V
Python 3.10.4


I tried pipx and it led to python errors (below).

_$ pipx run --spec git+https://github.com/benbusby/whoogle-search.git whoogle-search

Traceback (most recent call last):
File "/usr/bin/pipx", line 33, in
sys.exit(load_entry_point('pipx==0.16.4', 'console_scripts', 'pipx')())
File "/usr/lib/python3.10/site-packages/pipx/main.py", line 765, in cli
return run_pipx_command(parsed_pipx_args)
File "/usr/lib/python3.10/site-packages/pipx/main.py", line 179, in run_pipx_command
commands.run(
File "/usr/lib/python3.10/site-packages/pipx/commands/run.py", line 102, in run
_download_and_run(
File "/usr/lib/python3.10/site-packages/pipx/commands/run.py", line 134, in _download_and_run
package_name = package_name_from_spec(
File "/usr/lib/python3.10/site-packages/pipx/commands/common.py", line 333, in package_name_from_spec
package_name = venv.install_package_no_deps(
File "/usr/lib/python3.10/site-packages/pipx/venv.py", line 268, in install_package_no_deps
old_package_set = self.list_installed_packages()
File "/usr/lib/python3.10/site-packages/pipx/venv.py", line 348, in list_installed_packages
pip_list = json.loads(cmd_run.stdout.strip())
File "/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[user@tower ~]$ ^C
[user@tower ~]$ pipx install git+https://github.com/benbusby/whoogle-search.git

Traceback (most recent call last):
File "/usr/bin/pipx", line 33, in
sys.exit(load_entry_point('pipx==0.16.4', 'console_scripts', 'pipx')())
File "/usr/lib/python3.10/site-packages/pipx/main.py", line 765, in cli
return run_pipx_command(parsed_pipx_args)
File "/usr/lib/python3.10/site-packages/pipx/main.py", line 193, in run_pipx_command
return commands.install(
File "/usr/lib/python3.10/site-packages/pipx/commands/install.py", line 30, in install
package_name = package_name_from_spec(
File "/usr/lib/python3.10/site-packages/pipx/commands/common.py", line 333, in package_name_from_spec
package_name = venv.install_package_no_deps(
File "/usr/lib/python3.10/site-packages/pipx/venv.py", line 268, in install_package_no_deps
old_package_set = self.list_installed_packages()
File "/usr/lib/python3.10/site-packages/pipx/venv.py", line 348, in list_installed_packages
pip_list = json.loads(cmd_run.stdout.strip())
File "/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

<!-- gh-comment-id:1154559002 --> @nobicycle commented on GitHub (Jun 13, 2022): I just upgraded to v0.7.4 and have the same error. Also: ``` $ python -V Python 3.10.4 ``` I tried pipx and it led to python errors (below). _$ pipx run --spec git+https://github.com/benbusby/whoogle-search.git whoogle-search Traceback (most recent call last): File "/usr/bin/pipx", line 33, in <module> sys.exit(load_entry_point('pipx==0.16.4', 'console_scripts', 'pipx')()) File "/usr/lib/python3.10/site-packages/pipx/main.py", line 765, in cli return run_pipx_command(parsed_pipx_args) File "/usr/lib/python3.10/site-packages/pipx/main.py", line 179, in run_pipx_command commands.run( File "/usr/lib/python3.10/site-packages/pipx/commands/run.py", line 102, in run _download_and_run( File "/usr/lib/python3.10/site-packages/pipx/commands/run.py", line 134, in _download_and_run package_name = package_name_from_spec( File "/usr/lib/python3.10/site-packages/pipx/commands/common.py", line 333, in package_name_from_spec package_name = venv.install_package_no_deps( File "/usr/lib/python3.10/site-packages/pipx/venv.py", line 268, in install_package_no_deps old_package_set = self.list_installed_packages() File "/usr/lib/python3.10/site-packages/pipx/venv.py", line 348, in list_installed_packages pip_list = json.loads(cmd_run.stdout.strip()) File "/usr/lib/python3.10/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) [user@tower ~]$ ^C [user@tower ~]$ pipx install git+https://github.com/benbusby/whoogle-search.git Traceback (most recent call last): File "/usr/bin/pipx", line 33, in <module> sys.exit(load_entry_point('pipx==0.16.4', 'console_scripts', 'pipx')()) File "/usr/lib/python3.10/site-packages/pipx/main.py", line 765, in cli return run_pipx_command(parsed_pipx_args) File "/usr/lib/python3.10/site-packages/pipx/main.py", line 193, in run_pipx_command return commands.install( File "/usr/lib/python3.10/site-packages/pipx/commands/install.py", line 30, in install package_name = package_name_from_spec( File "/usr/lib/python3.10/site-packages/pipx/commands/common.py", line 333, in package_name_from_spec package_name = venv.install_package_no_deps( File "/usr/lib/python3.10/site-packages/pipx/venv.py", line 268, in install_package_no_deps old_package_set = self.list_installed_packages() File "/usr/lib/python3.10/site-packages/pipx/venv.py", line 348, in list_installed_packages pip_list = json.loads(cmd_run.stdout.strip()) File "/usr/lib/python3.10/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)_
Author
Owner

@benbusby commented on GitHub (Jun 16, 2022):

This should be fixed now, I'll try to release a new pip version soon. In the meantime you can use the TestPyPi version of the package to validate the fix.

<!-- gh-comment-id:1157967239 --> @benbusby commented on GitHub (Jun 16, 2022): This should be fixed now, I'll try to release a new pip version soon. In the meantime you can use the [TestPyPi version](https://test.pypi.org/project/whoogle-search/0.7.4.dev1655403246/) of the package to validate the fix.
Author
Owner

@nobicycle commented on GitHub (Jun 17, 2022):

Here's the install:
(whoogle-search) [user@tower whoogle-search]$ pip install -i https://test.pypi.org/simple/ whoogle-search==0.7.4.dev1655403246
Looking in indexes: https://test.pypi.org/simple/
Collecting whoogle-search==0.7.4.dev1655403246
Downloading https://test-files.pythonhosted.org/packages/ad/8d/94084524293b2a01fd5d49724030393af34d707608ad32be11e8059dcbbb/whoogle_search-0.7.4.dev1655403246-py3-none-any.whl (322 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 322.6/322.6 KB 6.5 kB/s eta 0:00:00
Requirement already satisfied: Flask-Session in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (0.4.0)
Requirement already satisfied: defusedxml in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (0.7.1)
Requirement already satisfied: Flask in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (2.1.2)
Requirement already satisfied: stem in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (1.8.0)
Requirement already satisfied: beautifulsoup4 in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (4.11.1)
Requirement already satisfied: waitress in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (2.1.2)
Requirement already satisfied: cssutils in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (2.4.0)
Requirement already satisfied: cryptography in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (37.0.2)
Requirement already satisfied: requests in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (2.27.1)
Requirement already satisfied: python-dotenv in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (0.20.0)
Requirement already satisfied: soupsieve>1.2 in ./lib/python3.10/site-packages (from beautifulsoup4->whoogle-search==0.7.4.dev1655403246) (2.3.2.post1)
Requirement already satisfied: cffi>=1.12 in ./lib/python3.10/site-packages (from cryptography->whoogle-search==0.7.4.dev1655403246) (1.15.0)
Requirement already satisfied: click>=8.0 in ./lib/python3.10/site-packages (from Flask->whoogle-search==0.7.4.dev1655403246) (8.1.3)
Requirement already satisfied: Werkzeug>=2.0 in ./lib/python3.10/site-packages (from Flask->whoogle-search==0.7.4.dev1655403246) (2.1.2)
Requirement already satisfied: Jinja2>=3.0 in ./lib/python3.10/site-packages (from Flask->whoogle-search==0.7.4.dev1655403246) (3.1.2)
Requirement already satisfied: itsdangerous>=2.0 in ./lib/python3.10/site-packages (from Flask->whoogle-search==0.7.4.dev1655403246) (2.1.2)
Requirement already satisfied: cachelib in ./lib/python3.10/site-packages (from Flask-Session->whoogle-search==0.7.4.dev1655403246) (0.7.0)
Requirement already satisfied: certifi>=2017.4.17 in ./lib/python3.10/site-packages (from requests->whoogle-search==0.7.4.dev1655403246) (2022.5.18.1)
Requirement already satisfied: idna<4,>=2.5 in ./lib/python3.10/site-packages (from requests->whoogle-search==0.7.4.dev1655403246) (3.3)
Requirement already satisfied: charset-normalizer~=2.0.0 in ./lib/python3.10/site-packages (from requests->whoogle-search==0.7.4.dev1655403246) (2.0.12)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./lib/python3.10/site-packages (from requests->whoogle-search==0.7.4.dev1655403246) (1.26.9)
Requirement already satisfied: pycparser in ./lib/python3.10/site-packages (from cffi>=1.12->cryptography->whoogle-search==0.7.4.dev1655403246) (2.21)
Requirement already satisfied: MarkupSafe>=2.0 in ./lib/python3.10/site-packages (from Jinja2>=3.0->Flask->whoogle-search==0.7.4.dev1655403246) (2.1.1)
Installing collected packages: whoogle-search
Attempting uninstall: whoogle-search
Found existing installation: whoogle-search 0.7.4
Uninstalling whoogle-search-0.7.4:
Successfully uninstalled whoogle-search-0.7.4
Successfully installed whoogle-search-0.7.4.dev1655403246
WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
You should consider upgrading via the '/home/user/Development/Python/whoogle-search/bin/python -m pip install --upgrade pip' command.

The browser message is:
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.

Systemd says:

(whoogle-search) [user@tower whoogle-search]$ systemctl status whoogle
● whoogle.service - Whoogle
     Loaded: loaded (/usr/lib/systemd/system/whoogle.service; enabled; vendor preset: disabled)
     Active: active (running) since Fri 2022-06-17 19:42:59 WITA; 2h 52min ago
   Main PID: 645 (python)
      Tasks: 5 (limit: 4511)
     Memory: 62.3M
        CPU: 2.379s
     CGroup: /system.slice/whoogle.service
             └─ 645 python bin/whoogle-search --host 127.0.0.1 --port 8754

Jun 17 22:35:02 tower whoogle[645]:   File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request
Jun 17 22:35:02 tower whoogle[645]:     rv = self.handle_user_exception(e)
Jun 17 22:35:02 tower whoogle[645]:   File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request
Jun 17 22:35:02 tower whoogle[645]:     rv = self.dispatch_request()
Jun 17 22:35:02 tower whoogle[645]:   File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request
Jun 17 22:35:02 tower whoogle[645]:     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
Jun 17 22:35:02 tower whoogle[645]:   File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/app/routes.py", line 79, in decorated
Jun 17 22:35:02 tower whoogle[645]:     if os.path.getsize(file_path) > app.config['MAX_SESSION_SIZE']:
Jun 17 22:35:02 tower whoogle[645]: MemoryError
Jun 17 22:35:03 tower whoogle[645]: WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
(whoogle-search) [user@tower whoogle-search]$ 

<!-- gh-comment-id:1158935480 --> @nobicycle commented on GitHub (Jun 17, 2022): Here's the install: _(whoogle-search) [user@tower whoogle-search]$ pip install -i https://test.pypi.org/simple/ whoogle-search==0.7.4.dev1655403246 Looking in indexes: https://test.pypi.org/simple/ Collecting whoogle-search==0.7.4.dev1655403246 Downloading https://test-files.pythonhosted.org/packages/ad/8d/94084524293b2a01fd5d49724030393af34d707608ad32be11e8059dcbbb/whoogle_search-0.7.4.dev1655403246-py3-none-any.whl (322 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 322.6/322.6 KB 6.5 kB/s eta 0:00:00 Requirement already satisfied: Flask-Session in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (0.4.0) Requirement already satisfied: defusedxml in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (0.7.1) Requirement already satisfied: Flask in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (2.1.2) Requirement already satisfied: stem in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (1.8.0) Requirement already satisfied: beautifulsoup4 in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (4.11.1) Requirement already satisfied: waitress in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (2.1.2) Requirement already satisfied: cssutils in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (2.4.0) Requirement already satisfied: cryptography in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (37.0.2) Requirement already satisfied: requests in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (2.27.1) Requirement already satisfied: python-dotenv in ./lib/python3.10/site-packages (from whoogle-search==0.7.4.dev1655403246) (0.20.0) Requirement already satisfied: soupsieve>1.2 in ./lib/python3.10/site-packages (from beautifulsoup4->whoogle-search==0.7.4.dev1655403246) (2.3.2.post1) Requirement already satisfied: cffi>=1.12 in ./lib/python3.10/site-packages (from cryptography->whoogle-search==0.7.4.dev1655403246) (1.15.0) Requirement already satisfied: click>=8.0 in ./lib/python3.10/site-packages (from Flask->whoogle-search==0.7.4.dev1655403246) (8.1.3) Requirement already satisfied: Werkzeug>=2.0 in ./lib/python3.10/site-packages (from Flask->whoogle-search==0.7.4.dev1655403246) (2.1.2) Requirement already satisfied: Jinja2>=3.0 in ./lib/python3.10/site-packages (from Flask->whoogle-search==0.7.4.dev1655403246) (3.1.2) Requirement already satisfied: itsdangerous>=2.0 in ./lib/python3.10/site-packages (from Flask->whoogle-search==0.7.4.dev1655403246) (2.1.2) Requirement already satisfied: cachelib in ./lib/python3.10/site-packages (from Flask-Session->whoogle-search==0.7.4.dev1655403246) (0.7.0) Requirement already satisfied: certifi>=2017.4.17 in ./lib/python3.10/site-packages (from requests->whoogle-search==0.7.4.dev1655403246) (2022.5.18.1) Requirement already satisfied: idna<4,>=2.5 in ./lib/python3.10/site-packages (from requests->whoogle-search==0.7.4.dev1655403246) (3.3) Requirement already satisfied: charset-normalizer~=2.0.0 in ./lib/python3.10/site-packages (from requests->whoogle-search==0.7.4.dev1655403246) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./lib/python3.10/site-packages (from requests->whoogle-search==0.7.4.dev1655403246) (1.26.9) Requirement already satisfied: pycparser in ./lib/python3.10/site-packages (from cffi>=1.12->cryptography->whoogle-search==0.7.4.dev1655403246) (2.21) Requirement already satisfied: MarkupSafe>=2.0 in ./lib/python3.10/site-packages (from Jinja2>=3.0->Flask->whoogle-search==0.7.4.dev1655403246) (2.1.1) Installing collected packages: whoogle-search Attempting uninstall: whoogle-search Found existing installation: whoogle-search 0.7.4 Uninstalling whoogle-search-0.7.4: Successfully uninstalled whoogle-search-0.7.4 Successfully installed whoogle-search-0.7.4.dev1655403246 WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available. You should consider upgrading via the '/home/user/Development/Python/whoogle-search/bin/python -m pip install --upgrade pip' command._ The browser message is: _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._ Systemd says: ``` (whoogle-search) [user@tower whoogle-search]$ systemctl status whoogle ● whoogle.service - Whoogle Loaded: loaded (/usr/lib/systemd/system/whoogle.service; enabled; vendor preset: disabled) Active: active (running) since Fri 2022-06-17 19:42:59 WITA; 2h 52min ago Main PID: 645 (python) Tasks: 5 (limit: 4511) Memory: 62.3M CPU: 2.379s CGroup: /system.slice/whoogle.service └─ 645 python bin/whoogle-search --host 127.0.0.1 --port 8754 Jun 17 22:35:02 tower whoogle[645]: File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request Jun 17 22:35:02 tower whoogle[645]: rv = self.handle_user_exception(e) Jun 17 22:35:02 tower whoogle[645]: File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request Jun 17 22:35:02 tower whoogle[645]: rv = self.dispatch_request() Jun 17 22:35:02 tower whoogle[645]: File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request Jun 17 22:35:02 tower whoogle[645]: return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) Jun 17 22:35:02 tower whoogle[645]: File "/home/user/Development/Python/whoogle-search/lib/python3.10/site-packages/app/routes.py", line 79, in decorated Jun 17 22:35:02 tower whoogle[645]: if os.path.getsize(file_path) > app.config['MAX_SESSION_SIZE']: Jun 17 22:35:02 tower whoogle[645]: MemoryError Jun 17 22:35:03 tower whoogle[645]: WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. (whoogle-search) [user@tower whoogle-search]$ ```
Author
Owner

@nobicycle commented on GitHub (Jun 17, 2022):

I noticed a later version.
https://test.pypi.org/project/whoogle-search/

Problem fixed.

Thank you.

<!-- gh-comment-id:1158951704 --> @nobicycle commented on GitHub (Jun 17, 2022): I noticed a later version. https://test.pypi.org/project/whoogle-search/ Problem fixed. Thank you.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#491
No description provided.