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

pip install - can't import, like issue #89 #315

Closed
sjspielman opened this issue Nov 27, 2017 · 3 comments
Closed

pip install - can't import, like issue #89 #315

sjspielman opened this issue Nov 27, 2017 · 3 comments

Comments

@sjspielman
Copy link

Hi,

I am receiving Import Errors with a fresh install of ete3 from pip (11/27/2017), such that many ete3 modules cannot be loaded. It seems similar to the long-closed issue #89. Perhaps this is related to a pip update I see happened on 11/3?

For example, see:

Stephanies-MacBook-Pro:~ sjspielman$ sudo pip install ete3
Collecting ete3
Installing collected packages: ete3
Successfully installed ete3-3.1.1
Stephanies-MacBook-Pro:~ sjspielman$ python try_ete.py 
Traceback (most recent call last):
  File "try_ete.py", line 1, in <module>
    from ete3 import Tree, faces, AttrFace, TreeStyle, NodeStyle
ImportError: cannot import name faces

In above, only Tree can be imported, rest throw the error when I have tried on their own.

Thanks in advance!
-Stephanie

@jhcepas
Copy link
Member

jhcepas commented Nov 28, 2017

most probably you are missing qt/pyqt. Can you do from PyQt5 import QtGui? (or PyQt4...)

@sjspielman
Copy link
Author

I see, thanks. I have installed PyQt5 and it works now! I wasn't able to get this working yesterday because I didn't realize that PtQt5 was python3-compatible only, and hence cannot be retrieved with pip, just pip3. Perhaps this is common knowledge, but if not, may be useful for know for any ete users in python2. Indeed, I had this issue because I installed ete3 w/ pip, which simply bailed on getting the PyQt dependency due to versioning.

Thanks again!

@jhcepas jhcepas closed this as completed Nov 29, 2017
@jhcepas
Copy link
Member

jhcepas commented Nov 29, 2017

thanks for the feedback, Stephanie

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