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.

TypeError: __init__() got an unexpected keyword argument 'max_value'

See original GitHub issue

Followed the steps, had to install folium and progreessbar, using python 3.7 on an anaconda env

python geo_heatmap.py Standortverlauf.json
Loading data from Standortverlauf.json...
Traceback (most recent call last):
  File "geo_heatmap.py", line 111, in <module>
    generator.run(data_file, output_file)
  File "geo_heatmap.py", line 83, in run
    self.loadData(data_file)
  File "geo_heatmap.py", line 34, in loadData
    widgets=w) as pb:
TypeError: __init__() got an unexpected keyword argument 'max_value'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

14reactions
luka1199commented, Nov 25, 2019

Try to run:

pip uninstall progressbar
pip install progressbar2

You probably have progressbar installed, which uses maxval as an argument for __init__. Progressbar2 uses max_value.

0reactions
ShubhamJagtap2000commented, May 26, 2022

In Jupyter Lab, it is still showing the same error with progressbar and progressbar2, I tried after uninstalling progressbar

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - "How to Fix:TypeError __init() got an unexpected ...
ProgressBar(max_value=num_samples, widgets=SIMPLE_BAR) TypeError: __init__() got an unexpected keyword argument 'max_value``` I expected ...
Read more >
[Solved]-FloatField __init__ got an unexpected keyword ...
Coding example for the question FloatField __init__ got an unexpected keyword argument 'max_value'-django.
Read more >
TypeError: Field.__init__() got an unexpected keyword ...
TypeError : Field.__init__() got an unexpected keyword argument 'max_lenth' ... The error is telling you the exact issue; max_lenth is invalid. You ...
Read more >
“TypeError: __init__() got an unexpected keyword argument ...
from sklearn.preprocessing import LabelEncoder, OneHotEncoder from sklearn.compose import ColumnTransformer # Country column ct ...
Read more >
init__() got an unexpected keyword argument 'max_iter'?
TypeError : init() got an unexpected keyword argument 'max_iter'. I m running the linear regression code in Community edition. Google says reinstall --....
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