From Stephen.Mazzei at asrcfederal.com Tue Sep 12 15:50:36 2017 From: Stephen.Mazzei at asrcfederal.com (Mazzei, Stephen Andrew) Date: Tue, 12 Sep 2017 19:50:36 +0000 Subject: [Flask] Flask on Ubuntu on Windows Message-ID: Good afternoon, Been a while since I reached out, but with the off-season soon upon us at work, I have been tasked with new HTML projects. I started dusting off the ol' notes and surprise the environment is not working. >From what I can remember and tell by my notes, all I did was load up my bash environment in windows, change to the flask environment and launch the startup script. All the utilities are still installed, and the prompt for 127.0.0.1:5000 pops up. But when I open firefox and try going to the website, I get an unable to connect. Is anyone else doing anything with flask and Windows/ubuntu/bash? --- Stephen A. Mazzei Systems Administrator | AFDS, ASRC Federal Data Solutions - P&G HPC Account | 513-634-9965 ________________________________ The preceding message (including attachments) is covered by the Electronic Communication Privacy Act, 18 U.S.C. sections 2510-2512, is intended only for the person or entity to which it is addressed, and may contain information that is confidential, protected by attorney-client or other privilege, or otherwise protected from disclosure by law. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error and destroy the original message and all copies. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stappers at stappers.nl Tue Sep 12 16:31:44 2017 From: stappers at stappers.nl (Geert Stappers) Date: Tue, 12 Sep 2017 22:31:44 +0200 Subject: [Flask] Flask on Ubuntu on Windows In-Reply-To: References: Message-ID: <20170912203144.GK21385@gpm.stappers.nl> On Tue, Sep 12, 2017 at 07:50:36PM +0000, Mazzei, Stephen Andrew wrote: > Good afternoon, > > Been a while since I reached out, but with the off-season soon upon us > at work, I have been tasked with new HTML projects. I started dusting > off the ol' notes and surprise the environment is not working. > > From what I can remember and tell by my notes, all I did was load up > my bash environment in windows, change to the flask environment and > launch the startup script. All the utilities are still installed, > and the prompt for 127.0.0.1:5000 pops up. But when I open firefox > and try going to the website, I get an unable to connect. > > Is anyone else doing anything with flask and Windows/ubuntu/bash? > I think that it is Windows as host system and Ubuntu as guest container. Firefox is on the host and connects to host port 5000. The missing part is probably something that make guest port 5000 visable on the host. Meanwhile check inside the container flask. Do something like wget http://localhost:5000 or nc localhost 5000 Groeten Geert Stappers -- Leven en laten leven From gabor at szabgab.com Tue Sep 12 18:29:39 2017 From: gabor at szabgab.com (Gabor Szabo) Date: Wed, 13 Sep 2017 01:29:39 +0300 Subject: [Flask] Flask on Ubuntu on Windows In-Reply-To: <20170912203144.GK21385@gpm.stappers.nl> References: <20170912203144.GK21385@gpm.stappers.nl> Message-ID: On Tue, Sep 12, 2017 at 11:31 PM, Geert Stappers wrote: > On Tue, Sep 12, 2017 at 07:50:36PM +0000, Mazzei, Stephen Andrew wrote: >> Good afternoon, >> >> Been a while since I reached out, but with the off-season soon upon us >> at work, I have been tasked with new HTML projects. I started dusting >> off the ol' notes and surprise the environment is not working. >> >> From what I can remember and tell by my notes, all I did was load up >> my bash environment in windows, change to the flask environment and >> launch the startup script. All the utilities are still installed, >> and the prompt for 127.0.0.1:5000 pops up. But when I open firefox >> and try going to the website, I get an unable to connect. >> >> Is anyone else doing anything with flask and Windows/ubuntu/bash? >> > > I think that it is Windows as host system and Ubuntu as guest container. > Firefox is on the host and connects to host port 5000. > > The missing part is probably something that make guest port 5000 > visable on the host. > > Meanwhile check inside the container flask. Do something like > wget http://localhost:5000 > or > nc localhost 5000 > Either that or Flask by default only listens to connections arriving from the same machine. You probably need to tell it to listen on 0.0.0.0 Run it with flask run --host 0.0.0.0 Gabor From Stephen.Mazzei at asrcfederal.com Thu Sep 14 12:55:28 2017 From: Stephen.Mazzei at asrcfederal.com (Mazzei, Stephen Andrew) Date: Thu, 14 Sep 2017 16:55:28 +0000 Subject: [Flask] Flask on Ubuntu on Windows In-Reply-To: References: Message-ID: Seems like there is a bug in the Windows Linux Subsystem causing ports to be BOUND but not LISTEN. I have reinstalled pycharm and imported all the items back in through anaconda/pip so I guess I will continue with this route, Thanks for the help! From: Mazzei, Stephen Andrew Sent: Tuesday, September 12, 2017 3:51 PM To: flask at python.org Subject: Flask on Ubuntu on Windows Good afternoon, Been a while since I reached out, but with the off-season soon upon us at work, I have been tasked with new HTML projects. I started dusting off the ol' notes and surprise the environment is not working. >From what I can remember and tell by my notes, all I did was load up my bash environment in windows, change to the flask environment and launch the startup script. All the utilities are still installed, and the prompt for 127.0.0.1:5000 pops up. But when I open firefox and try going to the website, I get an unable to connect. Is anyone else doing anything with flask and Windows/ubuntu/bash? --- Stephen A. Mazzei Systems Administrator | AFDS, ASRC Federal Data Solutions - P&G HPC Account | 513-634-9965 ________________________________ The preceding message (including attachments) is covered by the Electronic Communication Privacy Act, 18 U.S.C. sections 2510-2512, is intended only for the person or entity to which it is addressed, and may contain information that is confidential, protected by attorney-client or other privilege, or otherwise protected from disclosure by law. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error and destroy the original message and all copies. -------------- next part -------------- An HTML attachment was scrubbed... URL: From maxc at me.com Wed Sep 27 21:09:55 2017 From: maxc at me.com (Max Countryman) Date: Wed, 27 Sep 2017 18:09:55 -0700 Subject: [Flask] Flask Consulting Message-ID: <448D3F9F-D898-4BDE-A57C-61414FFBF79C@me.com> Hi all, I?m writing to let you know I am currently seeking out opportunities to consult on Flask-related projects. I?m located in the Bay Area and can join your team on-site, alternatively I?m happy to work remotely. You may recognize some of the Flask-related projects I?ve worked on, such as flask-login and flask-bcrypt. I have many years of experience with Python and Flask and can provide you immediate expertise. If you have projects you?d like to pass my way, please do not hesitate to reach out. All the best, Max From jeff1evesque at yahoo.com Wed Sep 27 22:29:26 2017 From: jeff1evesque at yahoo.com (Jeffrey Levesque) Date: Wed, 27 Sep 2017 22:29:26 -0400 Subject: [Flask] Flask Consulting In-Reply-To: <448D3F9F-D898-4BDE-A57C-61414FFBF79C@me.com> References: <448D3F9F-D898-4BDE-A57C-61414FFBF79C@me.com> Message-ID: <43BD5975-FE7A-470C-966D-B2155DA4A791@yahoo.com> Hi guys, I have an open source project, built on top of flask: - https://github.com/jeff1evesque/machine-learning I'm looking for additional co-developers, and willing to restructure the current milestone issues. Though, there has been speculation that I may be producing a product for one of the bigger publishers (i.e. O'Reilley, or PACKT publishing). If this is true, I may be restructuring the project to incorporate more algorithms, and methods like machine learning. However, it is currently just a hobby project needing more help. Thank you, Jeff Levesque https://github.com/jeff1evesque > On Sep 27, 2017, at 9:09 PM, Max Countryman wrote: > > Hi all, > > I?m writing to let you know I am currently seeking out opportunities to consult on Flask-related projects. I?m located in the Bay Area and can join your team on-site, alternatively I?m happy to work remotely. > > You may recognize some of the Flask-related projects I?ve worked on, such as flask-login and flask-bcrypt. > > I have many years of experience with Python and Flask and can provide you immediate expertise. If you have projects you?d like to pass my way, please do not hesitate to reach out. > > All the best, > > > Max > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask From jeff1evesque at yahoo.com Wed Sep 27 22:32:42 2017 From: jeff1evesque at yahoo.com (Jeffrey Levesque) Date: Wed, 27 Sep 2017 22:32:42 -0400 Subject: [Flask] Flask Consulting In-Reply-To: <43BD5975-FE7A-470C-966D-B2155DA4A791@yahoo.com> References: <448D3F9F-D898-4BDE-A57C-61414FFBF79C@me.com> <43BD5975-FE7A-470C-966D-B2155DA4A791@yahoo.com> Message-ID: <63EB3082-56C1-4EA7-BA8A-38B25962084B@yahoo.com> Sorry typo: "If this is true, I may be restructuring the project to incorporate more algorithms, and methods like neural network." Essentially, I'm trying to build a framework for machine learning. I'm hoping this framework will useful for data scientists, similar to how Drupal and Wordpress is to web developers, similar to what Drupal, and Wordpress is to web developers. Thank you, Jeff Levesque https://github.com/jeff1evesque > On Sep 27, 2017, at 10:29 PM, Jeffrey Levesque wrote: > > If this is true, I may be restructuring the project to incorporate more algorithms, and methods like machine learning. How From davidism at gmail.com Thu Sep 28 10:28:57 2017 From: davidism at gmail.com (David Lord) Date: Thu, 28 Sep 2017 07:28:57 -0700 Subject: [Flask] Flask-SQLAlchemy 2.3.0 released Message-ID: We've released Flask-SQLAlchemy 2.3.0! This mainly fixes issues with `__tablename__` generation introduced in 2.2. Hopefully name generation Just Works?? for all your use cases, but in case it doesn't there's also a documented way to disable it. https://github.com/mitsuhiko/flask-sqlalchemy/releases/tag/2.3.0 Install or upgrade with pip: pip install -U Flask-SQLAlchemy ## Changelog - Multiple bugs with ``__tablename__`` generation are fixed. Names will be generated for models that define a primary key, but not for single-table inheritance subclasses. Names will not override a ``declared_attr``. ``PrimaryKeyConstraint`` is detected. (`#541`_) - Passing an existing ``declarative_base()`` as ``model_class`` to ``SQLAlchemy.__init__`` will use this as the base class instead of creating one. This allows customizing the metaclass used to construct the base. (`#546`_) - The undocumented ``DeclarativeMeta`` internals that the extension uses for binds and table name generation have been refactored to work as mixins. Documentation is added about how to create a custom metaclass that does not do table name generation. (`#546`_) - Model and metaclass code has been moved to a new ``models`` module. ``_BoundDeclarativeMeta`` is renamed to ``DefaultMeta``; the old name will be removed in 3.0. (`#546`_) - Models have a default ``repr`` that shows the model name and primary key. (`#530`_) - Fixed a bug where using ``init_app`` would cause connectors to always use the ``current_app`` rather than the app they were created for. This caused issues when multiple apps were registered with the extension. (`#547`_) .. _#530: https://github.com/mitsuhiko/flask-sqlalchemy/pull/530 .. _#541: https://github.com/mitsuhiko/flask-sqlalchemy/pull/541 .. _#546: https://github.com/mitsuhiko/flask-sqlalchemy/pull/546 .. _#547: https://github.com/mitsuhiko/flask-sqlalchemy/pull/547 --- We are still working towards larger changes in a 3.0 release, and would appreciate any help, big or small. Whether it's triaging issues, updating and improving the docs, finding bugs, or squashing bugs, everything helps! --- Finally, if you want to, please retweet this to spread the word to more developers: https://twitter.com/davidism/status/913409932514410502 Thank you for your continued support and patience!