Hi! I`m trying to add a little bit of machine learning to my app and working with Orange to do this. I have app on Flask, Python 2.7 and try to import Orange 2.7.8 (which is preinstalled on pythonanywhere), but get an error after
import Orange
2015-03-18 09:41:33,559 :Traceback (most recent call last):
2015-03-18 09:41:33,559 : File "/bin/user_wsgi_wrapper.py", line 130, in __call__
2015-03-18 09:41:33,560 : self.error_log_file.logger.exception("Error running WSGI application")
2015-03-18 09:41:33,560 : File "/usr/lib/python2.7/logging/__init__.py", line 1185, in exception
2015-03-18 09:41:33,560 : self.error(msg, *args, **kwargs)
2015-03-18 09:41:33,560 : File "/usr/lib/python2.7/logging/__init__.py", line 1178, in error
2015-03-18 09:41:33,560 : self._log(ERROR, msg, args, **kwargs)
2015-03-18 09:41:33,560 : File "/usr/lib/python2.7/logging/__init__.py", line 1270, in _log
2015-03-18 09:41:33,561 : record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2015-03-18 09:41:33,561 : File "/usr/lib/python2.7/logging/__init__.py", line 1244, in makeRecord
2015-03-18 09:41:33,561 : rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2015-03-18 09:41:33,561 : File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2015-03-18 09:41:33,561 : self.threadName = threading.current_thread().name
2015-03-18 09:41:33,561 : File "/usr/lib/python2.7/threading.py", line 1160, in currentThread
2015-03-18 09:41:33,562 : return _active[_get_ident()]
2015-03-18 09:41:33,562 : File "/bin/user_wsgi_wrapper.py", line 122, in __call__
2015-03-18 09:41:33,562 : app_iterator = self.app(environ, start_response)
2015-03-18 09:41:33,562 : File "/bin/user_wsgi_wrapper.py", line 136, in import_error_application
2015-03-18 09:41:33,562 : raise e
2015-03-18 09:41:33,562 :ValueError: Attempted relative import in non-package
Has no problem with Orange on my local machine and no problem with importing another libs. Could someone throw some light on this situation?