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 when both -c and -n options used #6

Open
kamichal opened this issue Aug 21, 2018 · 0 comments
Open

Error when both -c and -n options used #6

kamichal opened this issue Aug 21, 2018 · 0 comments

Comments

@kamichal
Copy link

kamichal commented Aug 21, 2018

I've just got something like that:

 findimports -dnc <the_package_dir>
Traceback (most recent call last):
  File "/usr/local/bin/findimports", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/findimports.py", line 832, in main
    getattr(g, opts.action)()
  File "/usr/local/lib/python2.7/dist-packages/findimports.py", line 703, in printImportedNames
    print("  %s" % "\n  ".join(imp.name for imp in module.imported_names))
AttributeError: 'ModuleCycle' object has no attribute 'imported_names'

Also effect of mixing -n with -d (without -c) is not described in help.
When used in following order: -dn then -d is ignored and with-nd then -d is ignored.

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

No branches or pull requests

2 participants