Click here to Skip to main content
15,901,722 members

Comments by Ranjeetha Ravindran Virdi (Top 4 by date)

Ranjeetha Ravindran Virdi 19-Oct-23 1:34am View    
UnboundLocalError: cannot access local variable 'state' where it is not associated with a value
Ranjeetha Ravindran Virdi 18-Oct-23 8:07am View    
Thats the complete error message.
Ranjeetha Ravindran Virdi 18-Oct-23 8:07am View    
File "C:\Users\kulpr\anaconda3\Lib\site-packages\flask\app.py", line 2548, in __call__

return self.wsgi_app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\kulpr\anaconda3\Lib\site-packages\flask\app.py", line 2528, in wsgi_app

response = self.handle_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\kulpr\anaconda3\Lib\site-packages\flask\app.py", line 2525, in wsgi_app

response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\kulpr\anaconda3\Lib\site-packages\flask\app.py", line 1822, in full_dispatch_request

rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\kulpr\anaconda3\Lib\site-packages\flask\app.py", line 1820, in full_dispatch_request

rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\kulpr\anaconda3\Lib\site-packages\flask\app.py", line 1796, in dispatch_request

return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\kulpr\Documents\Ranjeetha\projects\property_prediction\code\server\server.py", line 65, in predict_rent

'estimated_rent': util.get_estimated_rent(state,category, bathrooms, bedrooms, fee, pets_allowed, square_feet, cityname, with_storage, with_parking, with_gym, with_pool, with_woodfloors, with_patio, with_clubhouse, with_internet, with_gated)
UnboundLocalError: cannot access local variable 'state' where it is not associated with a value
Ranjeetha Ravindran Virdi 18-Oct-23 5:11am View    
Thanks for pointing that to me.I have updated my question. Can you please help me now?