<type 'exceptions.SyntaxError'>

82 views
Skip to first unread message

Lasha Kanchavely

unread,
Sep 10, 2013, 2:05:42 AM9/10/13
to toscawidge...@googlegroups.com

any ideas about this? (everything is up to date).  thnx in advance


Ralph Bean

unread,
Sep 10, 2013, 8:13:42 AM9/10/13
to toscawidge...@googlegroups.com
On Mon, Sep 09, 2013 at 11:05:42PM -0700, Lasha Kanchavely wrote:
> <https://lh5.googleusercontent.com/-w-HDJJUI1Io/Ui62lFe2yQI/AAAAAAAABG4/CH4QSw8kbSY/s1600/Capture.PNG>
>
> any ideas about this? (everything is up to date). thnx in advance

Looks like webob has dropped support for python-2.5 in the interest of
supporting python-3.x. You could either constrain the webob
dependency to only older versions or update your system to use
python-2.6 or later.

TW2 (and its dependencies) are regularly tested against pythons 2.6,
2.7, and 3.3:

- https://travis-ci.org/toscawidgets/tw2.core
- https://travis-ci.org/toscawidgets/tw2.forms

Lasha Kanchavely

unread,
Sep 11, 2013, 7:54:43 AM9/11/13
to toscawidge...@googlegroups.com
Oh, thank you very much!

Lasha Kanchavely

unread,
Sep 12, 2013, 1:44:55 AM9/12/13
to toscawidge...@googlegroups.com



I'm sorry for being so uneasy.... but I managed the problem with webob and now I get this kind of error... please help me with me... It will be very difficult for me to move to python 2.6 (or higher). 

Moritz Schlarb

unread,
Sep 12, 2013, 11:25:37 AM9/12/13
to toscawidge...@googlegroups.com
Since ToscaWidgets is striving to support Python 3 already, support for
older Python 2 version has been dropped.
You're stumbling upon the new relative import syntax that isn't
supported by python 2.5.
The only thing you can try to do to work around this is to find out
which older releases of ToscaWidgets do not use this syntax.

For tw2.core, it would probably be somewhere around this commit:
https://github.com/toscawidgets/tw2.core/commit/c1d2b772163d13b310ffaccc6a9453290e3e447e

It was added in release 2.2.0, so you should maybe try the 2.1.*
versions, but you might need to go back a little further.
Try it out! ;)

Am 12.09.2013 07:44, schrieb Lasha Kanchavely:
>
>
> <https://lh4.googleusercontent.com/-8wnNXknHSCM/UjFUe3Ybm0I/AAAAAAAABHI/HWVPENZSEKk/s1600/Capture.PNG>
> <https://travis-ci.org/toscawidgets/tw2.forms>
>
> --
> You received this message because you are subscribed to the Google
> Groups "ToscaWidgets-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to toscawidgets-dis...@googlegroups.com.
> To post to this group, send email to toscawidge...@googlegroups.com.
> Visit this group at http://groups.google.com/group/toscawidgets-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.

Lasha Kanchavely

unread,
Sep 19, 2013, 9:42:36 AM9/19/13
to toscawidge...@googlegroups.com

so, I installed python 2.7.5 and tried everything from the beginning. Now I get this kind of error and can't figure out what I did wrong. Please help me with this.

Ralph Bean

unread,
Sep 19, 2013, 10:46:43 AM9/19/13
to toscawidge...@googlegroups.com
On Thu, Sep 19, 2013 at 06:42:36AM -0700, Lasha Kanchavely wrote:
>
>
> <https://lh6.googleusercontent.com/-C_SMOapg4U8/Ujr-4NSvggI/AAAAAAAABHY/IS3r2tCxQjw/s1600/Capture.PNG>
> so, I installed python 2.7.5 and tried everything from the beginning. Now I
> get this kind of error and can't figure out what I did wrong. Please help
> me with this.

Huh.. that's odd. I've never encountered that before.

Furthermore, I just tried creating a fresh virtualenv and I freshly
installed tw2.devtools (in a python-2.7 environment) and I didn't
encounter the same error.

Perhaps try uninstall gearbox and reinstalling it again? Maybe
something got jammed up along the way..

Craig Small

unread,
Sep 19, 2013, 6:23:18 PM9/19/13
to toscawidge...@googlegroups.com
On Thu, Sep 19, 2013 at 10:46:43AM -0400, Ralph Bean wrote:
> Huh.. that's odd. I've never encountered that before.
I get that same thing from my TG2.3.0 environment.

