[nagare-users:677] Re: Deployment options for 0.6

2020-08-26 Thread Henrik Härkönen
Ok, thank you for the very clarifying explanation! I think I can proceed 
with this. :)

-Henrik

On Wednesday, 26 August 2020 at 18:39:10 UTC+3 apoirier wrote:

> Le lundi 17 août 2020 08:41:00 UTC+2, Henrik Härkönen a écrit :
>>
>> Hi!
>>
>> If *pip install -e * gives a development deployment through 
>> gunicorn, what actually are the production deployment options for 0.6? Do 
>> the old instructions apply? What would be the preferred way?
>>
>
> In production an application is installed by a normal *pip install *
>
> With 0.5 the preferred way to served the application was:
>
>   * in development
>
>  - 'paste' HTTP server -- (WSGI protocol) -> application
>  - 'memory' sessions manager
>
>   * in production
>
>  - 'nginx' (or 'apache') reverse proxy -- (FastCGI protocol) --> 
> 'flup' FastCGI adapter -- (WSGI protocol) --> application
>  - 'memcache' sessions manager
>
> With 0.6:
>
>   * in development
>
>  - 'gunicorn' HTTP server --- (WSGI protocol) --> application
>  - 'memory' sessions manager
>
>   * in production
>
>  - 'nginx' (or 'apache') reverse proxy -- (proxy pass HTTP) --> 
> 'gunicorn' -- (WSGI protocol) --> application
>  - 'memcache' or 'redis' sessions manager
>
> So, with 0.6, the application is always served by 'gunicorn'. In 
> production, 'nginx' is added in front of it to serve the statics assets 
> (CSS, JS, images ...), handle HTTPS protocol, rewrite some URL if needed 
> ... Also in production, 'gunicorn' is better configurated with multiple 
> worker processus to utilize all the CPU cores of the server and bypass the 
> Python GIL limitation with threads. That's why, in this case, the sessions 
> must by store in an external 'memcache' or 'redis' server because processes 
> can't share sessions in RAM.
>
> Hint: the `nagare-commands-proxy` package adds the `nagare-admin proxy` 
> command to help generate the 'nginx' or 'apache' proxy pass configuration 
> fragment. 
>  
>
>> -Henrik
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nagare-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nagare-users/82142a42-db00-4162-a2a1-a0d478bd0275n%40googlegroups.com.


[nagare-users:675] Deployment options for 0.6

2020-08-17 Thread Henrik Härkönen
Hi!

If *pip install -e * gives a development deployment through gunicorn, 
what actually are the production deployment options for 0.6? Do the old 
instructions apply? What would be the preferred way?

-Henrik

-- 
You received this message because you are subscribed to the Google Groups 
"Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nagare-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nagare-users/a59d9cfa-ad7c-45a8-9417-ac903dcdfe01n%40googlegroups.com.


Re: [nagare-users:653] Re: Nagare should be upgraded to Python 3?

2020-08-05 Thread Henrik Härkönen
Hi all!

I just learned about Nagare and I find it fascinating and want to try it 
out!

But perhaps the Python 3 support would be needed urgently, because I can't 
get Nagare installed with the instructions, even with Stackless 2.7. Seems 
that external dependancies are moving on to Python 3, at least looks like 
it with Sphinx when running easy_install nagare[full] :

File "/tmp/easy_install-LkE8CS/Sphinx-3.1.2/sphinx/deprecation.py", line 32
def deprecated_alias(modname: str, objects: Dict, warning: 
"Type[Warning]") -> None:
^
SyntaxError: invalid syntax

Also pip is dropping Python 2 support after this year and also my hosting 
provider... :D

-Henrik
On Sunday, 11 November 2018 at 23:58:03 UTC+2 apoirier wrote:

> The 0.6 is not yet pushed to the public Github repositories
>
>
> Le samedi 10 novembre 2018 02:00:01 UTC+1, Terrence Brannon a écrit :
>
>> I'm not sure how to get version 0.6 but the github setup.py is using 
>> Python2 print statements 
>>  and 
>> that was the first problem I ran into when trying to do a Windows install 
>> via easy_install  today.
>>
> Le vendredi 9 novembre 2018 17:27:23 UTC+1, Terrence Brannon a écrit :

 I just noticed setup.py is using Python 2 syntax. Any plans to upgrade 
 to Python 3?

>>>
>>> Yep, the 0.6 also runs on Python 2.7 and Python >= 3.5
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Nagare users" group.
>>>
>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to nagare-users+unsubscr...@googlegroups.com.
>>
>>
>>> To post to this group, send email to nagare...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/nagare-users.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nagare-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nagare-users/40b56158-300c-43b7-a4b4-d105114893b3n%40googlegroups.com.


Re: [nagare-users:669] Re: Setting up 0.6

2020-08-13 Thread Henrik Härkönen
Now I get it to reload, but when changing the counter.py file, and the 
reloading triggers, the following stacktrace appears:

















