anselal / antminer-monitor

Cryptocurrency ASIC mining hardware monitor using a simple web interface
GNU General Public License v3.0
228 stars 145 forks source link

add miner device error #174

Closed vahsha closed 3 years ago

vahsha commented 4 years ago

i have this error after add one miner by ip Traceback (most recent call last): File "/home/vahshar/.local/lib/python2.7/site-packages/flask/app.py", line 2463, in call return self.wsgi_app(environ, start_response) File "/home/vahshar/.local/lib/python2.7/site-packages/flask/app.py", line 2449, in wsgi_app response = self.handle_exception(e) File "/home/vahshar/.local/lib/python2.7/site-packages/flask/app.py", line 1866, in handle_exception reraise(exc_type, exc_value, tb) File "/home/vahshar/.local/lib/python2.7/site-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "/home/vahshar/.local/lib/python2.7/site-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/vahshar/.local/lib/python2.7/site-packages/flask/app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "/home/vahshar/.local/lib/python2.7/site-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/home/vahshar/.local/lib/python2.7/site-packages/flask/app.py", line 1935, in dispatch_request return self.view_functionsrule.endpoint File "/home/vahshar/.local/lib/python2.7/site-packages/flask_login/utils.py", line 272, in decorated_view return func(*args, **kwargs) File "/home/vahshar/antminer-monitor-master/antminermonitor/blueprints/asicminer/views/antminer.py", line 42, in miners obj = getattr(sys.modules[module], cls)(miner) File "/home/vahshar/antminer-monitor-master/antminermonitor/blueprints/asicminer/asic_antminer.py", line 13, in init super(ASIC_ANTMINER, self).init(miner) TypeError: super() argument 1 must be type, not classobj

vahsha commented 4 years ago

http://s12.picofile.com/file/8404183918/Screenshot_from_2020_07_28_15_37_18.png

anselal commented 4 years ago

thank you for using my software.

I see you are using python 2.7. Can you try python 3.5 or 3.6 and higher and let me know if you still get the same error ?

vahsha commented 4 years ago

vahshar@vahshar-HP-EliteBook-8440p:~/Downloads$ python -V Python 2.7.12

anselal commented 4 years ago

Please try Python 3

vahsha commented 4 years ago

thanks dear. now is good working