Code Monkey home page Code Monkey logo

flask-now's People

Contributors

c-w avatar ozanonurtek avatar shubidubapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

flask-now's Issues

TypeError: makedirs() got an unexpected keyword argument 'exists_ok' on python2.7

I was unable to create the flask initial project with MVC architecture in python 2.7 environment. Below is the stack trace for the same. The library is working fine with simple mode.

(venv) โžœ mastering-flask flask-now -mvc
Creating extensionless flask app with mvc architecture pattern.
Installing requirements...
Freezing requirements...
Traceback (most recent call last):
File "/usr/local/bin/flask-now", line 10, in
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/flask_now/now.py", line 12, in main
build()
File "/usr/local/lib/python2.7/site-packages/flask_now/now.py", line 9, in build
architect.build()
File "/usr/local/lib/python2.7/site-packages/flask_now/architect.py", line 109, in build
self.__identify()
File "/usr/local/lib/python2.7/site-packages/flask_now/architect.py", line 14, in __identify
self.__create_mvc_architecture()
File "/usr/local/lib/python2.7/site-packages/flask_now/architect.py", line 20, in __create_mvc_architecture
self.__create_mvc_app()
File "/usr/local/lib/python2.7/site-packages/flask_now/architect.py", line 44, in __create_mvc_app
self.__create_config_file(filename="project/config.py")
File "/usr/local/lib/python2.7/site-packages/flask_now/architect.py", line 30, in __create_config_file
os.makedirs(os.path.dirname(filename), exist_ok=True)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'

Optionally using a path and naming virtual environment file

There are different conventions for virtual environments.
Like creating all the virtual environments on a folder ( "~/virtualenvs/" ),
or naming the virtual environment with a leading dot ( ".../project/path/.venv" ),
right now the virtual environment is created inside the project folder with a default name "venv"

TypeError: makedirs() got an unexpected keyword argument 'exist_ok'

I follow the How to use instructions and a get this error:

(venv) afiloso@r518u:~/devs/flask-now-example$ flask-now -mvc
Creating extensionless flask app with mvc architecture pattern.
Installing requirements...
Freezing requirements...
Traceback (most recent call last):
  File "/home/afiloso/.local/bin/flask-now", line 11, in <module>
    sys.exit(main())
  File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/now.py", line 12, in main
    build()
  File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/now.py", line 9, in build
    architect.build()
  File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/architect.py", line 109, in build
    self.__identify()
  File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/architect.py", line 14, in __identify
    self.__create_mvc_architecture()
  File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/architect.py", line 20, in __create_mvc_architecture
    self.__create_mvc_app()
  File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/architect.py", line 44, in __create_mvc_app
    self.__create_config_file(filename="project/config.py")
  File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/architect.py", line 30, in __create_config_file
    os.makedirs(os.path.dirname(filename), exist_ok=True)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'
(venv) afiloso@r518u:~/devs/flask-now-example$ 

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.