gsi-upm / senpy

A sentiment and emotion analysis server in Python
http://senpy.gsi.upm.es
Apache License 2.0
71 stars 25 forks source link

Error when running on Windows #43

Closed viju2008 closed 11 months ago

viju2008 commented 6 years ago

I am trying to run senpy on Windows machine. I am getting the following error .

The Plugins are not getting loaded

Please guide me

ERROR:flask.app:Exception on /api/plugins/default/ [GET]
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\_compat.py", line 35, in reraise
    raise value
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-p
ackages\senpy\blueprints.py", line 109, in decorated_function
    if 'parameters' in response and not params['with_parameters']:
TypeError: argument of type 'NoneType' is not iterable
ERROR:flask.app:Exception on /api/plugins/default/ [GET]
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\_compat.py", line 35, in reraise
    raise value
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\fla
sk\app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-p
ackages\senpy\blueprints.py", line 109, in decorated_function
    if 'parameters' in response and not params['with_parameters']:
TypeError: argument of type 'NoneType' is not iterable
balkian commented 11 months ago

I am afraid we are unable to provide Windows support at this moment. Our recommendation is to run a linux environment through WSL (Windows Subsystem for Linux), on a VM or in the cloud.