ls
/home/virtualenv/pythonenv/tg230/lib/python2.7/site-packages/gearbox/commands
basic_package __init__.pyc serve.pyc setup_app.pyc
__init__.py serve.py setup_app.py

Python 2.7.5+ (default, Jun 13 2013, 13:26:49)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gearbox.commands.server import wsgiref_server_runner
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named server
>>> from gearbox.commands.serve import wsgiref_server_runner
>>>

gearbox 0.0.2

Maybe a server->serve change?

- Craig
--
Craig Small VK2XLZ http://enc.com.au/ csmall at : enc.com.au
Debian GNU/Linux http://www.debian.org/ csmall at : debian.org
GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5

Ralph Bean

unread,
Sep 19, 2013, 8:21:11 PM9/19/13
to toscawidge...@googlegroups.com
On Fri, Sep 20, 2013 at 08:23:18AM +1000, Craig Small wrote:
> On Thu, Sep 19, 2013 at 10:46:43AM -0400, Ralph Bean wrote:
> > Huh.. that's odd. I've never encountered that before.
> I get that same thing from my TG2.3.0 environment.
>
> ls
> /home/virtualenv/pythonenv/tg230/lib/python2.7/site-packages/gearbox/commands
> basic_package __init__.pyc serve.pyc setup_app.pyc
> __init__.py serve.py setup_app.py
>
> Python 2.7.5+ (default, Jun 13 2013, 13:26:49)
> [GCC 4.8.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from gearbox.commands.server import wsgiref_server_runner
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named server
> >>> from gearbox.commands.serve import wsgiref_server_runner
> >>>
>
> gearbox 0.0.2
>
> Maybe a server->serve change?

Good idea. Maybe try again uninstalling tw2.devtools and reinstalling
with tw2-devtools-2.2.0.3?

https://github.com/toscawidgets/tw2.devtools/commit/d734bf586dd667205bbe22ea5bf9e34ee6885edf

Lasha Kanchavely

unread,
Sep 20, 2013, 2:18:40 AM9/20/13
to toscawidge...@googlegroups.com
same with 2.2.0.3.... I installed 2.0.3 but it stuck starting 127.0.0.1:8000... and gearbox doesn't understand command tw2.browser. (10:12:39,594 ERROR [cliff.app] Unknown command ['tw2.browser']
). I don't understand why everything strange happens to me :))

Lasha Kanchavely

unread,
Sep 20, 2013, 2:24:48 AM9/20/13
to toscawidge...@googlegroups.com
Is it necessary to run tw2 on this particular port? I don't use specific fw-s... I just want to use some forms on already built web-site without genshii templates and etc...


On Friday, September 20, 2013 4:21:11 AM UTC+4, Ralph Bean wrote:

Moritz Schlarb

unread,
Sep 21, 2013, 10:33:34 AM9/21/13
to toscawidge...@googlegroups.com
Did you make a fresh start with a clean virtualenv and all?
Please send us the versions of the packages you installed (lssitepackages, if you use virtualenvwrapper, pip list if you used pip).

Lasha Kanchavely

unread,
Sep 23, 2013, 12:46:31 AM9/23/13
to toscawidge...@googlegroups.com
[root@unicorn ~]# pip list
argparse (1.2.1)
cliff (1.4.4)
cmd2 (0.6.5.1)
csv (1.0)
DCOracle2 (1.0)
decorator (3.4.0)
docutils (0.11)
ecdsa (0.8)
egenix-mx-base (2.0.6)
Elixir (0.7.1)
gearbox (0.0.2)
Genshi (0.7)
Mako (0.9.0)
MarkupSafe (0.18)
marrow.templating (1.0.2)
marrow.util (1.2.3)
multiprocessing (2.6.2.1)
Paste (1.7.5.1)
PasteDeploy (1.5.0)
PasteScript (1.7.5)
pip (1.4.1)
prettytable (0.7.2)
Pygments (1.6)
pyml (3.2.2)
pyparsing (1.5.7)
reportlab (2.2)
repoze.tm2 (2.0)
setuptools (1.1.6)
Warning: cannot find svn location for sgmlop==1.1.1-20040207
sgmlop (1.1.1-20040207)
simplejson (3.3.0)
six (1.4.1)
speaklater (1.3)
SQLAlchemy (0.7.8)
stevedore (0.12)
stratum (0.2.12)
Tempita (0.5.1)
transaction (1.4.1)
tw2.core (2.2.0.7)
tw2.devtools (2.2.0.3)
tw2.dynforms (2.0.1)
tw2.forms (2.2.0.2)
tw2.jqplugins.jqgrid (2.2.0)
tw2.jqplugins.ui (2.2.0)
tw2.jquery (2.2.0.2)
tw2.sqla (2.0.6)
Twisted (13.1.0)
virtualenv (1.10.1)
virtualenv-clone (0.2.4)
virtualenvwrapper (4.1.1)
WebCore (1.1.2)
WebError (0.10.3)
WebHelpers (1.3)
WebOb (1.2.3)
wsgiref (0.1.2)
zc.lockfile (1.1.0)
ZConfig (3.0.3)
zdaemon (4.0.0)
zope.interface (4.0.5)
zope.sqlalchemy (0.7.2)
[root@unicorn ~]#


