Open cheral opened 8 years ago
Thanks for reporting the issue! For me, Differential Gene Expression works fine (no error). I think @markotoplak should also look at this (he's a pro on this add-on).
The imports are correct-ish. OWFeatureSelection is part of a python package. In general the file will not be run as a python script with the containing directory set as the current working dir (or anywhere on PYTHONPATH
). Therefor the imports need to be either explicitly relative (.utils
) or fully qualified (orangecontrib.bio.widgets3.utils
)
Note that the the preferred way to invoke a file (within a package) as a script is using the python -m command (i.e. python -m orangecontrib.bio.widgets3.OWFeatureSelection
)
@ales-erjavec The way you suggested should work as mentioned here But I am still facing the same problem
Try again:
pip install -e . # install orange-bio
cd / # move somewhere else
python -m orangecontrib.bio.widgets3.OWFeatureSelection
@ajdapretnar
In OWFeatureSelection.py
we don't need to do the relative path .utils because utils and python script are in the same directory.
I was getting an error while trying to import Similar to this one : http://stackoverflow.com/questions/16637428/relative-import-in-python-3-not-working
instead it should be
This needs to be solved before solving issue https://github.com/biolab/orange-bio/issues/71