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

Cannot run demo2: AttributeError: module 'ete3' has no attribute 'NodeStyle' #2

Closed
xduquesne opened this issue Jul 11, 2019 · 1 comment

Comments

@xduquesne
Copy link
Owner

>python demo2.py https://news.ycombinator.com
Downloading URL... done (1.9253312s)
Extracting items... done (7.6343593s)
Drawing HTML tree
Traceback (most recent call last):
  File "demo2.py", line 58, in <module>
    draw_tree(ie.page_tree, ie.labels)
  File "demo2.py", line 36, in draw_tree
    ns = ete3.NodeStyle()
AttributeError: module 'ete3' has no attribute 'NodeStyle'

Demo1 works but demo2 doesn't

@xduquesne
Copy link
Owner Author

Solution found in:

Qt was not installed.
Solved with:

conda install pyqt

It installed PyQt5 (Python3 Only). Use PyQt4 for Python 2.

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

1 participant