-
Notifications
You must be signed in to change notification settings - Fork 178
Docs: Added missing setup instructions for Python Chatbot. #217
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,6 +103,40 @@ The application will automatically reload when you make changes to the source co | |
| npx hardhat ignition deploy ./ignition/modules/<ContractModule> --network <Network> --verify | ||
| ``` | ||
|
|
||
| ## Chatbot Backend | ||
|
|
||
| 1. **Navigate to the Chatbot Directory**: | ||
|
|
||
| ```bash | ||
| cd chatbot | ||
| ``` | ||
|
|
||
| 2. **Create and Activate Virtual Environment**: | ||
|
|
||
| **For Windows** | ||
| ```bash | ||
| python -m venv venv | ||
| source venv/Scripts/activate | ||
| ``` | ||
|
|
||
| **For Mac/Linux**: | ||
| ```bash | ||
| python3 -m venv venv | ||
| source venv/bin/activate | ||
| ``` | ||
|
|
||
| 3. **Install Dependencies**: | ||
|
|
||
| ```bash | ||
| pip install -r requirements.txt | ||
| ``` | ||
|
|
||
| 4. **Run the Application**: | ||
|
|
||
| ```bash | ||
| python app.py | ||
| ``` | ||
|
Comment on lines
+106
to
+138
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, check the structure of the repository
git ls-files | head -20Repository: AOSSIE-Org/Agora-Blockchain Length of output: 931 🏁 Script executed: # Read the full README.md to see all content
wc -l README.mdRepository: AOSSIE-Org/Agora-Blockchain Length of output: 84 🏁 Script executed: # Read the entire README to check for troubleshooting sections
cat -n README.mdRepository: AOSSIE-Org/Agora-Blockchain Length of output: 10502 🏁 Script executed: # Check the PR template to understand structure
cat -n .github/PULL_REQUEST_TEMPLATE.mdRepository: AOSSIE-Org/Agora-Blockchain Length of output: 790 🏁 Script executed: # Search for any troubleshooting content in the entire repo
rg -i "troubleshooting|python.*path|windows.*python" --max-count=20Repository: AOSSIE-Org/Agora-Blockchain Length of output: 442 Fix the Windows Python activation command and add the missing troubleshooting note. The troubleshooting note for Windows Python path issues is missing from the README. Additionally, the Windows activation command on line 119 is incorrect—it uses 🤖 Prompt for AI Agents |
||
|
|
||
| ## Frontend | ||
|
|
||
| 1. **Navigate to the Client Directory**: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix Windows virtual environment activation command.
The Windows activation command uses Unix syntax which will fail on Windows systems. Windows uses backslash paths and requires either batch or PowerShell syntax, not the
sourcecommand.🔎 Proposed fix for Windows venv activation
📝 Committable suggestion
🤖 Prompt for AI Agents