*(venv) henrik:~/dev/nagare/examples-counter/counter/conf$ nagare-admin app 
serve examples-counter/counter/conf/counter.cfg2020-08-13 15:38:20,764 - 
INFO - nagare.publishers.gunicorn - Serving application `counter` on 
http://127.0.0.1:80802020-08-13 15:38:20,767 - INFO - 
nagare.publishers.gunicorn.worker - Starting gunicorn 20.0.42020-08-13 
15:38:20,801 - INFO - nagare.publishers.gunicorn.worker - Listening at: 
http://127.0.0.1:8080 (21491)2020-08-13 15:38:20,801 - INFO - 
nagare.publishers.gunicorn.worker - Using worker: gthread2020-08-13 
15:38:20,816 - INFO - nagare.publishers.gunicorn.worker - Booting worker 
with pid: 21495Exception in thread Thread-2:Traceback (most recent call 
last):  File 
"/home/henrik/.pyenv/versions/stackless-3.7.5/lib/python3.7/threading.py", 
line 926, in _bootstrap_innerself.run()  File 
"/home/henrik/dev/nagare/venv/lib/python3.7/site-packages/watchdog/observers/api.py",
 
line 203, in runself.dispatch_events(self.event_queue, self.timeout)  
File 
"/home/henrik/dev/nagare/venv/lib/python3.7/site-packages/watchdog/observers/api.py",
 
line 376, in dispatch_eventshandler.dispatch(event)  File 
"/home/henrik/dev/nagare/venv/lib/python3.7/site-packages/nagare/services/reloader.py",
 
line 101, in dispatchmtime2 = 
os.stat(filename).st_mtimeFileNotFoundError: [Errno 2] No such file or 
directory: '/home/henrik/dev/nagare/examples-counter/counter/counter.py'*

On Thursday, 13 August 2020 at 15:28:55 UTC+3 Henrik Härkönen wrote:

> Ah, a separate package for that, of course! Thanks!
>
> On Thu, Aug 13, 2020 at 3:26 PM apoirier  wrote:
>
>> To install your application in development mode with 'pip' : pip install 
>> *-e* 
>>
>> To activate automatic reloading, just install the 
>> 'nagare-services-reloader' service
>>
>> Le jeudi 13 août 2020 14:21:39 UTC+2, Henrik Härkönen a écrit :
>>>
>>> Btw, 
>>>
>>> I cannot find the *--reload* option for the serve command. How can I 
>>> activate the hot-reload? I tried to install the app in development mode by 
>>> runnint setup.py with "develop" option.
>>>
>>>
>>> -Henrik
>>> On Thursday, 13 August 2020 at 14:57:21 UTC+3 Henrik Härkönen wrote:
>>>
>>>> Hi!
>>>>
>>>> I haven't had too much time to learn nagare stuff yet, but I thought 
>>>> I'd share the dependacies for others as well, for easier install.
>>>>
>>>> So put these into a txt file, for example *requirements.txt*
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> *git+https://github.com/nagareproject/services.git 
>>>> <https://github.com/nagareproject/services.git>git+https://github.com/nagareproject/services-statics.git
>>>>  
>>>> <https://github.com/nagareproject/services-statics.git>git+https://github.com/nagareproject/services-router.git
>>>>  
>>>> <https://github.com/nagareproject/services-router.git>git+https://github.com/nagareproject/commands.git
>>>>  
>>>> <https://github.com/nagareproject/commands.git>git+https://github.com/nagareproject/commands-base.git
>>>>  
>>>> <https://github.com/nagareproject/commands-base.git>git+https://github.com/nagareproject/services-logging.git
>>>>  
>>>> <https://github.com/nagareproject/services-logging.git>git+https://github.com/nagareproject/server.git
>>>>  
>>>> <https://github.com/nagareproject/server.git>git+https://github.com/nagareproject/server-http.git
>>>>  
>>>> <https://github.com/nagareproject/server-http.git>git+https://github.com/nagareproject/services-i18n.git
>>>>  
>>>> <https://github.com/nagareproject/services-i18n.git>git+https://github.com/nagareproject/editor.git
>>>>  
>>>> <https://github.com/nagareproject/editor.git>git+https://github.com/nagareproject/renderers-xml.git
>>>>  
>>>> <https://github.com/nagareproject/renderers-xml.git>git+https://github.com/nagareproject/renderers-html.git
>>>>  
>>>> <https://github.com/nagareproject/renderers-html.git>git+https://github.com/nagareproject/server-mvc.git
>>>>  
>>>> <https://github.com/nagareproject/ser

Re: [nagare-users:666] Re: Setting up 0.6

2020-08-13 Thread Henrik Härkönen
Btw, 

I cannot find the *--reload* option for the serve command. How can I 
activate the hot-reload? I tried to install the app in development mode by 
runnint setup.py with "develop" option.


-Henrik
On Thursday, 13 August 2020 at 14:57:21 UTC+3 Henrik Härkönen wrote:

