question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: LogNormalFitter, LogLogisticFitter, PiecewiseExponentialFitter

See original GitHub issue

I am having issues importing the following subpackages:

from lifelines import LogNormalFitter
from lifelines import LogLogisticFitter
from lifelines import PiecewiseExponentialFitter

The error message is:

ImportError: cannot import name 'LogNormalFitter' from 'lifelines' (C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\lifelines\__init__.py)

Any ideas what the problem might be?

Thank you, c.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cerenaaacommented, Mar 5, 2019

Hi Cameron, Just a quick update: i uninstalled/reinstalled anaconda and now everything works 😃

Hope this helps with others going through the same issue.

Ceren

On Tue, Mar 5, 2019 at 9:32 AM Ceren Altincekic ceren.altincekic@gmail.com wrote:

haha yes I did mean lifelines, it’s a typo.

Yes, I’m having Anaconda problems. I really don’t know how to fix these but I’ll follow your suggestions.

Thank you for your help, Ceren

On Tue, Mar 5, 2019 at 9:30 AM Cameron Davidson-Pilon < notifications@github.com> wrote:

Unfortunately, I can’t help you with conda problems (as it look like in this case). Something googling suggests fixes: https://stackoverflow.com/questions/50125472/issues-with-installing-python-libraries-on-windows-condahttperror-http-000-co

Also, you say:

conda update pipelines

Did you mean lifelines?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CamDavidsonPilon/lifelines/issues/660#issuecomment-469700557, or mute the thread https://github.com/notifications/unsubscribe-auth/AjZMEtFTN5cVieufJM7RUgYdgVlyIaz9ks5vTn-JgaJpZM4bdOPQ .

0reactions
WellJoeacommented, Jul 5, 2019

I have the same problem. pip install lifelines pip listPackage Version


autograd 1.2Bottleneck 1.2.1 cycler 0.10.0 entrypoints 0.3 flake8 3.7.7 future 0.17.1 joblib 0.13.2 kiwisolver 1.1.0 lifelines 0.22.0 matplotlib 3.1.1 mccabe 0.6.1 numpy 1.16.4 pandas 0.24.2 pip 19.0.3 pycodestyle 2.5.0 pyflakes 2.1.1 pyparsing 2.4.0 python-dateutil 2.8.0 pytz 2019.1 scikit-learn 0.21.2 scipy 1.2.1 setuptools 40.8.0 six 1.12.0

python lifelines.pyTraceback (most recent call last): File “lifelines.py”, line 3, in <module> from lifelines.fitters import ParametricRegressionFitter File “C:\Users\lenovo\Desktop\MLSurvival\test\lifelines.py”, line 3, in <module> from lifelines.fitters import ParametricRegressionFitter ModuleNotFoundError: No module named ‘lifelines.fitters’; ‘lifelines’ is not a package ModuleNotFoundError: No module named ‘lifelines.fitters’; ‘lifelines’ is not a package

Read more comments on GitHub >

github_iconTop Results From Across the Web

lifelines Documentation
Traditionally, survival analysis was developed to measure lifespans of individuals. An actuary or health professional.
Read more >
https://raw.githubusercontent.com/CamDavidsonPilon...
0.18.0 - 2019-01-31 - `LogNormalFitter` is a new univariate fitter you can use. ... fixes an import error with using `CoxTimeVaryingFitter` predict methods....
Read more >
Lifelines | PDF | Function (Mathematics) | Time - Scribd
LogNormalFitter, LogLogisticFitter, NelsonAalenFitter, PiecewiseExponentialFitter ... [4]: from lifelines import PiecewiseExponentialFitter.
Read more >
多条生存曲线的两两比较 - CSDN
... LogNormalFitter().fit(T, E, label='LogNormalFitter') llf = LogLogisticFitter().fit(T, E, label='LogLogisticFitter') pwf = PiecewiseExponentialFitter([40 ...
Read more >
Survival analysis in Python - PythonRepo
ImportError : LogNormalFitter, LogLogisticFitter, PiecewiseExponentialFitter. I am having issues importing the following subpackages:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found