Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Error when running: No module named 'size' #24

Open
joshblum opened this issue Apr 2, 2016 · 7 comments
Open

Error when running: No module named 'size' #24

joshblum opened this issue Apr 2, 2016 · 7 comments

Comments

@joshblum
Copy link

joshblum commented Apr 2, 2016

Any ideas?

$ django-lint .
Traceback (most recent call last):
  File "/user/ubuntu/virtualenv/bin/django-lint", line 11, in <module>
    sys.exit(main())
  File "/user/ubuntu/virtualenv/lib/python3.4/site-packages/DjangoLint/script.py", line 133, in main
    AstCheckers.register(linter)
  File "/user/ubuntu/virtualenv/lib/python3.4/site-packages/DjangoLint/AstCheckers/__init__.py", line 22, in register
    from size import SizeChecker
ImportError: No module named 'size'
@lamby
Copy link
Owner

lamby commented Apr 2, 2016

Can you retry under python 2?

@joshblum
Copy link
Author

joshblum commented Apr 2, 2016

That works, is it possible to change the imports to be python3 friendly?

@lamby
Copy link
Owner

lamby commented Apr 2, 2016

is it possible to change the imports to be python3 friendly?

Eh, not really. Or rather probably could fix that, but it would imply that both py2 and py3 are supported.

@edevil
Copy link

edevil commented May 8, 2018

So this project is not compatible with Python 3?

@lamby
Copy link
Owner

lamby commented May 8, 2018

I have not had the time to migrate this package to Python 3 yet, no. Sorry.

@PetrDlouhy
Copy link
Contributor

The import errors are easy, but then I bumped into astng errors like:

logilab/astng/rebuilder.py", line 140, in visit
    visit_method = getattr(self, visit_name)
AttributeError: 'TreeRebuilder3k' object has no attribute 'visit_nameconstant'

or

logilab/astng/rebuilder.py", line 281, in visit_callfunc
    if node.starargs is not None:
AttributeError: 'Call' object has no attribute 'starargs'

Which I don't know, what they are about.

@shiplu
Copy link

shiplu commented Jul 29, 2019

Python2 is dying in 5 months.

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

No branches or pull requests

5 participants