Hello,
I am releasing a new version of my Flask site where I create a map of london using a csv of coordinates. The csv is in a subdirectory but despite the file being in the subdirectory I get:
2015-08-30 18:59:39,284 :Traceback (most recent call last):
2015-08-30 18:59:39,285 : File "/bin/user_wsgi_wrapper.py", line 134, in __call__
2015-08-30 18:59:39,285 : self.error_log_file.logger.exception("Error running WSGI application")
2015-08-30 18:59:39,285 : File "/usr/lib/python2.7/logging/__init__.py", line 1185, in exception
2015-08-30 18:59:39,285 : self.error(msg, *args, **kwargs)
2015-08-30 18:59:39,286 : File "/usr/lib/python2.7/logging/__init__.py", line 1178, in error
2015-08-30 18:59:39,286 : self._log(ERROR, msg, args, **kwargs)
2015-08-30 18:59:39,286 : File "/usr/lib/python2.7/logging/__init__.py", line 1270, in _log
2015-08-30 18:59:39,286 : record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2015-08-30 18:59:39,287 : File "/usr/lib/python2.7/logging/__init__.py", line 1244, in makeRecord
2015-08-30 18:59:39,287 : rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2015-08-30 18:59:39,287 : File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2015-08-30 18:59:39,287 : self.threadName = threading.current_thread().name
2015-08-30 18:59:39,288 : File "/usr/lib/python2.7/threading.py", line 1160, in currentThread
2015-08-30 18:59:39,288 : return _active[_get_ident()]
2015-08-30 18:59:39,288 : File "/bin/user_wsgi_wrapper.py", line 126, in __call__
2015-08-30 18:59:39,288 : app_iterator = self.app(environ, start_response)
2015-08-30 18:59:39,288 : File "/bin/user_wsgi_wrapper.py", line 140, in import_error_application
2015-08-30 18:59:39,288 : raise e
2015-08-30 18:59:39,289 :IOError: [Errno 2] No such file or directory: 'static/londonpostcodes.csv'
The csv file is called from the london_postcodes.py module on with open('static/londonpostcodes.csv') as f:
I am unsure if this is a csv module problem or other, but the file is definitely there. In case any member of the staff can help, you have permission to go look at my files.