<Python 3.8 Virtual Environment> ERROR: Failed on file: ./getVectors.py
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
Development Environment
- Mac OS 10.15.3 Cattalina
- Python 3.8 (Virtual Environment)
I've ran code on the shell as following:
```shell
pipenv shell
pip install pipreqs
pipreqs /Users/noopy/_forks/About_Prof.
```
Which returned error message as following:
```shell
ERROR: Failed on file: ./getVectors.py
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/pipreqs", line 8, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipreqs/pipreqs.py", line 470, in main
init(args)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipreqs/pipreqs.py", line 406, in init
candidates = get_all_imports(input_path,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipreqs/pipreqs.py", line 138, in get_all_imports
raise exc
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipreqs/pipreqs.py", line 124, in get_all_imports
tree = ast.parse(contents)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ast.py", line 47, in parse
return compile(source, filename, mode, flags,
File "", line 9
return totalvector = np.vstack((docvec,wordvector))
```
Contributor guide
Research direction
Reproduce the reported command against the shown getVectors.py file and inspect pipreqs.py, especially get_all_imports around the ast.parse call. The issue does not define a desired behavior or acceptance criteria, so first determine whether the expected outcome is improved handling or reporting of this syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100