lyft / xiblint

A tool for linting storyboard and xib files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot run xiblint

bpoplauschi opened this issue · comments

Hi there,

I would like to try xiblint (sounds like a nice tool), but I could not get it to run.

I keep getting this error:

Traceback (most recent call last):
  File "/Users/bogdanp/.pyenv/versions/3.6.10/bin/xiblint", line 8, in <module>
    sys.exit(main())
  File "/Users/bogdanp/.pyenv/versions/3.6.10/lib/python3.6/site-packages/xiblint/__main__.py", line 27, in main
    from patch_element_tree import patch_element_tree
ModuleNotFoundError: No module named 'patch_element_tree'

I tried running it with python 2, 3.6 and even 3.7, same error.
I tried installing via pip or even cloning locally the git repo + python setup.py install, same error.

Can you assist me, please?

My current environment:

MacOS Catalina 10.15.4
Xcode 11.3.1
pyenv 1.2.18
python 3.6.10
pip 20.0.2
xiblint 0.9.14

I see the patch_element_tree.py is there on disk, but apparently it's not getting imported.

ls ~/.pyenv/versions/3.6.10/lib/python3.6/site-packages/xiblint/
__init__.py
__main__.py
__pycache__
config.py
patch_element_tree.py
rules
xibcontext.py
xibutils.py
xmlutils.py

I'm getting the same result on Python 3.7 (pip3 install xiblint), but Python 2.7 (pip2 install xiblint) works.

Will look into this.

Appreciate it @ikonst - seems like you fixed the issue :)

I confirm the latest version (0.9.15) works with Python 3.6. Closing