flaskSaaS icon indicating copy to clipboard operation
flaskSaaS copied to clipboard

OSError: [Errno 8] Exec format error:

Open rjunderwood opened this issue 5 years ago • 7 comments

When running: python manage.py runserver this error. PLEASE HELP.

  • Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
  • Restarting with stat Traceback (most recent call last): File "manage.py", line 33, in manager.run() File "/mnt/c/Users/riley/alrye/lib/python3.6/site-packages/flask_script/init.py", line 412, in run result = self.handle(sys.argv[0], sys.argv[1:]) File "/mnt/c/Users/riley/alrye/lib/python3.6/site-packages/flask_script/init.py", line 383, in handle res = handle(*args, **config) File "/mnt/c/Users/riley/alrye/lib/python3.6/site-packages/flask_script/commands.py", line 425, in call **self.server_options) File "/mnt/c/Users/riley/alrye/lib/python3.6/site-packages/flask/app.py", line 772, in run run_simple(host, port, self, **options) File "/mnt/c/Users/riley/alrye/lib/python3.6/site-packages/werkzeug/serving.py", line 988, in run_simple run_with_reloader(inner, extra_files, reloader_interval, reloader_type) File "/mnt/c/Users/riley/alrye/lib/python3.6/site-packages/werkzeug/_reloader.py", line 332, in run_with_reloader sys.exit(reloader.restart_with_reloader()) File "/mnt/c/Users/riley/alrye/lib/python3.6/site-packages/werkzeug/_reloader.py", line 176, in restart_with_reloader exit_code = subprocess.call(args, env=new_environ, close_fds=False) File "/usr/lib/python3.6/subprocess.py", line 267, in call with Popen(*popenargs, **kwargs) as p: File "/usr/lib/python3.6/subprocess.py", line 709, in init restore_signals, start_new_session) File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 8] Exec format error: '/mnt/c/Users/riley/Desktop/2019/ALRYE/test/flaskSaaS/manage.py'

rjunderwood avatar Apr 11 '19 03:04 rjunderwood

Had a similar issue using cygwin on windows, did you find a solution?

medicalnp avatar Apr 17 '19 17:04 medicalnp

I have a similar problem in macOS 10.12. Is there any solution for this problem?

FurkanArslan avatar May 10 '19 14:05 FurkanArslan

@FurkanArslan same problem same OS 10.12.6

stromal avatar May 14 '19 14:05 stromal

Same issue, macOS 10.14.4

alexlaurence avatar May 24 '19 16:05 alexlaurence

FOUND THE SOLUTION. Install Docker. Omg. Author forgot about that...

alexlaurence avatar May 24 '19 17:05 alexlaurence

FOUND THE SOLUTION. Install Docker. Omg. Author forgot about that...

Hi @alexlaurence , How did you configure Docker? do you have any documents that i can look at for the configuration of Docker. Thanks.

MrCoca avatar Jun 05 '19 15:06 MrCoca

I'm having this problem too and I have installed docker, but I too don't know how to configure it the way you did to make it work. Could you elaborate?

donnybert avatar Jul 03 '19 23:07 donnybert