phenopy icon indicating copy to clipboard operation
phenopy copied to clipboard

Errors (and solutions) with anaconda on Windows 10

Open data-dude92 opened this issue 5 years ago • 1 comments

Hello,

Thank you for the package.

Two issues when trying to use this in anaconda on Windows 10:

  • the pip package is outdated and does not (yet) have the score_term_sets_basic function mentioned in the readme as an example. Of course cloning from git solves this.
  • this line config_directory = os.path.join(os.environ.get('HOME'), f'.{project}')

will give an error and should be changed to

config_directory = os.path.join(os.environ.get('CONDA_PREFIX'), f'.{__project__}')

Hope this helps other people!

Many thanks

data-dude92 avatar Jun 18 '20 09:06 data-dude92

Hello @data-dude92, thank you for using phenopy! I just cut a new release on PyPI, so it has the score_term_sets_basic method of the scorer class now. This is an important functionality for users who want to use phenopy as a module in their own code (or a notebook). I'm glad you were able to find a workaround for the anaconda issue on windows. We can try to incorporate some logic to config.py to detect a user's OS platform in an upcoming release.

arvkevi avatar Jun 18 '20 13:06 arvkevi