GithubHelp home page GithubHelp logo

pallets / flask-website Goto Github PK

View Code? Open in Web Editor NEW
1.3K 1.3K 578.0 1.62 MB

The Flask website, built with Flask!

Home Page: http://flask.pocoo.org

License: Other

Python 65.12% JavaScript 0.83% CSS 9.65% Makefile 0.12% HTML 24.28%
flask python

flask-website's Issues

ImportError when install distribute

When installing distribute on Python 2.7, it raises an ImportError:

Collecting distribute (from -r requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/5f/ad/1fde06877a8d7d5c9b60eff7de2d452f639916ae1d48f0b8f97bf97e570a/distribute-0.7.3.zip (145kB)
    100% |████████████████████████████████| 153kB 9.0MB/s 
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/distribute.egg-info
    writing requirements to pip-egg-info/distribute.egg-info/requires.txt
    writing pip-egg-info/distribute.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/distribute.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/distribute.egg-info/dependency_links.txt
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-KsAMCS/distribute/setup.py", line 58, in <module>
        setuptools.setup(**setup_params)
      File "/opt/python/2.7.14/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/opt/python/2.7.14/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/opt/python/2.7.14/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "setuptools/command/egg_info.py", line 177, in run
        writer = ep.load(installer=installer)
      File "pkg_resources.py", line 2241, in load
        if require: self.require(env, installer)
      File "pkg_resources.py", line 2254, in require
        working_set.resolve(self.dist.requires(self.extras),env,installer)))
      File "pkg_resources.py", line 2471, in requires
        dm = self._dep_map
      File "pkg_resources.py", line 2682, in _dep_map
        self.__dep_map = self._compute_dependencies()
      File "pkg_resources.py", line 2699, in _compute_dependencies
        from _markerlib import compile as compile_marker
    ImportError: No module named _markerlib 

The full traceback can be found in here.

Tired to easy_install distribute, but no work, see #68 for more details.

I cannot install Creoleparser on python 3.5

> pip install creoleparser 
Looking in indexes: https://pypi.douban.com/simple/
Collecting creoleparser
Https://pypi.doubanio.com/packages/2a/0c/f442415eae7f0bb077fed28f6f8b1ddb07b32f216b2268dca9c267655f0d/Creoleparser-0.7.4.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-659maz3o\creoleparser\setup.py", line 6
        print 'setuptools not installed, using distutils.core'
                                                             ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-659maz3o\creoleparser\

Some searches involving “flash” throw a 500 error

If I try to search for “flash”, I get a 500 error:

http://flask.pocoo.org/search/?q=flash

I’ve found a few other searches related to flash that seem to fail; they may or may not be related:

  • Leading/trailing whitespace, e.g. “___flash” or “flash___”
  • Leading/trailing words with one or three characters – “a flash”, “big flash”, “flash a” and “flash big” all fail.
  • “flashe” and “flashes” both fail – appending other characters seems okay.

And some searches that work:

  • Prepending characters to “flash” – so “aflash”, “abflash”, “abcflash”, and so on seem to work.
  • Leading/trailing words with other numbers of characters – “hi flash”, “flash ab”, “flash abcd”, “high flash”, “highest flash” all work.

Repro’d in Safari and Chrome on OS X. I’m coming from a UK-based ISP, if that’s significant.

I was trying to search for the pages on message flashing. I couldn’t find a pattern to rejected searches, except that they all involve the word “flash”.

About import OpenID

/flask_website/init.py

# from flask_openid.ext.openid import OpenID
from flask_openid import OpenID

Should like this.

I cannot install creoleparser on python3.5

> pip install creoleparser
Collecting creoleparser
  Downloading https://files.pythonhosted.org/packages/2a/0c/f442415eae7f0bb077fed28f6f8b1ddb07b32f216b2268dca9c267655f0d/Creoleparser-0.7.4.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-za4c4apq\creoleparser\setup.py", line 6
        print 'setuptools not installed, using distutils.core'
                                                             ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-za4c4apq\creoleparser\

i have download files and run the same file but i get an error

(flask) C:\Users\admin\Desktop\website>python run.py
Traceback (most recent call last):
File "run.py", line 1, in
from flask_website import app
File "C:\Users\admin\Desktop\website\flask_website__init__.py", line 35, in <
module>
from flask_website.views import general
File "C:\Users\admin\Desktop\website\flask_website\views\general.py", line 6,
in
from flask_website.utils import requires_login, request_wants_json
File "C:\Users\admin\Desktop\website\flask_website\utils.py", line 2, in
import creoleparser
ImportError: No module named 'creoleparser'

Advocating for the use of Pipenv ?

I don't know what the pallets team's stance is on Python package managers. I guess it's good to point out that when it comes to application dependency management, the Python Software Foundation officially recommends Pipenv:
https://packaging.python.org/guides/tool-recommendations/#application-dependency-management

Screen Shot 2019-05-31 at 1 43 14 PM

It would be nice to see popular frameworks like Flask or Django, etc. start advocating it, or at least including it in their quickstart guides! I only discovered it through someone's Flask tutorial.

Anyway, I'm sure you guys have thought about it, but just putting it out there~

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.