uym2 / TreeShrink

Implementation of the TreeShrink problem
https://uym2.github.io/TreeShrink/
GNU General Public License v3.0
36 stars 11 forks source link

module not found #5

Closed bruceamurphy closed 4 years ago

bruceamurphy commented 5 years ago

Installing as suggested in the documentation leads to moduleNotFoundError unless TreeShrink/treeshrink directory is added to the PYTHONPATH:

Traceback (most recent call last): File "/rds/general/user/******/home/software/TreeShrink/run_treeshrink.py", line 243, in <module> main() File "/rds/general/user/******/home/software/TreeShrink/run_treeshrink.py", line 6, in main from treeshrink.optimal_filter_lib import TreeFilter File "/rds/general/user/******/home/software/TreeShrink/treeshrink/optimal_filter_lib.py", line 10, in <module> from Tree_extend import Centroid_Tree, MPR_Tree ModuleNotFoundError: No module named 'Tree_extend'

Should the relevant code in optimal_filter_lib.py perhaps be:

from treeshrink.Tree_extend import Centroid_Tree, MPR_Tree

rather than:

from Tree_extend import Centroid_Tree, MPR_Tree

smirarab commented 5 years ago

Sorry, the updates seem to have been pushed prematurely. Can you check the current version? Note the changes in the README file, including the updated installation guide.