hm, but I didn't use virtualenv.... It was necessary? Is there any good tutorial how to do everything from the beggining?

Lasha Kanchavely

unread,
Sep 23, 2013, 6:04:27 AM9/23/13
to toscawidge...@googlegroups.com

Here is the error I get now.

Moritz Schlarb

unread,
Sep 24, 2013, 5:26:54 AM9/24/13
to toscawidge...@googlegroups.com
Try updating tw2.devtools and tw2.forms.

Using virtualenv is mostly always recommended when working with Python
projects that require external packages.
It makes it very easy to use different sets of packages (and versions)
for different projects or for figuring out compatibility issues.
And you can just throw them away and recreate them if something fails!

Try it, it's gonna be awesome.
> <https://github.com/toscawidgets/tw2.devtools/commit/d734bf586dd667205bbe22ea5bf9e34ee6885edf>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "ToscaWidgets-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to toscawidgets-dis...@googlegroups.com.
> To post to this group, send email to toscawidge...@googlegroups.com.
> Visit this group at http://groups.google.com/group/toscawidgets-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.

--
Moritz Schlarb

Lasha Kanchavely

unread,
Sep 24, 2013, 6:12:44 AM9/24/13
to toscawidge...@googlegroups.com
Hm, looks like everything is ok, but the server can't start. this is from apache log. "Timeout waiting for output from CGI script /banksyst/live/app/apache/tietoenator/bswsgi/myapp.py".

Thank you very much guys for your support and many apologies for my endless questions :(

Moritz Schlarb

unread,
Sep 24, 2013, 10:12:31 AM9/24/13
to toscawidge...@googlegroups.com
How is your Apache configured? CGI???
> > an email to toscawidgets-dis...@googlegroups.com
> <javascript:>.
> > To post to this group, send email to
> toscawidge...@googlegroups.com <javascript:>.
> <http://groups.google.com/group/toscawidgets-discuss>.
> > For more options, visit https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
> --
> Moritz Schlarb
>
> --
> You received this message because you are subscribed to the Google
> Groups "ToscaWidgets-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to toscawidgets-dis...@googlegroups.com.

Lasha Kanchavely

unread,
Sep 24, 2013, 11:06:29 AM9/24/13
to toscawidge...@googlegroups.com
It’s WSGI… I have different (CGI scripts and WSGI) scripts in different directories… for this particular directory I use - WSGI.

Lasha Kanchavely

unread,
Sep 27, 2013, 3:49:31 AM9/27/13
to toscawidge...@googlegroups.com
[root@unicorn bswsgi]# python2 myapp.py
Starting HTTP server on http://127.0.0.1:8000
Traceback (most recent call last):
  File "myapp.py", line 10, in <module>
    tw2.devtools.dev_server()
  File "/usr/local/lib/python2.7/site-packages/tw2/devtools/server.py", line 42, in dev_server
    request_queue_size=request_queue_size,
  File "/usr/local/lib/python2.7/site-packages/gearbox/commands/serve.py", line 832, in wsgiref_server_runner
    server.serve_forever()
  File "/usr/local/lib/python2.7/SocketServer.py", line 236, in serve_forever
    poll_interval)
  File "/usr/local/lib/python2.7/SocketServer.py", line 155, in _eintr_retry
    return func(*args)
KeyboardInterrupt
   <javascript:>.
To post to this group, send email to
   toscawidge...@googlegroups.com <javascript:>.
