bndr / pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.
Apache License 2.0
6.38k stars 388 forks source link

SyntaxError: invalid syntax #296

Closed jaitra1264 closed 2 years ago

jaitra1264 commented 2 years ago

Traceback (most recent call last): File "/home/jaitra1264/.local/bin/pipreqs", line 8, in sys.exit(main()) File "/home/jaitra1264/.local/lib/python3.8/site-packages/pipreqs/pipreqs.py", line 470, in main init(args) File "/home/jaitra1264/.local/lib/python3.8/site-packages/pipreqs/pipreqs.py", line 406, in init candidates = get_all_imports(input_path, File "/home/jaitra1264/.local/lib/python3.8/site-packages/pipreqs/pipreqs.py", line 138, in get_all_imports raise exc File "/home/jaitra1264/.local/lib/python3.8/site-packages/pipreqs/pipreqs.py", line 124, in get_all_imports tree = ast.parse(contents) File "/usr/lib/python3.8/ast.py", line 47, in parse return compile(source, filename, mode, flags, File "", line 12 <<<<<<< HEAD ^ SyntaxError: invalid syntax