[web2py] Re: Scheduler in Windows

2016-04-02 Thread narges Rezaei
hi 
how and where use from "python web2py.py -K myapp" to start scheduler in 
pycharm (windows) . i use from "http://127.0.0.1:8000/main"; to run my 
program .

On Monday, December 9, 2013 at 11:32:52 AM UTC+3:30, Niphlod wrote:
>
> uhmwhat happens if you start it with
> web2py.py -K verificationdemo -D 0 
> ?
> (all lowercase)
>
> On Sunday, December 8, 2013 3:09:38 AM UTC+1, Massimo Mascaro wrote:
>>
>> Thanks a lot for the super quick answer! After reading your post I did 
>> try to create an empty model named scheduler.py and indeed the widget now 
>> allows me to start a worker for my app, so this does solve my issue!
>> One thing that confuses me is that when I start the source version in 
>> windows with the -K option I get still the widget popping up and no worker 
>> is automatically started. If I try to pass the -K option to the windows 
>> executable instead, after I created the model scheduler.py, I indeed get 
>> the worker to start and to behave correctly.
>>
>> Using the -K version on the executable I am also able to start multiple 
>> workers now, so I'm really in business. I'd still like to know why the 
>> source version does not behave as expected though:in my case passing the -K 
>> option it just goes straight to the widget as if I didn't pass any option:
>>
>> C:\web2py_src\web2py>web2py.py -K VerificationDemo -D0
>> No handlers could be found for logger "web2py"
>> web2py Web Framework
>> Created by Massimo Di Pierro, Copyright 2007-2013
>> Version 2.8.2-stable+timestamp.2013.11.28.13.54.07
>> Database drivers available: SQLite(sqlite3), MySQL(pymysql), 
>> PostgreSQL(pg8000), MSSQL(py
>>
>>
>> Maybe I'm missing something else?
>> Again thanks, I'm unblocked for now! :)
>>
>> Massimo
>>
>> On Saturday, December 7, 2013 5:00:09 AM UTC-8, Niphlod wrote:
>>>
>>> just tried on windows and it works.
>>> can you post additional details on how are you starting the scheduler 
>>> and what happens ?
>>> also, are you using the source version or the binary ?
>>>
>>> BTW: can you try starting it with
>>> web2py.py -K appname -D 0
>>> to see if there are additional details ?
>>>
>>> On Saturday, December 7, 2013 1:51:38 PM UTC+1, Niphlod wrote:

 uhm. I'll try and report back.
 BTW: the menu works only if you have a model called scheduler.py: it's 
 a convention if you want to use the menu because the widget can't know in 
 advance if an app has a scheduler or not.



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Scheduler in Windows

2013-12-11 Thread Niphlod
groan I really don't know what to tell to check.
did you try making another simple application with the scheduler and have 
that running to see if there is a problem within your app?


On Wednesday, December 11, 2013 6:54:01 AM UTC+1, Massimo Mascaro wrote:
>
> Sorry the late answer, I'm travelling...
> I tried with all lowercase, and I get the same behavior: I get the widget 
> popping up and no trace of any worker starting...
>
> Thanks,
> Massimo
>
> On Monday, December 9, 2013 12:02:52 AM UTC-8, Niphlod wrote:
>>
>> uhmwhat happens if you start it with
>> web2py.py -K verificationdemo -D 0 
>> ?
>> (all lowercase)
>>
>> On Sunday, December 8, 2013 3:09:38 AM UTC+1, Massimo Mascaro wrote:
>>>
>>> Thanks a lot for the super quick answer! After reading your post I did 
>>> try to create an empty model named scheduler.py and indeed the widget now 
>>> allows me to start a worker for my app, so this does solve my issue!
>>> One thing that confuses me is that when I start the source version in 
>>> windows with the -K option I get still the widget popping up and no worker 
>>> is automatically started. If I try to pass the -K option to the windows 
>>> executable instead, after I created the model scheduler.py, I indeed get 
>>> the worker to start and to behave correctly.
>>>
>>> Using the -K version on the executable I am also able to start multiple 
>>> workers now, so I'm really in business. I'd still like to know why the 
>>> source version does not behave as expected though:in my case passing the -K 
>>> option it just goes straight to the widget as if I didn't pass any option:
>>>
>>> C:\web2py_src\web2py>web2py.py -K VerificationDemo -D0
>>> No handlers could be found for logger "web2py"
>>> web2py Web Framework
>>> Created by Massimo Di Pierro, Copyright 2007-2013
>>> Version 2.8.2-stable+timestamp.2013.11.28.13.54.07
>>> Database drivers available: SQLite(sqlite3), MySQL(pymysql), 
>>> PostgreSQL(pg8000), MSSQL(py
>>>
>>>
>>> Maybe I'm missing something else?
>>> Again thanks, I'm unblocked for now! :)
>>>
>>> Massimo
>>>
>>> On Saturday, December 7, 2013 5:00:09 AM UTC-8, Niphlod wrote:

 just tried on windows and it works.
 can you post additional details on how are you starting the scheduler 
 and what happens ?
 also, are you using the source version or the binary ?

 BTW: can you try starting it with
 web2py.py -K appname -D 0
 to see if there are additional details ?

 On Saturday, December 7, 2013 1:51:38 PM UTC+1, Niphlod wrote:
>
> uhm. I'll try and report back.
> BTW: the menu works only if you have a model called scheduler.py: it's 
> a convention if you want to use the menu because the widget can't know in 
> advance if an app has a scheduler or not.
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Scheduler in Windows

2013-12-11 Thread Massimo Mascaro
Sorry the late answer, I'm travelling...
I tried with all lowercase, and I get the same behavior: I get the widget 
popping up and no trace of any worker starting...

Thanks,
Massimo

On Monday, December 9, 2013 12:02:52 AM UTC-8, Niphlod wrote:
>
> uhmwhat happens if you start it with
> web2py.py -K verificationdemo -D 0 
> ?
> (all lowercase)
>
> On Sunday, December 8, 2013 3:09:38 AM UTC+1, Massimo Mascaro wrote:
>>
>> Thanks a lot for the super quick answer! After reading your post I did 
>> try to create an empty model named scheduler.py and indeed the widget now 
>> allows me to start a worker for my app, so this does solve my issue!
>> One thing that confuses me is that when I start the source version in 
>> windows with the -K option I get still the widget popping up and no worker 
>> is automatically started. If I try to pass the -K option to the windows 
>> executable instead, after I created the model scheduler.py, I indeed get 
>> the worker to start and to behave correctly.
>>
>> Using the -K version on the executable I am also able to start multiple 
>> workers now, so I'm really in business. I'd still like to know why the 
>> source version does not behave as expected though:in my case passing the -K 
>> option it just goes straight to the widget as if I didn't pass any option:
>>
>> C:\web2py_src\web2py>web2py.py -K VerificationDemo -D0
>> No handlers could be found for logger "web2py"
>> web2py Web Framework
>> Created by Massimo Di Pierro, Copyright 2007-2013
>> Version 2.8.2-stable+timestamp.2013.11.28.13.54.07
>> Database drivers available: SQLite(sqlite3), MySQL(pymysql), 
>> PostgreSQL(pg8000), MSSQL(py
>>
>>
>> Maybe I'm missing something else?
>> Again thanks, I'm unblocked for now! :)
>>
>> Massimo
>>
>> On Saturday, December 7, 2013 5:00:09 AM UTC-8, Niphlod wrote:
>>>
>>> just tried on windows and it works.
>>> can you post additional details on how are you starting the scheduler 
>>> and what happens ?
>>> also, are you using the source version or the binary ?
>>>
>>> BTW: can you try starting it with
>>> web2py.py -K appname -D 0
>>> to see if there are additional details ?
>>>
>>> On Saturday, December 7, 2013 1:51:38 PM UTC+1, Niphlod wrote:

 uhm. I'll try and report back.
 BTW: the menu works only if you have a model called scheduler.py: it's 
 a convention if you want to use the menu because the widget can't know in 
 advance if an app has a scheduler or not.



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Scheduler in Windows

2013-12-09 Thread Niphlod
uhmwhat happens if you start it with
web2py.py -K verificationdemo -D 0 
?
(all lowercase)

On Sunday, December 8, 2013 3:09:38 AM UTC+1, Massimo Mascaro wrote:
>
> Thanks a lot for the super quick answer! After reading your post I did try 
> to create an empty model named scheduler.py and indeed the widget now 
> allows me to start a worker for my app, so this does solve my issue!
> One thing that confuses me is that when I start the source version in 
> windows with the -K option I get still the widget popping up and no worker 
> is automatically started. If I try to pass the -K option to the windows 
> executable instead, after I created the model scheduler.py, I indeed get 
> the worker to start and to behave correctly.
>
> Using the -K version on the executable I am also able to start multiple 
> workers now, so I'm really in business. I'd still like to know why the 
> source version does not behave as expected though:in my case passing the -K 
> option it just goes straight to the widget as if I didn't pass any option:
>
> C:\web2py_src\web2py>web2py.py -K VerificationDemo -D0
> No handlers could be found for logger "web2py"
> web2py Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2013
> Version 2.8.2-stable+timestamp.2013.11.28.13.54.07
> Database drivers available: SQLite(sqlite3), MySQL(pymysql), 
> PostgreSQL(pg8000), MSSQL(py
>
>
> Maybe I'm missing something else?
> Again thanks, I'm unblocked for now! :)
>
> Massimo
>
> On Saturday, December 7, 2013 5:00:09 AM UTC-8, Niphlod wrote:
>>
>> just tried on windows and it works.
>> can you post additional details on how are you starting the scheduler and 
>> what happens ?
>> also, are you using the source version or the binary ?
>>
>> BTW: can you try starting it with
>> web2py.py -K appname -D 0
>> to see if there are additional details ?
>>
>> On Saturday, December 7, 2013 1:51:38 PM UTC+1, Niphlod wrote:
>>>
>>> uhm. I'll try and report back.
>>> BTW: the menu works only if you have a model called scheduler.py: it's a 
>>> convention if you want to use the menu because the widget can't know in 
>>> advance if an app has a scheduler or not.
>>>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Scheduler in Windows

2013-12-07 Thread Massimo Mascaro
Thanks a lot for the super quick answer! After reading your post I did try 
to create an empty model named scheduler.py and indeed the widget now 
allows me to start a worker for my app, so this does solve my issue!
One thing that confuses me is that when I start the source version in 
windows with the -K option I get still the widget popping up and no worker 
is automatically started. If I try to pass the -K option to the windows 
executable instead, after I created the model scheduler.py, I indeed get 
the worker to start and to behave correctly.

Using the -K version on the executable I am also able to start multiple 
workers now, so I'm really in business. I'd still like to know why the 
source version does not behave as expected though:in my case passing the -K 
option it just goes straight to the widget as if I didn't pass any option:

C:\web2py_src\web2py>web2py.py -K VerificationDemo -D0
No handlers could be found for logger "web2py"
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2013
Version 2.8.2-stable+timestamp.2013.11.28.13.54.07
Database drivers available: SQLite(sqlite3), MySQL(pymysql), 
PostgreSQL(pg8000), MSSQL(py


Maybe I'm missing something else?
Again thanks, I'm unblocked for now! :)

Massimo

On Saturday, December 7, 2013 5:00:09 AM UTC-8, Niphlod wrote:
>
> just tried on windows and it works.
> can you post additional details on how are you starting the scheduler and 
> what happens ?
> also, are you using the source version or the binary ?
>
> BTW: can you try starting it with
> web2py.py -K appname -D 0
> to see if there are additional details ?
>
> On Saturday, December 7, 2013 1:51:38 PM UTC+1, Niphlod wrote:
>>
>> uhm. I'll try and report back.
>> BTW: the menu works only if you have a model called scheduler.py: it's a 
>> convention if you want to use the menu because the widget can't know in 
>> advance if an app has a scheduler or not.
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Scheduler in Windows

2013-12-07 Thread Niphlod
just tried on windows and it works.
can you post additional details on how are you starting the scheduler and 
what happens ?
also, are you using the source version or the binary ?

BTW: can you try starting it with
web2py.py -K appname -D 0
to see if there are additional details ?

On Saturday, December 7, 2013 1:51:38 PM UTC+1, Niphlod wrote:
>
> uhm. I'll try and report back.
> BTW: the menu works only if you have a model called scheduler.py: it's a 
> convention if you want to use the menu because the widget can't know in 
> advance if an app has a scheduler or not.
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Scheduler in Windows

2013-12-07 Thread Niphlod
uhm. I'll try and report back.
BTW: the menu works only if you have a model called scheduler.py: it's a 
convention if you want to use the menu because the widget can't know in 
advance if an app has a scheduler or not.

On Saturday, December 7, 2013 9:58:46 AM UTC+1, Ivo wrote:
>
> I was just about to open the same thread just replace windows with OSX :) 
> anyone? 
>
> On Saturday, December 7, 2013 1:38:18 AM UTC+1, Massimo Mascaro wrote:
>>
>> Hi,
>> I'm fairly new to web2py but I've developed a couple of apps already 
>> under Linux and had no issues so far.
>> I was delighted to see my apps work like a charm under a Windows 7 
>> machine as well, until... I started using the scheduler.
>>
>> I went through the docs I found, and I read and reread the topics on this 
>> post. On my version of web2py (2.8.2) I simply don't manage to get any 
>> scheduler worker running:
>> When I try manually to start a worker with the -K option, it gets totally 
>> ignored and I get the usual GUI popping up as if I didn't specify it at 
>> all. Note BTW that the GUI has a inspiring "Scheduler" option, but that 
>> doesn't seem to be implemented yet. I tried this both on the source version 
>> and on the compiled windows version.
>> The fact that it gets ignored is inferred by the fact that in the console 
>> output I don't see any message to specify that a worker has been started, 
>> and the normal server seems instead to take over...
>>
>> Can somebody give me a hint?
>>
>> Many thanks,
>> (another) Massimo
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Scheduler in Windows

2013-12-07 Thread Ivo
I was just about to open the same thread just replace windows with OSX :) 
anyone? 

On Saturday, December 7, 2013 1:38:18 AM UTC+1, Massimo Mascaro wrote:
>
> Hi,
> I'm fairly new to web2py but I've developed a couple of apps already under 
> Linux and had no issues so far.
> I was delighted to see my apps work like a charm under a Windows 7 machine 
> as well, until... I started using the scheduler.
>
> I went through the docs I found, and I read and reread the topics on this 
> post. On my version of web2py (2.8.2) I simply don't manage to get any 
> scheduler worker running:
> When I try manually to start a worker with the -K option, it gets totally 
> ignored and I get the usual GUI popping up as if I didn't specify it at 
> all. Note BTW that the GUI has a inspiring "Scheduler" option, but that 
> doesn't seem to be implemented yet. I tried this both on the source version 
> and on the compiled windows version.
> The fact that it gets ignored is inferred by the fact that in the console 
> output I don't see any message to specify that a worker has been started, 
> and the normal server seems instead to take over...
>
> Can somebody give me a hint?
>
> Many thanks,
> (another) Massimo
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.