Visit this group at
   http://groups.google.com/group/toscawidgets-discuss
   <http://groups.google.com/group/toscawidgets-discuss>.
For more options, visit https://groups.google.com/groups/opt_out
   <https://groups.google.com/groups/opt_out>.

   -- 
   Moritz Schlarb

-- 
You received this message because you are subscribed to the Google
Groups "ToscaWidgets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send

-- 
Moritz Schlarb

-- 
You received this message because you are subscribed to the Google Groups "ToscaWidgets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to toscawidgets-discuss+unsub...@googlegroups.com.
To post to this group, send email to toscawidgets-discuss@googlegroups.com.

Moritz Schlarb

unread,
Sep 27, 2013, 5:08:36 AM9/27/13
to toscawidge...@googlegroups.com
I'm a bit confused, could you please tell us what exactly your problem
is right now?

On 27.09.2013 09:49, Lasha Kanchavely wrote:
> [root@unicorn bswsgi]# python2 myapp.py
> Starting HTTP server on http://127.0.0.1:8000
> Traceback (most recent call last):
> File "myapp.py", line 10, in <module>
> tw2.devtools.dev_server()
> File "/usr/local/lib/python2.7/site-packages/tw2/devtools/server.py",
> line 42, in dev_server
> request_queue_size=request_queue_size,
> File
> "/usr/local/lib/python2.7/site-packages/gearbox/commands/serve.py", line
> 832, in wsgiref_server_runner
> server.serve_forever()
> File "/usr/local/lib/python2.7/SocketServer.py", line 236, in
> serve_forever
> poll_interval)
> File "/usr/local/lib/python2.7/SocketServer.py", line 155, in _eintr_retry
> return func(*args)
> KeyboardInterrupt
>
>
> On Tuesday, September 24, 2013 7:06:29 PM UTC+4, Lasha Kanchavely wrote:
>
> It�s WSGI� I have different (CGI scripts and WSGI) scripts in
> different directories� for this particular directory I use - WSGI.
>
> On Sep 24, 2013, at 6:12 PM, Moritz Schlarb <mosc...@metalabs.de
>>>> an email to toscawidgets-dis...@googlegroups.com
>>>> <mailto:toscawidgets-dis...@googlegroups.com>
>>> <javascript:>.
>>>> To post to this group, send email to
>>> toscawidge...@googlegroups.com
>>> <http://googlegroups.com/> <javascript:>.
>>>> Visit this group at
>>> http://groups.google.com/group/toscawidgets-discuss
>>> <http://groups.google.com/group/toscawidgets-discuss>
>>> <http://groups.google.com/group/toscawidgets-discuss
>>> <http://groups.google.com/group/toscawidgets-discuss>>.
>>>> For more options, visit https://groups.google.com/groups/opt_out
>>>> <https://groups.google.com/groups/opt_out>
>>> <https://groups.google.com/groups/opt_out
>>> <https://groups.google.com/groups/opt_out>>.
>>>
>>> --
>>> Moritz Schlarb
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "ToscaWidgets-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send
>>> an email to toscawidgets-dis...@googlegroups.com
>>> <mailto:toscawidgets-dis...@googlegroups.com>.
>>> To post to this group, send email
>>> to toscawidge...@googlegroups.com
>>> <mailto:toscawidge...@googlegroups.com>.
>>> Visit this group at
>>> http://groups.google.com/group/toscawidgets-discuss
>>> <http://groups.google.com/group/toscawidgets-discuss>.
>>> For more options, visit https://groups.google.com/groups/opt_out
>>> <https://groups.google.com/groups/opt_out>.
>>
>> --
>> Moritz Schlarb
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "ToscaWidgets-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to toscawidgets-dis...@googlegroups.com
>> <mailto:toscawidgets-dis...@googlegroups.com>.
>> To post to this group, send email to
>> toscawidge...@googlegroups.com
>> <mailto:toscawidge...@googlegroups.com>.
> You received this message because you are subscribed to the Google
> Groups "ToscaWidgets-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to toscawidgets-dis...@googlegroups.com.
> To post to this group, send email to toscawidge...@googlegroups.com.

Lasha Kanchavely

