mikekestemont / pystyl

Python package for stylometry
Other
56 stars 13 forks source link

requirements.txt for PY3? #7

Open todd-cook opened 5 years ago

todd-cook commented 5 years ago

Hi, could you share a pip list requirements, it seems that the ete3 library has changed; I'm wondering what version worked.

executing this: from pystyl.analysis import distance_matrix, hierarchical_clustering

yields: pystyl/pystyl/clustering/dendrogram.py in 21 from ete2 import Tree, faces, AttrFace, TreeStyle, NodeStyle, TextFace, Face 22 elif sys.version_info[0] == 3: ---> 23 from ete3 import Tree, faces, AttrFace, TreeStyle, NodeStyle, TextFace, Face

Based on: http://etetoolkit.org/docs/latest/reference/reference_treeview.html#nodestyle it looks like some of the imports are no longer top level.

I don't mind making a PR to fix this, but I'd like to know what version of that library worked, so I can assess and not tamper with more than necessary, or so that I know how deep the rabbit hole goes. Thanks! Todd (using PY 3.68, fwiw)

Lord-V15 commented 3 years ago

Status on this ? Would like to get this working.