> Hi!
>
> I haven't had too much time to learn nagare stuff yet, but I thought I'd 
> share the dependacies for others as well, for easier install.
>
> So put these into a txt file, for example *requirements.txt*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *git+https://github.com/nagareproject/services.git 
> <https://github.com/nagareproject/services.git>git+https://github.com/nagareproject/services-statics.git
>  
> <https://github.com/nagareproject/services-statics.git>git+https://github.com/nagareproject/services-router.git
>  
> <https://github.com/nagareproject/services-router.git>git+https://github.com/nagareproject/commands.git
>  
> <https://github.com/nagareproject/commands.git>git+https://github.com/nagareproject/commands-base.git
>  
> <https://github.com/nagareproject/commands-base.git>git+https://github.com/nagareproject/services-logging.git
>  
> <https://github.com/nagareproject/services-logging.git>git+https://github.com/nagareproject/server.git
>  
> <https://github.com/nagareproject/server.git>git+https://github.com/nagareproject/server-http.git
>  
> <https://github.com/nagareproject/server-http.git>git+https://github.com/nagareproject/services-i18n.git
>  
> <https://github.com/nagareproject/services-i18n.git>git+https://github.com/nagareproject/editor.git
>  
> <https://github.com/nagareproject/editor.git>git+https://github.com/nagareproject/renderers-xml.git
>  
> <https://github.com/nagareproject/renderers-xml.git>git+https://github.com/nagareproject/renderers-html.git
>  
> <https://github.com/nagareproject/renderers-html.git>git+https://github.com/nagareproject/server-mvc.git
>  
> <https://github.com/nagareproject/server-mvc.git>git+https://github.com/nagareproject/services-sessions.git
>  
> <https://github.com/nagareproject/services-sessions.git>git+https://github.com/nagareproject/publishers-gunicorn.git
>  
> <https://github.com/nagareproject/publishers-gunicorn.git>git+https://github.com/nagareproject/sessions-memory.git
>  
> <https://github.com/nagareproject/sessions-memory.git>git+https://github.com/nagareproject/core.git
>  
> <https://github.com/nagareproject/core.git>*
>
> and run *pip install -r requirements.txt*
>
> Note that with the git+https requirements, the order seems to be 
> significant, so copy that list as it is.
>
> -Henrik
> On Thursday, 6 August 2020 at 16:22:48 UTC+3 Henrik Härkönen wrote:
>
>> Alright! Installing the session manager and publisher, and then 
>> installing that example app and running it with 
>>
>>
>> *nagare-admin app serve examples-counter/counter/conf/counter.cfg *
>>
>> did the trick, thanks!
>>
>> -Henrik
>>
>> On Wed, Aug 5, 2020 at 11:44 PM apoirier  wrote:
>>
>>> The lack of proper documentation is why version 0.6 is not yet published 
>>> on Pypi.
>>>
>>> Here is a port of the simple counter example of Nagare 0.5 tutorial part 
>>> 2 <https://www.nagare.org/doc/tutorial2.html> and 3 
>>> <https://www.nagare.org/doc/tutorial3.html>.
>>>
>>> Into the 'examples-counter' directory, register the application with 
>>> 'pip install -e .' then launch it with 'nagare-admin app serve 
>>> counter/conf/counter.cfg'
>>>
>>> Hope that will help you to start,
>>>
>>> Alain
>>>
>>> Le mercredi 5 août 2020 19:27:42 UTC+2, Henrik Härkönen a écrit :
>>>>
>>>> Hi Alain!
>>>>
>>>> Some another "new user OOBE issues" with setting up the 0.6:
>>>>
>>>> The tutorial in the web page tells to use command
>>>>
>>>> *nagare-admin create-app tutorial*
>>>>
>>>> but seems there is no such command anymore. I then found and installed 
>>>> the module 
>>>> 'commands-app-create' and then used *nagare-admin app create tutorial* 
>>>> but the response was
>>>>
>>>> *No module named 'nagare.templates*
>>>>
>>>> So I presume there is some package that has the templates, but perhaps 
>>>> not published yet? The commands-app-create package has a reference:
>>>>
>>>> *NAGARE_TEMPLATES_REPOSITORY = 
>>>>

Re: [nagare-users:665] Re: Setting up 0.6

2020-08-13 Thread Henrik Härkönen
Hi!

I haven't had too much time to learn nagare stuff yet, but I thought I'd 
share the dependacies for others as well, for easier install.

So put these into a txt file, for example *requirements.txt*

















*git+https://github.com/nagareproject/services.gitgit+https://github.com/nagareproject/services-statics.gitgit+https://github.com/nagareproject/services-router.gitgit+https://github.com/nagareproject/commands.gitgit+https://github.com/nagareproject/commands-base.gitgit+https://github.com/nagareproject/services-logging.gitgit+https://github.com/nagareproject/server.gitgit+https://github.com/nagareproject/server-http.gitgit+https://github.com/nagareproject/services-i18n.gitgit+https://github.com/nagareproject/editor.gitgit+https://github.com/nagareproject/renderers-xml.gitgit+https://github.com/nagareproject/renderers-html.gitgit+https://github.com/nagareproject/server-mvc.gitgit+https://github.com/nagareproject/services-sessions.gitgit+https://github.com/nagareproject/publishers-gunicorn.gitgit+https://github.com/nagareproject/sessions-memory.gitgit+https://github.com/nagareproject/core.git*

and run *pip install -r requirements.txt*

Note that with the git+https requirements, the order seems to be 
significant, so copy that list as it is.

-Henrik
On Thursday, 6 August 2020 at 16:22:48 UTC+3 Henrik Härkönen wrote:

