ersilia-os / ersilia

The Ersilia Model Hub, a repository of AI/ML models for infectious and neglected disease research.
https://ersilia.io
GNU General Public License v3.0
203 stars 131 forks source link

🐛 Bug: Fail to initialize on windows #453

Closed leoank closed 1 year ago

leoank commented 1 year ago

Describe the bug.

The library fails to initialize with an error at line 4 of the root __init__.py file. It complains that the _version object doesn't exist.

Describe the steps to reproduce the behavior

Try to initialize the library on windows.

Expected behavior.

The library should have initialized without any errors.

Screenshots.

No response

Operating environment

Windows

Additional context

No response

EstherIdabor commented 1 year ago

Hi @leoank your bug is not very descriptive as I cant understand what failed to initialize. if its the ersilia model you are not supposed to be running it on on a windows without WSL(windows subsystem Linux) installed,

leoank commented 1 year ago

Hey @EstherIdabor, I am trying to use ersilia as a library in my own project. Whenever I try to import my own library that in turn imports ersilia. It results in an error. The error points to the line 4 of the root __init__.py of ersilia. It can be easily solved by wrapping line 4 in a try block.

EstherIdabor commented 1 year ago

Ok. @GemmaTuron will better understand

GemmaTuron commented 1 year ago

Hi @leoank

We haven't run into this error before when importing ersilia. Can you open a PR? Thanks :)

GemmaTuron commented 1 year ago

Hi @leoank !

Checking the status of this! If it is solved, please link the PR that solved it or explain what did you do to solve it and close the issue. Thanks!