Skip to content
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

error if sys.exit #150

Open
Niccolum opened this issue Jan 5, 2019 · 2 comments
Open

error if sys.exit #150

Niccolum opened this issue Jan 5, 2019 · 2 comments

Comments

@Niccolum
Copy link

Niccolum commented Jan 5, 2019

pipreqs /home/nicky/
ERROR: Failed on file: /home/nicky/projects/DjangoBI/files/tests/csv_load_tests.py
Traceback (most recent call last):
File "/usr/local/bin/pipreqs", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/pipreqs/pipreqs.py", line 396, in main
init(args)
File "/usr/local/lib/python3.5/dist-packages/pipreqs/pipreqs.py", line 341, in init
extra_ignore_dirs=extra_ignore_dirs)
File "/usr/local/lib/python3.5/dist-packages/pipreqs/pipreqs.py", line 91, in get_all_imports
raise exc
File "/usr/local/lib/python3.5/dist-packages/pipreqs/pipreqs.py", line 77, in get_all_imports
tree = ast.parse(contents)
File "/usr/lib/python3.5/ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "", line 75
def int_func(self):
^
IndentationError: expected an indented block

@lonngxiang
Copy link

same issue,how to fix?

@sabetAI
Copy link

sabetAI commented Jun 10, 2021

Also having this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants