Chaos icon indicating copy to clipboard operation
Chaos copied to clipboard

Help!!

Open spiderpro opened this issue 2 years ago • 2 comments

File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 480, in self.rate_box.valueChanged.connect(lambda: self.setValues('rate_box')) File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 533, in setValues self.rate.setValue( linear_interp(self.rateval, TypeError: setValue(self, int): argument 1 has unexpected type 'float' Traceback (most recent call last): File "C:\Users\user01\AppData\Local\Programs\Python\Python310\lib\idlelib\run.py", line 578, in runcode exec(code, self.locals) File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 746, in w = Widget(app) File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 575, in init self.controls.setValues() File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 560, in setValues self.setValues('rate_box') File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 533, in setValues self.rate.setValue( linear_interp(self.rateval, TypeError: setValue(self, int): argument 1 has unexpected type 'float'

spiderpro avatar Oct 24 '22 23:10 spiderpro

Hi I am getting the same error

makdrive3 avatar Nov 01 '22 09:11 makdrive3

File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 480, in self.rate_box.valueChanged.connect(lambda: self.setValues('rate_box')) File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 533, in setValues self.rate.setValue( linear_interp(self.rateval, TypeError: setValue(self, int): argument 1 has unexpected type 'float' Traceback (most recent call last): File "C:\Users\user01\AppData\Local\Programs\Python\Python310\lib\idlelib\run.py", line 578, in runcode exec(code, self.locals) File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 746, in w = Widget(app) File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 575, in init self.controls.setValues() File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 560, in setValues self.setValues('rate_box') File "C:\Users\user01\Desktop\Chaos-master\logistic_interactive.py", line 533, in setValues self.rate.setValue( linear_interp(self.rateval, TypeError: setValue(self, int): argument 1 has unexpected type 'float'

here is how i fixed it on every line where it throws am error. replace self.rate.setValue(linear_interp(self.rateval, 0, 3.99, 0, 99, lim=1, dec=2)) with

self.rate.setValue(int(linear_interp(self.rateval, 0, 3.99, 0, 99, lim=1, dec=2)))

makdrive3 avatar Nov 01 '22 09:11 makdrive3

Thanks for that makdrive3, this issue has been solved by Commit 426085e614231bb1950286200c2e800db17bc699

jonnyhyman avatar Feb 08 '23 19:02 jonnyhyman