casact / FASLR

Free Actuarial System for Loss Reserving
https://faslr.com
GNU General Public License v3.0
33 stars 11 forks source link

ModuleNotFoundError: No module named 'faslr' #95

Closed son1403 closed 1 year ago

son1403 commented 1 year ago

Hi,

I need help on running FASLR. After packages have been installed, I tried to run FASLR by executing the main.py file in the faslr directory: python -m faslr.main but the output is "No module named faslr.main"

Please help me on this step. Thank you so much

genedan commented 1 year ago

Thanks for testing this out.

The README is out of date, the main.py module has now been renamed to__main__.py, so the command to run the program is now:

python3 -m faslr

Let me know if this works for you. If you'd also like to become a contributor feel free to open up a pull request with the correction and you will be credited with the bug fix in the next release. Otherwise I'll push an update at the end of the week.

genedan commented 1 year ago

In addition to the README the other place which has the startup instruction that should be updated is this file:

https://github.com/casact/FASLR/blob/main/docs/user/starting/install.rst

son1403 commented 1 year ago

Collaborator

I tried to run this but it can't find module named _'faslr.version' because of your changes in setup.py, general.py and init.py yesterday. So i turn it back to the previous version and change numpy version back to 1.20.3 and now it works.

Thank you so much for your help.

Son Pham

genedan commented 1 year ago

I hadn't committed _version.py yet, but it's there now. Is it working?