> Alright! Installing the session manager and publisher, and then installing 
> that example app and running it with 
>
>
> *nagare-admin app serve examples-counter/counter/conf/counter.cfg *
>
> did the trick, thanks!
>
> -Henrik
>
> On Wed, Aug 5, 2020 at 11:44 PM apoirier  wrote:
>
>> The lack of proper documentation is why version 0.6 is not yet published 
>> on Pypi.
>>
>> Here is a port of the simple counter example of Nagare 0.5 tutorial part 
>> 2 <https://www.nagare.org/doc/tutorial2.html> and 3 
>> <https://www.nagare.org/doc/tutorial3.html>.
>>
>> Into the 'examples-counter' directory, register the application with 'pip 
>> install -e .' then launch it with 'nagare-admin app serve 
>> counter/conf/counter.cfg'
>>
>> Hope that will help you to start,
>>
>> Alain
>>
>> Le mercredi 5 août 2020 19:27:42 UTC+2, Henrik Härkönen a écrit :
>>>
>>> Hi Alain!
>>>
>>> Some another "new user OOBE issues" with setting up the 0.6:
>>>
>>> The tutorial in the web page tells to use command
>>>
>>> *nagare-admin create-app tutorial*
>>>
>>> but seems there is no such command anymore. I then found and installed 
>>> the module 
>>> 'commands-app-create' and then used *nagare-admin app create tutorial* 
>>> but the response was
>>>
>>> *No module named 'nagare.templates*
>>>
>>> So I presume there is some package that has the templates, but perhaps 
>>> not published yet? The commands-app-create package has a reference:
>>>
>>> *NAGARE_TEMPLATES_REPOSITORY = 
>>> 'https://github.com/nagareproject/nagare-templates.git#{0} 
>>> <https://github.com/nagareproject/nagare-templates.git#%7B0%7D>' *
>>>
>>> but that repository gives 404.
>>>
>>> -Henrik
>>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Nagare users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/nagare-users/GPxwZ2483OA/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> nagare-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/nagare-users/febd40be-5e9a-4519-b6dd-7d254d3aff4do%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/nagare-users/febd40be-5e9a-4519-b6dd-7d254d3aff4do%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nagare-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nagare-users/aa782eb5-872a-44bc-97cd-fd16d67f49e1n%40googlegroups.com.


Re: [nagare-users:667] Re: Setting up 0.6

2020-08-13 Thread Henrik Härkönen
Ah, a separate package for that, of course! Thanks!

On Thu, Aug 13, 2020 at 3:26 PM apoirier  wrote:

> To install your application in development mode with 'pip' : pip install
> *-e* 
>
> To activate automatic reloading, just install the
> 'nagare-services-reloader' service
>
> Le jeudi 13 août 2020 14:21:39 UTC+2, Henrik Härkönen a écrit :
>>
>> Btw,
>>
>> I cannot find the *--reload* option for the serve command. How can I
>> activate the hot-reload? I tried to install the app in development mode by
>> runnint setup.py with "develop" option.
>>
>>
>> -Henrik
>> On Thursday, 13 August 2020 at 14:57:21 UTC+3 Henrik Härkönen wrote:
>>
>>> Hi!
>>>
>>> I haven't had too much time to learn nagare stuff yet, but I thought I'd
>>> share the dependacies for others as well, for easier install.
>>>
>>> So put these into a txt file, for example *requirements.txt*
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *git+https://github.com/nagareproject/services.git
>>> <https://github.com/nagareproject/services.git>git+https://github.com/nagareproject/services-statics.git
>>> <https://github.com/nagareproject/services-statics.git>git+https://github.com/nagareproject/services-router.git
>>> <https://github.com/nagareproject/services-router.git>git+https://github.com/nagareproject/commands.git
>>> <https://github.com/nagareproject/commands.git>git+https://github.com/nagareproject/commands-base.git
>>> <https://github.com/nagareproject/commands-base.git>git+https://github.com/nagareproject/services-logging.git
>>> <https://github.com/nagareproject/services-logging.git>git+https://github.com/nagareproject/server.git
>>> <https://github.com/nagareproject/server.git>git+https://github.com/nagareproject/server-http.git
>>> <https://github.com/nagareproject/server-http.git>git+https://github.com/nagareproject/services-i18n.git
>>> <https://github.com/nagareproject/services-i18n.git>git+https://github.com/nagareproject/editor.git
>>> <https://github.com/nagareproject/editor.git>git+https://github.com/nagareproject/renderers-xml.git
>>> <https://github.com/nagareproject/renderers-xml.git>git+https://github.com/nagareproject/renderers-html.git
>>> <https://github.com/nagareproject/renderers-html.git>git+https://github.com/nagareproject/server-mvc.git
>>> <https://github.com/nagareproject/server-mvc.git>git+https://github.com/nagareproject/services-sessions.git
>>> <https://github.com/nagareproject/services-sessions.git>git+https://github.com/nagareproject/publishers-gunicorn.git
>>> <https://github.com/nagareproject/publishers-gunicorn.git>git+https://github.com/nagareproject/sessions-memory.git
>>> <https://github.com/nagareproject/sessions-memory.git>git+https://github.com/nagareproject/core.git
>>> <https://github.com/nagareproject/core.git>*
>>>
>>> and run *pip install -r requirements.txt*
>>>
>>> Note that with the git+https requirements, the order seems to be
>>> significant, so copy that list as it is.
>>>
>>> -Henrik
>>> On Thursday, 6 August 2020 at 16:22:48 UTC+3 Henrik Härkönen wrote:
>>>
>>>> Alright! Installing the session manager and publisher, and then
>>>> installing that example app and running it with
>>>>
>>>>
>>>> *nagare-admin app serve examples-counter/counter/conf/counter.cfg *
>>>>
>>>> did the trick, thanks!
>>>>
>>>> -Henrik
>>>>
>>>> On Wed, Aug 5, 2020 at 11:44 PM apoirier  wrote:
>>>>
>>>>> The lack of proper documentation is why version 0.6 is not yet
>>>>> published on Pypi.
>>>>>
>>>>> Here is a port of the simple counter example of Nagare 0.5 tutorial part
>>>>> 2 <https://www.nagare.org/doc/tutorial2.html> and 3
>>>>> <https://www.nagare.org/doc/tutorial3.html>.
>>>>>
>>>>> Into the 'examples-counter' directory, register the application with
>>>>> 'pip install -e .' then launch it with 'nagare-admin app serve
>>>>> counter/conf/counter.cfg'
>>>>>
>>>>> Hope that will help you to start,
>>>>>
>>>>> Alain
>>>>>
>>>>> Le mercredi 5 août 2020 