unread,
Sep 27, 2013, 6:10:28 AM9/27/13
to toscawidge...@googlegroups.com
So, I do everything as in this tutorial (http://tw2core.readthedocs.org/en/latest/standalone/).  After I type python myapp.py . It says : Starting HTTP server on http://127.0.0.1:8000 and stucks.... when I stop the process (ctrl C) It gives this output
 [root@unicorn bswsgi]# python2 myapp.py
Starting HTTP server on http://127.0.0.1:8000
Traceback (most recent call last):
  File "myapp.py", line 10, in <module>
    tw2.devtools.dev_server()
  File "/usr/local/lib/python2.7/site-packages/tw2/devtools/server.py", line 42, in dev_server
    request_queue_size=request_queue_size,
  File "/usr/local/lib/python2.7/site-packages/gearbox/commands/serve.py", line 832, in wsgiref_server_runner
    server.serve_forever()
  File "/usr/local/lib/python2.7/SocketServer.py", line 225, in serve_forever
    r, w, e = select.select([self], [], [], poll_interval)
KeyboardInterrupt

>>>        <javascript:>.
>>>>     To post to this group, send email to
>>>        toscawidge...@googlegroups.com
>>>     <http://googlegroups.com/> <javascript:>.
>>>>     Visit this group at
>>>        http://groups.google.com/group/toscawidgets-discuss
>>>     <http://groups.google.com/group/toscawidgets-discuss>
>>>        <http://groups.google.com/group/toscawidgets-discuss
>>>     <http://groups.google.com/group/toscawidgets-discuss>>.
>>>>     For more options, visit https://groups.google.com/groups/opt_out
>>>>     <https://groups.google.com/groups/opt_out>
>>>        <https://groups.google.com/groups/opt_out
>>>     <https://groups.google.com/groups/opt_out>>.
>>>
>>>        --
>>>        Moritz Schlarb
>>>
>>>     --
>>>     You received this message because you are subscribed to the Google
>>>     Groups "ToscaWidgets-discuss" group.
>>>     To unsubscribe from this group and stop receiving emails from it,
>>>     send
>>>     To post to this group, send email
>>>     to toscawidge...@googlegroups.com
>>>     <mailto:toscawidge...@googlegroups.com>.
>>>     Visit this group at
>>>     http://groups.google.com/group/toscawidgets-discuss
>>>     <http://groups.google.com/group/toscawidgets-discuss>.
>>>     For more options, visit https://groups.google.com/groups/opt_out
>>>     <https://groups.google.com/groups/opt_out>.
>>
>>     --
>>     Moritz Schlarb
>>
>>     --
>>     You received this message because you are subscribed to the Google
>>     Groups "ToscaWidgets-discuss" group.
>>     To unsubscribe from this group and stop receiving emails from it,
>>     To post to this group, send email to
>>     toscawidge...@googlegroups.com
>>     <mailto:toscawidge...@googlegroups.com>.
>>     Visit this group at
>>     http://groups.google.com/group/toscawidgets-discuss
>>     <http://groups.google.com/group/toscawidgets-discuss>.
>>     For more options, visit https://groups.google.com/groups/opt_out
>>     <https://groups.google.com/groups/opt_out>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "ToscaWidgets-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send

Moritz Schlarb

unread,
Sep 27, 2013, 2:20:38 PM9/27/13
to toscawidge...@googlegroups.com
Looks quite normal to me... Maybe you're having resolving issues, have you tried really accessing it at http://127.0.0.1:8000 instead of http://localhost:8000 ?

You can easily change the port by writing tw2.devtools.dev_server(port=8080) there. For more options see https://github.com/toscawidgets/tw2.devtools/blob/develop/tw2/devtools/server.py#L3.

Craig Small

unread,
Sep 28, 2013, 10:03:04 PM9/28/13
to toscawidge...@googlegroups.com
On Fri, Sep 27, 2013 at 03:10:28AM -0700, Lasha Kanchavely wrote:
> type python myapp.py . It says : Starting HTTP server on
> http://127.0.0.1:8000 and stucks.... when I stop the process (ctrl C) It
> gives this output
It's supposed to be stuck, or rather not returing the command prompt.
It's a little webserver.
You then use a browser to go to http://127.0.0.1:8000/

Then, when you type ^C you get:
> r, w, e = select.select([self], [], [], poll_interval)
> KeyboardInterrupt
This is also exactly what you want to see, ^C is used to interrupt the
program.

Lasha Kanchavely

unread,
Sep 29, 2013, 5:11:02 AM9/29/13
to toscawidge...@googlegroups.com
Of course I tried to access it via web browser….. I can’t access it...

Moritz Schlarb

unread,
Sep 29, 2013, 8:36:13 AM9/29/13
to toscawidge...@googlegroups.com
Did you try the different URLs I posted above?
   <javascript:>.
To post to this group, send email to
   toscawidge...@googlegroups.com <javascript:>.
Visit this group at
   http://groups.google.com/group/toscawidgets-discuss
   <http://groups.google.com/group/toscawidgets-discuss>.
For more options, visit https://groups.google.com/groups/opt_out
   <https://groups.google.com/groups/opt_out>.

   -- 
   Moritz Schlarb

-- 
You received this message because you are subscribed to the Google
Groups "ToscaWidgets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send

To post to this group, send email to toscawidge...@googlegroups.com.
Visit this group at http://groups.google.com/group/toscawidgets-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
Moritz Schlarb

-- 
You received this message because you are subscribed to the Google Groups "ToscaWidgets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to toscawidgets-discuss+unsub...@googlegroups.com.

Lasha Kanchavely

unread,
Sep 29, 2013, 1:53:19 PM9/29/13
to toscawidge...@googlegroups.com
yes, I have tried… I’m not such a n00b :)))

