mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 20:25:51 +03:00
[GH-ISSUE #1062] [search error] FileNotFoundError: [Errno 2] No such file or directory: 'app/static/widgets/calculator.html' / v0.83 #649
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#649
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 @un99known99 on GitHub (Sep 2, 2023).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/1062
Hi,
got strange error while performing a search in 0.8.3:
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/home/pi/.local/lib/python3.9/site-packages/app/routes.py", line 122, in decorated
return f(*args, **kwargs)
File "/home/pi/.local/lib/python3.9/site-packages/app/routes.py", line 57, in decorated
return f(*args, **kwargs)
File "/home/pi/.local/lib/python3.9/site-packages/app/routes.py", line 359, in search
response = add_calculator_card(html_soup)
File "/home/pi/.local/lib/python3.9/site-packages/app/utils/widgets.py", line 51, in add_calculator_card
widget_file = open('app/static/widgets/calculator.html')
FileNotFoundError: [Errno 2] No such file or directory: 'app/static/widgets/calculator.html'
but:
pi@pihole:[~/.local/lib/python3.9/site-packages/app/static/widgets] $ ll
total 20
-rw-r--r-- 1 pi pi 8519 Aug 22 07:14 calculator.html
drwxr-xr-x 2 pi pi 4096 Aug 22 07:14 .
drwxr-xr-x 10 pi pi 4096 Aug 22 07:14 ..
pi@pihole:[~/.local/lib/python3.9/site-packages/app/static/widgets]
@Moist-Cat commented on GitHub (Sep 9, 2023):
I'm able to reproduce the error starting whoogle in a different directory (parent).
Command:
PYTHONPATH=whoogle-search python -m appSearch query: calculator 1 + 2