Re: [nagare-users:671] Re: Setting up 0.6

2020-08-13 Thread Henrik Härkönen
Now it works, thank you for the fix! :)

-H

-- 
You received this message because you are subscribed to the Google Groups 
"Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nagare-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nagare-users/8de8cbc6-b4e2-4da2-a652-66004d3ee1d4n%40googlegroups.com.


[nagare-users:672] https://www.nagare.org/demo is down

2020-08-13 Thread Henrik Härkönen
Has been for a couple of days, it seems. Also /portal and /wiki which are 
linked from the nagare.org page.

-H

-- 
You received this message because you are subscribed to the Google Groups 
"Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nagare-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nagare-users/58f911e3-91e0-4250-a073-f30a176727b7n%40googlegroups.com.


[nagare-users:674] Nagare is brilliant

2020-08-13 Thread Henrik Härkönen
I'm starting to get hang of it, I hope. :D

I just wanted to shout out the subject, because I feel SO frustrated at my 
day job, where we can spend so, so many days just tweaking how stuff 
serializes into JSON and back and concentrate on how data flows between the 
server and client. Why the  should I care about that!? It has been 
solved already so many times, why invent the wheel over and over again? Why 
can't we have nice things, why can't we just concentrate bringing value to 
customers? I guess developers have always been good at finding more work 
for them. It's easier just to stay in your sandbox and play with your own 
toys... :D

*This is why I feel a framework like Nagare is the right path for me.*

-Henrik

-- 
You received this message because you are subscribed to the Google Groups 
"Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nagare-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nagare-users/400d73fa-b403-41c4-8cc4-959d835db3den%40googlegroups.com.


Re: [nagare-users:657] Re: Nagare should be upgraded to Python 3?

2020-08-05 Thread Henrik Härkönen
I haven't tried to "pip" from GitHub before, but is this how it is supposed 
to work?


* pip install git+https://github.com/nagareproject/core.git*
It installed WebOb and cryptography packages, but after that tried and 
failed to find "nagare-editor":




*Collecting nagare-editor (from nagare==0.5.1.dev56+gcb91550)  ERROR: Could 
not find a version that satisfies the requirement nagare-editor (from 
nagare==0.5.1.dev56+gcb91550) (from versions: none)ERROR: No matching 
distribution found for nagare-editor (from nagare==0.5.1.dev56+gcb91550)*

There seems to be no such repository in GitHub or package in PyPI.

-Henrik
On Wednesday, 5 August 2020 at 14:06:44 UTC+3 Henrik Härkönen wrote:

> Thank you for very quick reply! :)
>
> I'll take a look today! 
>
> -Henrik
>
> On Wednesday, 5 August 2020 at 13:57:13 UTC+3 apoirier wrote:
>
>> Hi,
>>
>> The Nagare 0.6 repositories (https://github.com/nagareproject) run on 
>> Python 3 and are installable with Pip.
>>
>> I just push the latest commits if you want to take a look.
>>
>> Best regards
>> Alain
>>
>> Le mercredi 5 août 2020 à 11:23:22 UTC+2, heha...@gmail.com a écrit :
>>
>>> Hi all!
>>>
>>> I just learned about Nagare and I find it fascinating and want to try it 
>>> out!
>>>
>>> But perhaps the Python 3 support would be needed urgently, because I 
>>> can't get Nagare installed with the instructions, even with Stackless 2.7. 
>>> Seems that external dependancies are moving on to Python 3, at least looks 
>>> like it with Sphinx when running easy_install nagare[full] :
>>>
>>> File "/tmp/easy_install-LkE8CS/Sphinx-3.1.2/sphinx/deprecation.py", line 
>>> 32
>>> def deprecated_alias(modname: str, objects: Dict, warning: 
>>> "Type[Warning]") -> None:
>>> ^
>>> SyntaxError: invalid syntax
>>>
>>> Also pip is dropping Python 2 support after this year and also my 
>>> hosting provider... :D
>>>
>>> -Henrik
>>> On Sunday, 11 November 2018 at 23:58:03 UTC+2 apoirier wrote:
>>>
>>>> The 0.6 is not yet pushed to the public Github repositories
>>>>
>>>>
>>>> Le samedi 10 novembre 2018 02:00:01 UTC+1, Terrence Brannon a écrit :
>>>>
>>>>> I'm not sure how to get version 0.6 but the github setup.py is using 
>>>>> Python2 print statements 
>>>>> <https://github.com/nagareproject/core/blob/master/setup.py#L30> and 
>>>>> that was the first problem I ran into when trying to do a Windows install 
>>>>> via easy_install  today.
>>>>>
>>>> Le vendredi 9 novembre 2018 17:27:23 UTC+1, Terrence Brannon a écrit :
>>>>>>>
>>>>>>> I just noticed setup.py is using Python 2 syntax. Any plans to 
>>>>>>> upgrade to Python 3?
>>>>>>>
>>>>>>
>>>>>> Yep, the 0.6 also runs on Python 2.7 and Python >= 3.5
>>>>>>
>>>>>> -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "Nagare users" group.
>>>>>>
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>>> an email to nagare-users...@googlegroups.com.
>>>>>
>>>>>
>>>>>> To post to this group, send email to nagare...@googlegroups.com.
>>>>>> Visit this group at https://groups.google.com/group/nagare-users.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nagare-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nagare-users/63d8bf2d-5e26-4565-964e-b6107ca06b45n%40googlegroups.com.


Re: [nagare-users:656] Re: Nagare should be upgraded to Python 3?

2020-08-05 Thread Henrik Härkönen
Thank you for very quick reply! :)

