Forums

OSError: [Errno 2] No such file or directory

Any Idea what's going on here ?

2014-08-31 17:10:42,377 :Traceback (most recent call last):

2014-08-31 17:10:42,393 : File "/bin/user_wsgi_wrapper.py", line 123, in call

2014-08-31 17:10:42,393 : self.error_log_file.logger.exception("Error running WSGI application")

2014-08-31 17:10:42,393 : File "/usr/lib/python2.7/logging/init.py", line 1183, in exception

2014-08-31 17:10:42,393 : self.error(msg, args, *kwargs)

2014-08-31 17:10:42,393 : File "/usr/lib/python2.7/logging/init.py", line 1176, in error

2014-08-31 17:10:42,394 : self._log(ERROR, msg, args, **kwargs)

2014-08-31 17:10:42,394 : File "/usr/lib/python2.7/logging/init.py", line 1268, in _log

2014-08-31 17:10:42,394 : record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)

2014-08-31 17:10:42,394 : File "/usr/lib/python2.7/logging/init.py", line 1242, in makeRecord

2014-08-31 17:10:42,394 : rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)

2014-08-31 17:10:42,394 : File "/usr/lib/python2.7/logging/init.py", line 284, in init

2014-08-31 17:10:42,395 : self.threadName = threading.current_thread().name

2014-08-31 17:10:42,395 : File "/usr/lib/python2.7/threading.py", line 1158, in currentThread

2014-08-31 17:10:42,395 : return _active[_get_ident()]

2014-08-31 17:10:42,395 : File "/bin/user_wsgi_wrapper.py", line 115, in call

2014-08-31 17:10:42,395 : app_iterator = self.app(environ, start_response)

2014-08-31 17:10:42,395 : File "/bin/user_wsgi_wrapper.py", line 129, in import_error_application

2014-08-31 17:10:42,395 : raise e

2014-08-31 17:10:42,395 :OSError: [Errno 2] No such file or directory

That's strange. I wonder if it could be some sort of import error. Does this help? https://www.pythonanywhere.com/wiki/DebuggingImportError

that's didn't help really , can you guys take a look at that ? i don't think it has to do with my App itself as i can run the App without any problem via console , but whenever i try to open this link i get that error http://satmuts.pythonanywhere.com/

I can see you have an app.run() in your Flask app. You should never use that, it breaks PythonAnywhere web apps. I've just made that more prominent in the help pages...

Try reloading your app and trying again?

I mean, try removing the app.run(), and then, if you still have problems, have another go at the debugging steps listed on the wiki page?