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.

AttributeError: 'BetaGeoFitter' object has no attribute 'summary'/'param_' respectively

See original GitHub issue

It appears that for some reason certain attributes are not being “loaded” (new to python…likely the incorrect jargon). When making a new LTV notebook and following the quick-start guide I can successfully call .fit and print BetaGeoFitter. After that the docs reference having access to the attributes summary and param_ however when attempting to call BetaGeoFitter.summary and BetaGeoFitter.param_ I get AttributeError: 'BetaGeoFitter' object has no attribute 'summary' / 'param_' respectively.

Running dir(BetaGeoFitter) gives me the following:


of which summay and param_ are missing. looking at the attributes present, I have no issues calling anything shown here.

I don’t know if this is an issue with but potentially having a local call to def summary(self) could alleviate the issue?? Like I said… I’m pretty new to Python so I could be way off.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

ObiWanFoleycommented, Jan 12, 2020

installed 3 separate versions of notebook and replicated the packages and versions as shown above and had no issues with running the full library. I will keep an eye on this and reopen the issue if it happens again. I will be sure to better outline the versions and libraries installed instantly if I run into this again.

ObiWanFoleycommented, Jan 11, 2020

I nuked the env that I was running this in and created a fresh evn with python==3.6.9. I installed lifetimes==0.11.1 and followed the Quickstart Tutorial in the terminal line by line and had no issues. Was able to run bgf.summary and all of the new attributes with no issues. I then installed JN using pip install notebook, again in the virtual environment, and ran through the same Quickstart Guide line by line. Again…no issues. Able to run all utilities and call all attributes with no errors. When I check my current environment vs the previous using pip list I found that I was using a version of notebook that I had previously installed using pip install --user notebook because I didn’t see any of the dependencies installed in the previous pip list.

I think my next step is to look at the list above and install each library line by line into my virtual environment and see which one breaks it.

All that to say it looks as though this is not a version issue or an issue with the library itself, but could be related to a package that I had installed and is potentially from a dependency installed in a recent install of pip install --user notebook.

Given the popularity of Jupyter Notebook there should likely be a note stating a minimum notebook version recommended which I will be glad to supply. If you don’t think this is necessary then please feel free to close the comment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve AttributeError: 'BetaGeoFitter' object has no ...
AttributeError : 'BetaGeoFitter' object has no attribute 'summary'. Also, there's no 'summary' when checking dir(BetaGeoFitter).
Read more >
AttributeError: 'function' object has no attribute 'summary'
I am running linear regression and I get the attributeError for 'summary'. I am working on windows OS ...
Read more >
Why am I getting AttributeError: Object has no attribute?
PYTHON : Why am I getting AttributeError : Object has no attribute ? [ Gift : Animated Search Engine ...
Read more >
Python AttributeError — What is it and how do you fix it?
AttributeError : '***' object has no attribute '***'What is an AttributeError in Python? What can you do to fix it? When does it...
Read more >
[Solved] AttributeError: 'module' object has no attribute
Click here to subscribe -▻Instagram ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found