I'll take a look today! 

-Henrik

On Wednesday, 5 August 2020 at 13:57:13 UTC+3 apoirier wrote:

> Hi,
>
> The Nagare 0.6 repositories (https://github.com/nagareproject) run on 
> Python 3 and are installable with Pip.
>
> I just push the latest commits if you want to take a look.
>
> Best regards
> Alain
>
> Le mercredi 5 août 2020 à 11:23:22 UTC+2, heha...@gmail.com a écrit :
>
>> Hi all!
>>
>> I just learned about Nagare and I find it fascinating and want to try it 
>> out!
>>
>> But perhaps the Python 3 support would be needed urgently, because I 
>> can't get Nagare installed with the instructions, even with Stackless 2.7. 
>> Seems that external dependancies are moving on to Python 3, at least looks 
>> like it with Sphinx when running easy_install nagare[full] :
>>
>> File "/tmp/easy_install-LkE8CS/Sphinx-3.1.2/sphinx/deprecation.py", line 
>> 32
>> def deprecated_alias(modname: str, objects: Dict, warning: 
>> "Type[Warning]") -> None:
>> ^
>> SyntaxError: invalid syntax
>>
>> Also pip is dropping Python 2 support after this year and also my hosting 
>> provider... :D
>>
>> -Henrik
>> On Sunday, 11 November 2018 at 23:58:03 UTC+2 apoirier wrote:
>>
>>> The 0.6 is not yet pushed to the public Github repositories
>>>
>>>
>>> Le samedi 10 novembre 2018 02:00:01 UTC+1, Terrence Brannon a écrit :
>>>
 I'm not sure how to get version 0.6 but the github setup.py is using 
 Python2 print statements 
  and 
 that was the first problem I ran into when trying to do a Windows install 
 via easy_install  today.

>>> Le vendredi 9 novembre 2018 17:27:23 UTC+1, Terrence Brannon a écrit :
>>
>> I just noticed setup.py is using Python 2 syntax. Any plans to 
>> upgrade to Python 3?
>>
>
> Yep, the 0.6 also runs on Python 2.7 and Python >= 3.5
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Nagare users" group.
>
 To unsubscribe from this group and stop receiving emails from it, send 
> an email to nagare-users...@googlegroups.com.


> To post to this group, send email to nagare...@googlegroups.com.
> Visit this group at https://groups.google.com/group/nagare-users.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
You received this message because you are subscribed to the Google Groups 
"Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nagare-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nagare-users/815dd39a-1f91-4c9b-98bf-82de04282e09n%40googlegroups.com.


[nagare-users:661] Setting up 0.6

2020-08-05 Thread Henrik Härkönen
Hi Alain!

Some another "new user OOBE issues" with setting up the 0.6:

The tutorial in the web page tells to use command

*nagare-admin create-app tutorial*

but seems there is no such command anymore. I then found and installed the 
module 
'commands-app-create' and then used *nagare-admin app create tutorial* but 
the response was

*No module named 'nagare.templates*

So I presume there is some package that has the templates, but perhaps not 
published yet? The commands-app-create package has a reference:

*NAGARE_TEMPLATES_REPOSITORY = 
'https://github.com/nagareproject/nagare-templates.git#{0}' *

but that repository gives 404.

-Henrik

-- 
You received this message because you are subscribed to the Google Groups 
"Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nagare-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nagare-users/9dab0b43-f87b-4e58-a467-9b367e254cfen%40googlegroups.com.


Re: [nagare-users:658] Re: Nagare should be upgraded to Python 3?

2020-08-05 Thread Henrik Härkönen
Thanks! I'll give it a go.

Yeah, I was mentally preparing for installing them all by hand, haha 
It's good enough for now when learning the ropes.

-Henrik

On Wed, Aug 5, 2020 at 6:59 PM apoirier  wrote:

> Le mercredi 5 août 2020 à 15:42:01 UTC+2, heha...@gmail.com a écrit :
>
>> I haven't tried to "pip" from GitHub before, but is this how it is
>> supposed to work?
>>
>>
>> * pip install git+https://github.com/nagareproject/core.git
>> <https://github.com/nagareproject/core.git>*
>> It installed WebOb and cryptography packages, but after that tried and
>> failed to find "nagare-editor":
>>
>>
>>
>>
>> *Collecting nagare-editor (from nagare==0.5.1.dev56+gcb91550)  ERROR:
>> Could not find a version that satisfies the requirement nagare-editor (from
>> nagare==0.5.1.dev56+gcb91550) (from versions: none)ERROR: No matching
>> distribution found for nagare-editor (from nagare==0.5.1.dev56+gcb91550)*
>>
>> There seems to be no such repository in GitHub or package in PyPI.
>>
>
> Right. Repository (https://github.com/nagareproject/editor) pushed now
>
> But, the problem is, without Nagare 0.6 packages available in PyPi yet,
> you will have to manually 'pip install git+...' all the Nagare packages you
> need. Hmmm, doable but not fun ...
>
>
>> -Henrik
>> On Wednesday, 5 August 2020 at 14:06:44 UTC+3 Henrik Härkönen wrote:
>>
>>> Thank you for very quick reply! :)
>>>
>>> I'll take a look today!
>>>
>>> -Henrik
>>>
>>> On Wednesday, 5 August 2020 at 13:57:13 UTC+3 apoirier wrote:
>>>
>>>> Hi,
>>>>
>>>> The Nagare 0.6 repositories (https://github.com/nagareproject) run on
>>>> Python 3 and are installable with Pip.
>>>>
>>>> I just push the latest commits if you want to take a look.
>>>>
>>>> Best regards
>>>> Alain
>>>>
>>>> Le mercredi 5 août 2020 à 11:23:22 UTC+2, heha...@gmail.com a écrit :
>>>>
>>>>> Hi all!
>>>>>
>>>>> I just learned about Nagare and I find it fascinating and want to try
>>>>> it out!
>>>>>
>>>>> But perhaps the Python 3 support would be needed urgently, because I
>>>>> can't get Nagare installed with the instructions, even with Stackless 2.7.
>>>>> Seems that external dependancies are moving on to Python 3, at least looks
>>>>> like it with Sphinx when running easy_install nagare[full] :
>>>>>
>>>>> File "/tmp/easy_install-LkE8CS/Sphinx-3.1.2/sphinx/deprecation.py",
>>>>> line 32
>>>>> def deprecated_alias(modname: str, objects: Dict, warning:
>>>>> "Type[Warning]") -> None:
>>>>> ^
>>>>> SyntaxError: invalid syntax
>>>>>
>>>>> Also pip is dropping Python 2 support after this year and also my
>>>>> hosting provider... :D
>>>>>
>>>>> -Henrik
>>>>> On Sunday, 11 November 2018 at 23:58:03 UTC+2 apoirier wrote:
>>>>>
>>>>>> The 0.6 is not yet pushed to the public Github repositories
>>>>>>
>>>>>>
>>>>>> Le samedi 10 novembre 2018 02:00:01 UTC+1, Terrence Brannon a écrit :
>>>>>>
>>>>>>> I'm not sure how to get version 0.6 but the github setup.py is
>>>>>>> using Python2 print statements
>>>>>>> <https://github.com/nagareproject/core/blob/master/setup.py#L30>
>>>>>>> and that was the first problem I ran into when trying to do a Windows
>>>>>>> install via easy_install  today.
>>>>>>>
>>>>>> Le vendredi 9 novembre 2018 17:27:23 UTC+1, Terrence Brannon a écrit :
>>>>>>>>>
>>>>>>>>> I just noticed setup.py is using Python 2 syntax. Any plans to
>>>>>>>>> upgrade to Python 3?
>>>>>>>>>
>>>>>>>>
>>>>>>>> Yep, the 0.6 also runs on Python 2.7 and Python >= 3.5
>>>>>>>>
>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "Nagare users" group.
>>>>>>>>
>>>>>>> To unsubscribe from

Re: [nagare-users:660] Re: Nagare should be upgraded to Python 3?

2020-08-05 Thread Henrik Härkönen
Well, it was definitely not fun, but made it! :D

*nagare-admin info*

gives:


























*Cpython 3.7.5 Stackless 3.7 (default, Jul 27 2020, 16:37:35) [GCC 8.3.1 
20190518 (for GNAT Community 2019 20190517)]User configuration [NOT FOUND]: 
  /home/henrik/.local/share/nagare/nagare.cfgNagare packages:  
Package  Version    
  nagare   0.5.1.dev56+gcb91550  
nagare-commands  0.6a2.dev5+gbf7c579   nagare-commands-base 
0.6a2.dev12+g919c164  nagare-editor0.1.dev3+g5f15d33 
nagare-renderers-html0.6a2.dev6+gfd008de   nagare-renderers-xml 
0.6a2.dev2+g94a14a7   nagare-server0.6a2.dev19+g6f70ffb  
nagare-server-http   0.6a2.dev16+g8a0e983  nagare-server-mvc
0.6a2.dev16+ge0e66c2  nagare-services  2.0.1.dev7+ga7aca7a   
nagare-services-i18n 0.6a2.dev7+g9774df4   nagare-services-logging  
0.6a2.dev6+g58a8a5a   nagare-services-router   0.6a2.dev2+gd696b78   
nagare-services-sessions 0.1.dev10+gba32e6fnagare-services-statics  
0.6a2.dev7+gceb7774 *

so I guess I'm good to go!

Thanks,
Henrik.

On Wednesday, 5 August 2020 at 19:53:46 UTC+3 Henrik Härkönen wrote:

> Thanks! I'll give it a go.
>
> Yeah, I was mentally preparing for installing them all by hand, haha  
> It's good enough for now when learning the ropes.
>
> -Henrik
>
> On Wed, Aug 5, 2020 at 6:59 PM apoirier  wrote:
>
>> Le mercredi 5 août 2020 à 15:42:01 UTC+2, heha...@gmail.com a écrit :
>>
>>> I haven't tried to "pip" from GitHub before, but is this how it is 
>>> supposed to work?
>>>
>>>
>>> * pip install git+https://github.com/nagareproject/core.git 
>>> <https://github.com/nagareproject/core.git>*
>>> It installed WebOb and cryptography packages, but after that tried and 
>>> failed to find "nagare-editor":
>>>
>>>
>>>
>>>
>>> *Collecting nagare-editor (from nagare==0.5.1.dev56+gcb91550)  ERROR: 
>>> Could not find a version that satisfies the requirement nagare-editor (from 
>>> nagare==0.5.1.dev56+gcb91550) (from versions: none)ERROR: No matching 
>>> distribution found for nagare-editor (from nagare==0.5.1.dev56+gcb91550)*
>>>
>>> There seems to be no such repository in GitHub or package in PyPI.
>>>
>>
>> Right. Repository (https://github.com/nagareproject/editor) pushed now
>>
>> But, the problem is, without Nagare 0.6 packages available in PyPi yet, 
>> you will have to manually 'pip install git+...' all the Nagare packages you 
>> need. Hmmm, doable but not fun ...
>>  
>>
>>> -Henrik
>>> On Wednesday, 5 August 2020 at 14:06:44 UTC+3 Henrik Härkönen wrote:
>>>
>>>> Thank you for very quick reply! :)
>>>>
>>>> I'll take a look today! 
>>>>
>>>> -Henrik
>>>>
>>>> On Wednesday, 5 August 2020 at 13:57:13 UTC+3 apoirier wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> The Nagare 0.6 repositories (https://github.com/nagareproject) run on 
>>>>> Python 3 and are installable with Pip.
>>>>>
>>>>> I just push the latest commits if you want to take a look.
>>>>>
>>>>> Best regards
>>>>> Alain
>>>>>
>>>>> Le mercredi 5 août 2020 à 11:23:22 UTC+2, heha...@gmail.com a écrit :
>>>>>
>>>>>> Hi all!
>>>>>>
>>>>>> I just learned about Nagare and I find it fascinating and want to try 
>>>>>> it out!
>>>>>>
>>>>>> But perhaps the Python 3 support would be needed urgently, because I 
>>>>>> can't get Nagare installed with the instructions, even with Stackless 
>>>>>> 2.7. 
>>>>>> Seems that external dependancies are moving on to Python 3, at least 
>>>>>> looks 
>>>>>> like it with Sphinx when running easy_install nagare[full] :
>>>>>>
>>>>>> File "/tmp/easy_install-LkE8CS/Sphinx-3.1.2/sphinx/deprecation.py", 
>>>>>> line 32
>>>>>> def deprecated_alias(modname: str, objects: Dict, warning: 
>>>>>> "Type[Warning]") -> None:
>>>>>> ^
>>>>>> SyntaxError: invalid syntax
>>>>>>
>>>>>> Also pip is dropping Python 2 support after this year and also my 
>>>>>> hosting provider... :D
>>>>>

Re: [nagare-users:663] Re: Setting up 0.6

2020-08-06 Thread Henrik Härkönen
 Alright! Installing the session manager and publisher, and then installing
that example app and running it with


*nagare-admin app serve examples-counter/counter/conf/counter.cfg *

did the trick, thanks!

-Henrik

On Wed, Aug 5, 2020 at 11:44 PM apoirier  wrote:

> The lack of proper documentation is why version 0.6 is not yet published
> on Pypi.
>
> Here is a port of the simple counter example of Nagare 0.5 tutorial part 2
> <https://www.nagare.org/doc/tutorial2.html> and 3
> <https://www.nagare.org/doc/tutorial3.html>.
>
> Into the 'examples-counter' directory, register the application with 'pip
> install -e .' then launch it with 'nagare-admin app serve
> counter/conf/counter.cfg'
>
> Hope that will help you to start,
>
> Alain
>
> Le mercredi 5 août 2020 19:27:42 UTC+2, Henrik Härkönen a écrit :
>>
>> Hi Alain!
>>
>> Some another "new user OOBE issues" with setting up the 0.6:
>>
>> The tutorial in the web page tells to use command
>>
>> *nagare-admin create-app tutorial*
>>
>> but seems there is no such command anymore. I then found and installed
>> the module
>> 'commands-app-create' and then used *nagare-admin app create tutorial*
>> but the response was
>>
>> *No module named 'nagare.templates*
>>
>> So I presume there is some package that has the templates, but perhaps
>> not published yet? The commands-app-create package has a reference:
>>
>> *NAGARE_TEMPLATES_REPOSITORY =
>> 'https://github.com/nagareproject/nagare-templates.git#{0}
>> <https://github.com/nagareproject/nagare-templates.git#%7B0%7D>' *
>>
>> but that repository gives 404.
>>
>> -Henrik
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Nagare users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/nagare-users/GPxwZ2483OA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> nagare-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nagare-users/febd40be-5e9a-4519-b6dd-7d254d3aff4do%40googlegroups.com
> <https://groups.google.com/d/msgid/nagare-users/febd40be-5e9a-4519-b6dd-7d254d3aff4do%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nagare-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nagare-users/CAEb7yCd_vfyjf3a9yp3Oh-GsO3taYjhcS4CXYCzGDcfaMePyoA%40mail.gmail.com.