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 while running python-argcomplete-check-easy-install-script on python 3.3 #37

Closed
AvdN opened this issue Jul 27, 2013 · 0 comments
Closed

Comments

@AvdN
Copy link
Contributor

AvdN commented Jul 27, 2013

I was not able to get completions under python 3.3 for py.test. Tracked this down to
python-argcomplete-check-easy-install-script throwing an Error:

(3_3_2)anthon@athlon64:~/src/argcomplete$ scripts/python-argcomplete-check-easy-install-script $(which tox) --verbose
Traceback (most recent call last):
File "scripts/python-argcomplete-check-easy-install-script", line 41, in
filename = pkgutil.get_loader(module_name).filename
AttributeError: 'SourceFileLoader' object has no attribute 'filename'

In 2.7.5 get_loader returns an pkgutil.ImpLoader instance in 3.3.2 this is an _frozen_importlib.SourceFileLoader

Instead of .filename the method .get_filename() should be used, this also solves issue #34 !!

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

2 participants