To unsubscribe from this group and stop receiving emails from it, send an email to toscawidgets-dis...@googlegroups.com.

Craig Small

unread,
Sep 29, 2013, 6:12:25 PM9/29/13
to toscawidge...@googlegroups.com
On Sun, Sep 29, 2013 at 09:53:19PM +0400, Lasha Kanchavely wrote:
> yes, I have tried* I*m not such a n00b :)))
Sounds like a firewall type of problem or possibly SELINUX.
Have you tried just telnetting to the port? Some odd browser proxy
settings will do this too.

Lasha Kanchavely

unread,
Sep 30, 2013, 2:28:49 AM9/30/13
to toscawidge...@googlegroups.com, csm...@enc.com.au
both are disables...

Lasha Kanchavely

unread,
Oct 3, 2013, 1:38:27 AM10/3/13
to toscawidge...@googlegroups.com, csm...@enc.com.au
Hey guys... I did everything and it works fine :) the problem was, I was trying to reach the server from outside... 192.168.0.... and the server was running only on localhost. I changed the "host" parameter and now I can touch it from outside. Though I think I didn't get how all this is working.... If I just close the terminal window - the application stops working... I just don't get how to use all this.... I have a running web-site and I wan't to use jqgrid, dynforms etc.. on it.  I don't want the site to be accessible only from port 8080 (or 8000, it doesn't matter). I just want to use all this features on already running web-site (on port 80). Maybe I understood something differently ( I'm just learning).... Can you tell me how exactly TW2 is working and how to use it on web?  many thanks in advance.

Moritz Schlarb

unread,
Oct 3, 2013, 3:53:13 PM10/3/13
to toscawidge...@googlegroups.com
Ah, great that you have it working now! ;)

Well you will need to use tw2 widgets in your web application - you had
followed the Standalone Tutorial, but now you need to look at the
tutorials that also handle this integration.

How is your web application written? With what framework?

E.g. with TurboGears, there is a tutorial on the tw2 page:
http://tw2core.readthedocs.org/en/latest/turbogears/ and one on the tg2
page: https://turbogears.readthedocs.org/en/latest/cookbook/TwForms.html
> enc.com.au <http://enc.com.au>
> Debian GNU/Linux http://www.debian.org/ csmall at :
> debian.org <http://debian.org>
> GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B
> DF50 FEA5
>

Lasha Kanchavely

unread,
Oct 4, 2013, 7:09:51 AM10/4/13
to toscawidge...@googlegroups.com
Yes I'll try to use this tutorials but I don't understand ( or I don't deliver my question clearly), the principle of how all this works. The web is "old" and doesn't use any frameworks... so that's why I decided to start using tw2 and TG!. So I don't understand why I have to direct this service (framework) to a specific http server with a specific port? Can't I just use import in my .py pages? For Example I have a page with grid and want to use jqgrid (with tw2) on it... what should I do? TW is http://mysite:8080/something/ and my web is http://mysite/something.py....  maybe I understood something wrong??

P.S: when I start for example: gearbox tw2.browser, server .... etc... I have my terminal open... as soon as I close it - the application stops.... maybe the answer on my first question will be the same for this one too :)

Reply all
Reply to author
Forward
0 new messages