mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-26 12:45:48 +03:00
[GH-ISSUE #777] MemoryError #491
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#491
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nobicycle on GitHub (Jun 8, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/777
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Deployment Method
pip/pipx
Version of Whoogle Search
v0.7.3
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
$ python -V
Python 3.10.4
@DUOLabs333 commented on GitHub (Jun 11, 2022):
What's your config?
@nobicycle commented on GitHub (Jun 13, 2022):
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 8754The systemd service is reporting :
[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
@nobicycle commented on GitHub (Jun 13, 2022):
I just upgraded to v0.7.4 and have the same error.
Also:
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)
@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.
@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:
@nobicycle commented on GitHub (Jun 17, 2022):
I noticed a later version.
https://test.pypi.org/project/whoogle-search/
Problem fixed.
Thank you.