Nagare should be upgraded to Python 3?

42 views
Skip to first unread message

Terrence Brannon

unread,
Nov 9, 2018, 11:27:23 AM11/9/18
to nagare...@googlegroups.com
I just noticed setup.py is using Python 2 syntax. Any plans to upgrade to Python 3?

apoirier

unread,
Nov 9, 2018, 1:40:54 PM11/9/18
to Nagare users
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

Terrence Brannon

unread,
Nov 9, 2018, 8:00:01 PM11/9/18
to nagare...@googlegroups.com
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.

--
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.

apoirier

unread,
Nov 11, 2018, 4:58:03 PM11/11/18
to Nagare users
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+unsubscribe@googlegroups.com.

Henrik Härkönen

unread,
Aug 5, 2020, 5:23:22 AM8/5/20
to Nagare users
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.

apoirier

unread,
Aug 5, 2020, 6:57:13 AM8/5/20
to Nagare users
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

Henrik Härkönen

unread,
Aug 5, 2020, 7:06:44 AM8/5/20
to Nagare users
Thank you for very quick reply! :)

I'll take a look today!

-Henrik

Henrik Härkönen

unread,
Aug 5, 2020, 9:42:01 AM8/5/20
to Nagare users
I haven't tried to "pip" from GitHub before, but is this how it is supposed to work?

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

apoirier

unread,
Aug 5, 2020, 11:58:59 AM8/5/20
to Nagare users
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?

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 Härkönen

unread,
Aug 5, 2020, 12:53:46 PM8/5/20
to nagare...@googlegroups.com
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

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/n3jKZEGPEbc/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/822ddfe7-466d-419f-98f5-c0c2a51e19bbn%40googlegroups.com.

Henrik Härkönen

unread,
Aug 5, 2020, 1:13:48 PM8/5/20
to Nagare users
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.cfg

Nagare packages:

  Package                  Version            
  ------------------------ --------------------
  nagare                   0.5.1.dev56+gcb91550
  nagare-commands          0.6a2.dev5+gbf7c579
  nagare-commands-base     0.6a2.dev12+g919c164
  nagare-editor            0.1.dev3+g5f15d33  
  nagare-renderers-html    0.6a2.dev6+gfd008de
  nagare-renderers-xml     0.6a2.dev2+g94a14a7
  nagare-server            0.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+gba32e6f 
  nagare-services-statics  0.6a2.dev7+gceb7774

so I guess I'm good to go!

Thanks,
Henrik.

apoirier

unread,
Aug 5, 2020, 4:20:41 PM8/5/20
to Nagare users
Nearly ;) You need to choose and add a sessions manager. For example 'nagare-sessions-memory', which doesn't require an external sessions storage. And a HTTP publisher, for example 'nagare-publishers-gunicorn'
Reply all
Reply to author
Forward
0 new messages