etetoolkit / ete

Python package for building, comparing, annotating, manipulating and visualising trees. It provides a comprehensive API and a collection of command line tools, including utilities to work with the NCBI taxonomy tree.
http://etetoolkit.org
GNU General Public License v3.0
768 stars 216 forks source link

Cannot import TreeStyle, NodeStyle, faces from latest version in pip? #89

Closed tlnagy closed 9 years ago

tlnagy commented 9 years ago

I cannot import TreeStyle, NodeStyle, CircleFace etc using from ete2 import TreeStyle, NodeStyle, CircleFace. It was working fine using the latest source code, but I switched to using the latest version on pip (v2.2.1072) and now I cannot import several of these very important modules.

Steps to reproduce. Create new virtual environment. Run pip installl ete2 and start the python interpreter and try from ete2 import TreeStyle. The following error message will be displayed: "ImportError: cannot import name TreeStyle"

Thanks in advance.

jhcepas commented 9 years ago

Hi Tamas,

I am not able to reproduce this problem. I tried a fresh install of ete2-2.2.1072 and everything seems to be running ok. Have you checked that treeview dependencies are avaialble in your virtual env? In example:

$ python -c 'import PyQt4'

thanks jaime

Jaime Huerta-Cepas, Ph.D. Structural and Computational Biology Unit EMBL Heidelberg Meyerhofstraße 1, 69117 Heidelberg, Germany

http://www.bork.embl.de/~huerta/

2014-09-14 2:15 GMT+02:00 Tamas Nagy notifications@github.com:

I cannot import TreeStyle, NodeStyle, CircleFace etc using from ete2 import TreeStyle, NodeStyle, CircleFace. It was working fine using the latest source code, but I switched to using the latest version on pip (v2.2.1072) and now I cannot import several of these very important modules.

Steps to reproduce. Create new virtual environment. Run pip installl ete2 and start the python interpreter and try from ete2 import TreeStyle. The following error message will be displayed: "ImportError: cannot import name TreeStyle"

Thanks in advance.

— Reply to this email directly or view it on GitHub https://github.com/jhcepas/ete/issues/89.

tlnagy commented 9 years ago

Hi Jaime,

It seems that you are correct...I must've missed the warning message during the installation process. Running conda install pyqt did the trick.

Thanks!