-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running examples #4
Comments
Hum, what system are you using ? Can you past me the error in a gist (better format for reading it). |
I have tried both through the cloud (Nitrous.io) as well as Ubuntu xcfe4. I installed all dependencies (I think). Don't know what it could be. Here is my trace: https://gist.github.com/ktal90/866255d551344923ce92#file-gistfile1-txt |
Ok, I'll check this out and come back to you as soon as I can. |
Can you check if you have modules names conflict ? |
Hmm looking at my modules, it doesn't look like there are any conflicts. I have python running, have installed the requirements with pip, and then installed the glass library. What I think may be the problem is importing "configs" in the second command of your examples. How is python referencing configs.py? Hmm what am I doing wrong? |
Hmm interesting. It looks like there is a problem finding the package when running the server that you just added. I added the callback to my api console, but no luck. In fact, the error seems to be with finding the library itself:
|
Hi @ktal90, https://github.com/SamyPesse/glass.py/blob/master/examples/appengine-buildout/README.md This example uses mr developer to fetch a copy of glass.py into the project's |
Awesome. Thanks a lot @TRII ! I guess these are two separate issues really (1. appengine and 2. the example scripts). I'm still unable to run hello.py and other examples. Let me know if you have any tips based on the first trace I posted. Thanks! |
I will try to run hello.py today and some others and let you know. |
To run It's a circular import. As it seems, glass imports werkzeug, which tries to import another package named html but loads html.py instead, which again tries imports glass.
|
After installing the requirements and the library as per the installation instructions, I cannot run any of the examples. It looks to me that Python is having trouble importing the modules. This is what I am hit with after trying to run the "hello.py" example:
Traceback (most recent call last):
File "examples/hello.py", line 2, in
import glass
File "/home/action/.local/lib/python2.7/site-packages/glass/init.py", line 1, in
from app import Application
File "/home/action/.local/lib/python2.7/site-packages/glass/app.py", line 2, in
import flask
File "/home/action/.local/lib/python2.7/site-packages/flask/init.py", line 17, in
from werkzeug.exceptions import abort
File "/home/action/.local/lib/python2.7/site-packages/werkzeug/init.py", line 154, in
import('werkzeug.exceptions')
File "/home/action/.local/lib/python2.7/site-packages/werkzeug/exceptions.py", line 71, in
from werkzeug.wrappers import Response
File "/home/action/.local/lib/python2.7/site-packages/werkzeug/wrappers.py", line 36, in
from werkzeug.utils import cached_property, environ_property, \
File "/home/action/.local/lib/python2.7/site-packages/werkzeug/utils.py", line 18, in
from html.entities import name2codepoint
File "/home/action/workspace/glass.py/examples/html.py", line 7, in
app = glass.Application(
AttributeError: 'module' object has no attribute 'Application'
The text was updated successfully, but these errors were encountered: