airscholar / AlphaTeam

Complex Network Analysis Using Machine Learning
5 stars 5 forks source link

cannot access local variable 'df' where it is not associated with a value [All centrality, when both multi and directed is off] #91

Closed tejas2292 closed 1 year ago

tejas2292 commented 1 year ago

Traceback (most recent call last): File "E:\Cranfield\Group Project\AlphaTeam\venv\Lib\site-packages\flask\app.py", line 2551, in call return self.wsgi_app(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Cranfield\Group Project\AlphaTeam\venv\Lib\site-packages\flask\app.py", line 2531, in wsgi_app response = self.handle_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Cranfield\Group Project\AlphaTeam\venv\Lib\site-packages\flask\app.py", line 2528, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Cranfield\Group Project\AlphaTeam\venv\Lib\site-packages\flask\app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Cranfield\Group Project\AlphaTeam\venv\Lib\site-packages\flask\app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Cranfield\Group Project\AlphaTeam\venv\Lib\site-packages\flask\app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Cranfield\Group Project\AlphaTeam\application\routes\centrality_routes.py", line 118, in centrality_all return render_template('centrality/centrality_all.html', example=df, tab=tab, method_name='All Centrality', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnboundLocalError: cannot access local variable 'df' where it is not associated with a value

sferez commented 1 year ago

Please double check, i tried with all datasets and could reproduced the error, pull the latest change on the dev branch on try again with providing more details about the error maybe

tejas2292 commented 1 year ago

yes its working now