mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 12:15:50 +03:00
[GH-ISSUE #966] I downloaded the code and then it failed to run locally #596
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#596
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 @144358 on GitHub (Mar 1, 2023).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/966
Pleace ,Can you help me,I'm a Python noob
When using pip deployment or running routes.py file, I set 127.0.0.1:5000, I can't see the search box after opening the web page, I can't see the input content, but when I click search, it prompts :
“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.”
and python idle shell 3.10 show:
"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."
@benbusby commented on GitHub (Mar 1, 2023):
Hi! Do you see any other messages in the shell aside from the "WARNING:app:404" one? That warning message wouldn't be causing the Internal Server Error issue that you're seeing.
Also could you provide details about how you're running whoogle (i.e. what command you're using in the shell)? If you cloned the repo locally, you should be able to run "python3 -um app", but only after you've installed all dependencies via pip.
Edit: If you installed via pip, are you just running
whoogle-search? Or are you running a different command?@144358 commented on GitHub (Mar 1, 2023):
Thank you very much. Yes, I only run one program or software at a time. I only use idle to run py files, or use cmd to run after using pip to install whoogle. I haven't found much relevant content about whoogle-search on the network. Few, pip to install whoogle-search, and then run whoogle-search -- host127.0.1 -- port5000; If I run the app folder, routes.py directly, I will prompt an error. I search, modify some function names, and then rerun them. Then they will be displayed in the page after I click the page search box:
“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.”,
That is, there are no search results. Of course, if there is a detailed successful example for me to watch, such as a video or a picture, I think I will be very happy, and then I can solve the problem. I may need to read more tutorials, or find solutions to those problems, and then I estimate that I will have time to reply and research tomorrow
@144358 commented on GitHub (Mar 1, 2023):
My God, you are the author himself. I am honored to chat with you,hhh
@benbusby commented on GitHub (Mar 1, 2023):
In this scenario, the host and port aren't required since they're the default values. So you should just be able to run
whoogle-searchby itself and get the same result. In the example you pasted, the spacing of the various elements could cause problems (i.e. "-- host" should be "--host", "-- port" should be "--port"), and each value should have a space after the flag name (i.e. "--port 5000"). This might've only been an issue when writing your comment though.As for running the repo locally, can you confirm that you performed the following steps:
If so, can you try running the following command from the whoogle-search directory:
And then navigate to localhost:5000 in your browser. If you perform a search and see another error message, can you send the output from your terminal?
These steps should help me narrow down what the problem could be. I'm unfortunately unable to reproduce the issue on my side, so I'm doing the best I can without having access to your actual machine.
I'm happy to be chatting with you! Thanks for trying out my project!
@144358 commented on GitHub (Mar 2, 2023):
Ok, I'll try it out based on your comments ,and contact you if there's an update
@144358 commented on GitHub (Mar 2, 2023):
hhh,I'm also happy to talk to you, in my eyes, engineers are great and amazing jobs, making the rules and making everything run according to the rules;
now i go to try the new idea
@144358 commented on GitHub (Mar 2, 2023):
Sorry to bother you again
"""As for running the repository locally, can you confirm that you performed the following steps:
source venv/bin/activate"""
This line of code fails to run in cmd, prompt:
'source' is not an internal or external command, nor is it a runnable program or batch files.
Then the other lines are successful, and I need to implement a search page, do I need to run them all? Then I'm now working on how to solve the 'source' problem
I downloaded, "Anaconda3-2022.10-Windows-x86_64", and then conda got git, I think it may be that my computer is missing a lot of modules and causing the failure, tomorrow I will spend part of the time researching this problem, encounter problems that cannot be solved immediately, so that I can learn more new things
I want to know how to build a web page with search function (like: whoogle-search), through Python, implement the specific process, now my idea is :
1, use pip to install, and then run whoogle-search to add nothing;
2, is to run py file I run is routes.py; I think there was an error in my process
@benbusby commented on GitHub (Mar 6, 2023):
I apologize for the delayed reply, I got busy with contracting work and needed to focus on that for a bit.
Did you run the other steps aside from the
source venv/bin/activatestep (i.e.pip install -r requirements)? This isn't completely necessary, but helps to isolate packages required by Whoogle from the rest of your machine. Thepip install -r requirements.txtstep should install all modules that Whoogle needs in order to run successfully.@144358 commented on GitHub (Mar 10, 2023):
Thank you for replying to me when you are busy, I followed the steps to run until "source venv/bin/activate"," source" does not exist, but I have pip downloaded, "pip install -r requirements.txt" can run, I am not in a hurry about this, now research this matter, it is more like a hobby of mine
@benbusby commented on GitHub (Mar 14, 2023):
Can you walk me through step by step and include the console output for each command? Once you've installed all dependencies, you should be able to run
python3 -um appand then Whoogle will be available on localhost:5000. You might not see anything in the console, but it will be running in the background.@benbusby commented on GitHub (Mar 14, 2023):
Also, in the meantime, I'm going to convert this issue into a discussion since I think this is a configuration problem rather than a bug with Whoogle.