Comments (5)
Updating example.py to use;
from flask_bootstrap import Bootstrap
from flask_script import Manager, Shell
Then fails with a different message:
Traceback (most recent call last):
File "example.py", line 15, in <module>
from flask_ponywhoosh import PonyWhoosh
File "C:\Users\clach04\py\pony_whoosh_flask\p3PonyWooshFlask\lib\site-packages\flask_ponywhoosh\__init__.py", line 40
if app is not None:
^
TabError: inconsistent use of tabs and spaces in indentation
Line 38, first line of PonyWhoosh() is indented with a tab. Fixing this then leads to:
Traceback (most recent call last):
File "example.py", line 15, in <module>
from flask_ponywhoosh import PonyWhoosh
File "C:\Users\clach04\py\pony_whoosh_flask\p3PonyWooshFlask\lib\site-packages\flask_ponywhoosh\__init__.py", line 66
print 'PONYWHOOSH_DEBUG -> ', self.debug
^
SyntaxError: Missing parentheses in call to 'print'
There are multiple py2.x print statements.
Fixing those leads to:
Traceback (most recent call last):
File "example.py", line 15, in <module>
from flask_ponywhoosh import PonyWhoosh
File "C:\Users\clach04\py\pony_whoosh_flask\p3PonyWooshFlask\lib\site-packages\flask_ponywhoosh\__init__.py", line 16, in <module>
from ponywhoosh import PonyWhoosh as MyPonyWhoosh
File "C:\Users\clach04\py\pony_whoosh_flask\p3PonyWooshFlask\lib\site-packages\ponywhoosh\__init__.py", line 13, in <module>
from core import PonyWhoosh
ImportError: No module named 'core'
Fixing that via:
from ponywhoosh.core import PonyWhoosh
Then leads to more print statement issues
from flask-ponywhoosh.
Python 2.7 with:
pip install flask-ponywhoosh flask_script
and update example as per above allows:
python example.py runserver
to run
from flask-ponywhoosh.
The print
issues is because to date we don't have support for python 3. And with python 2.7 everything should be fine. Without any update, it is failing?
from flask-ponywhoosh.
Sorry, my mistake! I'd been reading PonyORM docs and saw py3 support (and dropping py2.6) and got that lodged in my brain. I just logged pull request #4 for the example update to use the non-deprecated Flask pieces
from flask-ponywhoosh.
Your PR was accepted. Thanks.
from flask-ponywhoosh.
Related Issues (19)
- popular searchers
- Index HOT 1
- requirements bounds
- URL config is not working: HOT 2
- pip installation error
- error when installation HOT 5
- Crear un macro para generar un buscador, e incluirlo en cualquier parte. HOT 1
- Templates couldn't found by flask in an isolate application when trying to get /search/ default view.
- FlaskWTF has changed some import names
- Bootstrap shuld be included in the documentation HOT 2
- Changing for a more meaningful keyword HOT 1
- documentation is broken HOT 1
- Modifying the templates
- Maximum 10 results fetched from database HOT 2
- README needs more coverage
- example fails HOT 2
- Headers HOT 2
- Change the license to MIT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-ponywhoosh.