Git Product home page Git Product logo

flasksaas's Issues

OSError: [Errno 8] Exec format error:

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'

OSError: [Errno 8] Exec format error:

Hello, I am trying to build the project on Ubuntu 18.04 and I am getting an error when trying to launch the server with the command python manage.py runserver. The project was built successfully and I am using Python 3 with conda and a virtual environment. The full error I get is the following:

 * 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 <module>
    manager.run()
  File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/flask_script/__init__.py", line 412, in run
    result = self.handle(sys.argv[0], sys.argv[1:])
  File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/flask_script/__init__.py", line 383, in handle
    res = handle(*args, **config)
  File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/flask_script/commands.py", line 425, in __call__
    **self.server_options)
  File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/flask/app.py", line 772, in run
    run_simple(host, port, self, **options)
  File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/werkzeug/serving.py", line 988, in run_simple
    run_with_reloader(inner, extra_files, reloader_interval, reloader_type)
  File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/werkzeug/_reloader.py", line 332, in run_with_reloader
    sys.exit(reloader.restart_with_reloader())
  File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/werkzeug/_reloader.py", line 176, in restart_with_reloader
    exit_code = subprocess.call(args, env=new_environ, close_fds=False)
  File "/home/username/miniconda3/envs/myenv/lib/python3.7/subprocess.py", line 323, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/home/username/miniconda3/envs/myenv/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/home/username/miniconda3/envs/myenv/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)

Do you have any idaa of what could be wrong?

Windows

Hello,

I am comming from Siraj's video. I would like to get this running, but I am on windows.. What would be the steps equivalant to the "make install && make dev" on windows ?

Thanks

ImportError: cannot import name 'getargspec'

Do you guys have this problem? I have python 3, and should I run the program on python 2?

C:\Users\ying\Downloads\flaskSaaS-master\flaskSaaS-master>python manage.py initdb
Traceback (most recent call last):
File "manage.py", line 33, in
manager.run()
File "C:\Users\ying\AppData\Roaming\Python\Python35\site-packages\flask_script_init_.py", line 412, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File "C:\Users\ying\AppData\Roaming\Python\Python35\site-packages\flask_script_init_.py", line 383, in handle
res = handle(*args, **config)
File "C:\Users\ying\AppData\Roaming\Python\Python35\site-packages\flask_script\commands.py", line 215, in call
with app.test_request_context():
File "C:\Users\ying\AppData\Roaming\Python\Python35\site-packages\flask\app.py", line 1780, in test_request_context
from flask.testing import make_test_environ_builder
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\testing.py", line 17, in
from flask.cli import ScriptInfo
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\cli.py", line 29, in
from ._compat import getargspec, iteritems, reraise, text_type
ImportError: cannot import name 'getargspec'

C:\Users\ying\Downloads\flaskSaaS-master\flaskSaaS-master>python --version
Python 3.5.6 :: Anaconda, Inc.

ValueError

After runserver:
$ python manage.py runserver

  • Restarting with stat
  • Debugger is active!
  • Debugger PIN: 102-094-644
  • Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
    I got ValueError : ValueError: path is on mount 'c:', start on mount 'F:'
    Traceback (most recent call last):๐Ÿค”
    File "F:\python3.7\lib\site-packages\flask\app.py", line 1836, in call
    return self.wsgi_app(environ, start_response)
    File "F:\python3.7\lib\site-packages\flask\app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
    File "F:\python3.7\lib\site-packages\flask\app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "F:\python3.7\lib\site-packages\flask_compat.py", line 33, in reraise
    raise value
    File "F:\python3.7\lib\site-packages\flask\app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
    File "F:\python3.7\lib\site-packages\flask\app.py", line 1479, in full_dispatch_request
    response = self.process_response(response)
    File "F:\python3.7\lib\site-packages\flask\app.py", line 1691, in process_response
    response = handler(response)
    File "F:\python3.7\lib\site-packages\flask_debugtoolbar_init_.py", line 223, in process_response
    toolbar_html = toolbar.render_toolbar()
    File "F:\python3.7\lib\site-packages\flask_debugtoolbar\toolbar.py", line 46, in render_toolbar
    return template.render(**context)
    File "F:\python3.7\lib\site-packages\jinja2\asyncsupport.py", line 76, in render
    return original_render(self, *args, **kwargs)
    File "F:\python3.7\lib\site-packages\jinja2\environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
    File "F:\python3.7\lib\site-packages\jinja2\environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "F:\python3.7\lib\site-packages\jinja2_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
    File "F:\python3.7\lib\site-packages\flask_debugtoolbar\templates\base.html", line 50, in top-level template code
    {{ panel.content()|safe }}
    File "F:\python3.7\lib\site-packages\flask_debugtoolbar\panels\versions.py", line 51, in content
    'relpath': relpath,
    File "F:\python3.7\lib\site-packages\flask_debugtoolbar\panels_init_.py", line 30, in render
    return template.render(**context)
    File "F:\python3.7\lib\site-packages\jinja2\asyncsupport.py", line 76, in render
    return original_render(self, *args, **kwargs)
    File "F:\python3.7\lib\site-packages\jinja2\environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
    File "F:\python3.7\lib\site-packages\jinja2\environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "F:\python3.7\lib\site-packages\jinja2_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
    File "F:\python3.7\lib\site-packages\flask_debugtoolbar\templates\panels\versions.html", line 23, in top-level template code {{ relpath(package.location, python_lib) }}

File "F:\python3.7\lib\site-packages\flask_debugtoolbar\panels\versions.py", line 12, in relpath
relative = os.path.relpath(location, python_lib)
File "F:\python3.7\lib\ntpath.py", line 564, in relpath
path_drive, start_drive))
ValueError: path is on mount 'c:', start on mount 'F:'

Wrong package named for python3 cffi

failed with error code 1 in /tmp/pip-install-wye5s2cp/cffi/

You need python3-cffi...

sudo apt-get install python3-cffi

Then the installation completes.

Next battle appears to be

ImportError: No module named flask.ext.script

And FYI, here from Siraj! Thanks for posting this repository!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.