Error when running solr demo
- Dominant language
- C++
- Stars
- 2.6k
- Forks
- 657
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for your work.
I tried command in `demo` until:
```
>>>$ cp ../tools/solr -rp solr_script
MacBook-Pro:demo usr$ cp ../tools/solr -rp solr_script
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
```
So I changed this step to:
```
cp -r ../tool/solr .
mv solr solr_script
```
Hope I'm not doing wrong.
Then I run:
```
>>>$ sh solr_script/anyq_solr.sh solr_script/sample_docs
faq-file trans done
appending output to nohup.out
solr[8900] start success!
Traceback (most recent call last):
File "solr_script/solr_api.py", line 18, in
import solr_tools
File "/Users/usr/Documents/QA/AnyQ/demo/solr_script/solr_tools.py", line 55
print _make_smart_hint(HINT_TYPE_REQ_ERR, errmsg)
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "solr_script/solr_api.py", line 18, in
import solr_tools
File "/Users/usr/Documents/QA/AnyQ/demo/solr_script/solr_tools.py", line 55
print _make_smart_hint(HINT_TYPE_REQ_ERR, errmsg)
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "solr_script/solr_api.py", line 18, in
import solr_tools
File "/Users/usr/Documents/QA/AnyQ/demo/solr_script/solr_tools.py", line 55
print _make_smart_hint(HINT_TYPE_REQ_ERR, errmsg)
^
SyntaxError: invalid syntax
upload file error
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with demo/solr_script/anyq_solr.sh and demo/solr_script/solr_tools.py at line 55, then inspect how solr_api.py imports that module. Run the documented demo command on the affected environment and confirm the SyntaxError is gone and file upload completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, shell
- Domain
- search
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100