New release: Kotti 2.0.0a1

68 views
Skip to first unread message

Andreas Kaiser

unread,
Feb 22, 2018, 11:46:48 AM2/22/18
to Kotti
Hi all!


Finally here it is: Kotti on Python 3 (>= 3.5 only) -
https://pypi.org/project/Kotti/2.0.0a1/

Other than that: no new features since 1.3.1.



Cheers,

Andreas

mike.cu...@gmail.com

unread,
Feb 22, 2018, 12:02:14 PM2/22/18
to Kotti
Right on!

Thank you so much for all your work, Andreas.

davide moro

unread,
Feb 22, 2018, 2:08:27 PM2/22/18
to ko...@googlegroups.com
Thanks!



--
You received this message because you are subscribed to the Google Groups "Kotti" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kotti+unsubscribe@googlegroups.com.
To post to this group, send email to ko...@googlegroups.com.
Visit this group at https://groups.google.com/group/kotti.
To view this discussion on the web visit https://groups.google.com/d/msgid/kotti/CA0557ED-3FD6-4886-B377-0904CE8F3F5A%40binary-punks.com.
For more options, visit https://groups.google.com/d/optout.

mike.cu...@gmail.com

unread,
Feb 23, 2018, 8:58:17 AM2/23/18
to Kotti
FYI, this doesn't build on my macbook pro running Sierra 10.12.6. Tried it with new virtual envs for both 3.5 and 3.6.

error below. The line is

    orig_path.sort(key=position_in_sys_path)

It is inside this definition

def _rebuild_mod_path(orig_path, package_name, module):
    """
    Rebuild module.__path__ ensuring that all entries are ordered
    corresponding to their sys.path order
    """
    sys_path = [_normalize_cached(p) for p in sys.path]
    def position_in_sys_path(path):
        """
        Return the ordinal of the path based on its position in sys.path
        """
        path_parts = path.split(os.sep)
        module_parts = package_name.count('.') + 1
        parts = path_parts[:-module_parts]
        return sys_path.index(_normalize_cached(os.sep.join(parts)))

    orig_path.sort(key=position_in_sys_path)
    module.__path__[:] = [_normalize_cached(p) for p in orig_path]

How can I help troubleshoot this?

Mike

Collecting repoze.workflow>=1.0b1 (from Kotti==2.0.0a1)
  Using cached repoze.workflow-1.0b1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/setuptools/__init__.py", line 11, in <module>
        from setuptools.extern.six.moves import filterfalse, map
      File "/Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/setuptools/extern/__init__.py", line 1, in <module>
        from pkg_resources.extern import VendorImporter
      File "/Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2927, in <module>
        @_call_aside
      File "/Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2913, in _call_aside
        f(*args, **kwargs)
      File "/Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2952, in _initialize_master_working_set
        add_activation_listener(lambda dist: dist.activate())
      File "/Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/pkg_resources/__init__.py", line 956, in subscribe
        callback(dist)
      File "/Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2952, in <lambda>
        add_activation_listener(lambda dist: dist.activate())
      File "/Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2515, in activate
        declare_namespace(pkg)
      File "/Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2097, in declare_namespace
        _handle_ns(packageName, path_item)
      File "/Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2047, in _handle_ns
        _rebuild_mod_path(path, packageName, module)
      File "/Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2066, in _rebuild_mod_path
        orig_path.sort(key=position_in_sys_path)
    AttributeError: '_NamespacePath' object has no attribute 'sort'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/rw/_rfhmmdj6p72047f0gj29c440000gn/T/pip-build-h400ev4l/repoze.workflow/
michaelc@cullerton env-35$ subl /Users/michaelc/projects/kotti_2/env-35/lib/python3.5/site-packages/pkg_resources/__init__.py

Andreas Kaiser

unread,
Feb 23, 2018, 9:54:17 AM2/23/18
to Kotti

On 23 Feb 2018, at 14:58, mike.cu...@gmail.com wrote:

FYI, this doesn't build on my macbook pro running Sierra 10.12.6. Tried it
with new virtual envs for both 3.5 and 3.6.

Pretty sure I've seen this, too. I think it was a buggy version of setuptools which caused this issue…

Works here (High Sierra 10.13.3):

disko@diskobook:~/tmp ✔ uname -a
Darwin diskobook2011 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

Python 3.5, setuptools-28.8.0:

disko@diskobook:~/tmp ✔ pyenv local 3.5.4
disko@diskobook:~/tmp ✔ python -m venv kotti35
disko@diskobook:~/tmp ✔ kotti35/bin/pip install Kotti==2.0.0a1
[…]
Successfully installed Babel-2.5.3 Chameleon-3.2 Kotti-2.0.0a1 LEPL-5.1.3 Mako-1.0.7 MarkupSafe-1.0 PasteDeploy-1.5.2 WebOb-1.7.4 alembic-0.9.8 appdirs-1.4.3 beaker-1.9.0 bleach-2.1.2 bleach-whitelist-0.0.8 colander-1.4 deform-2.0.5 docopt-0.6.2 fanstatic-1.0.0 filedepot-0.5.2 formencode-2.0.0a1 html2text-2018.1.9 html5lib-1.0.1 hupper-1.0 iso8601-0.1.11 js.angular-1.1.4 js.bootstrap-3.3.4 js.deform-2.0.3 js.fineuploader-5.14.0 js.html5shiv-3.7.3 js.jquery-1.9.1 js.jquery-form-3.9 js.jquery-maskedinput-1.4.1 js.jquery-maskmoney-3.0.2 js.jquery-sortable-0.9.13 js.jquery-tablednd-0.4 js.jquery-timepicker-addon-1.5.3 js.jqueryui-1.10.3 js.jqueryui-tagit-2.0.24.post2 js.modernizr-2.5.3.1 js.select2-4.0.4.post1 js.tinymce-4.5.4 lingua-4.13 peppercorn-0.5 plaster-1.0 plaster-pastedeploy-0.4.2 polib-1.1.0 py-bcrypt-0.4 pyramid-1.9.1 pyramid-beaker-0.8 pyramid-chameleon-0.3 pyramid-deform-0.2 pyramid-mailer-0.15.1 pyramid-tm-2.2 pyramid-zcml-1.1.0 python-dateutil-2.6.1 python-editor-1.0.3 pytz-2018.3 repoze.lru-0.7 repoze.sendmail-4.4.1 repoze.workflow-1.0b1 repoze.zcml-1.0b1 rfc6266-parser-0.0.5.post2 shutilwhich-1.1.0 six-1.11.0 sqlalchemy-1.2.4 sqlalchemy-utils-0.33.0 transaction-2.1.2 translationstring-1.3 unidecode-1.0.22 usersettings-1.0.7 venusian-1.1.0 waitress-1.1.0 webencodings-0.5.1 zope.component-4.4.1 zope.configuration-4.1.0 zope.deprecation-4.3.0 zope.event-4.3.0 zope.i18nmessageid-4.1.0 zope.interface-4.4.3 zope.schema-4.5.0 zope.sqlalchemy-1.0

Python 3.6, setuptools-28.8.0:

disko@diskobook:~/tmp ✔ pyenv local 3.6.3
disko@diskobook:~/tmp ✔ python -m venv kotti36
disko@diskobook:~/tmp ✔ kotti36/bin/pip install Kotti==2.0.0a1
[…]
Successfully installed Babel-2.5.3 Chameleon-3.2 Kotti-2.0.0a1 LEPL-5.1.3 Mako-1.0.7 MarkupSafe-1.0 PasteDeploy-1.5.2 WebOb-1.7.4 alembic-0.9.8 appdirs-1.4.3 beaker-1.9.0 bleach-2.1.2 bleach-whitelist-0.0.8 colander-1.4 deform-2.0.5 docopt-0.6.2 fanstatic-1.0.0 filedepot-0.5.2 formencode-2.0.0a1 html2text-2018.1.9 html5lib-1.0.1 hupper-1.0 iso8601-0.1.11 js.angular-1.1.4 js.bootstrap-3.3.4 js.deform-2.0.3 js.fineuploader-5.14.0 js.html5shiv-3.7.3 js.jquery-1.9.1 js.jquery-form-3.9 js.jquery-maskedinput-1.4.1 js.jquery-maskmoney-3.0.2 js.jquery-sortable-0.9.13 js.jquery-tablednd-0.4 js.jquery-timepicker-addon-1.5.3 js.jqueryui-1.10.3 js.jqueryui-tagit-2.0.24.post2 js.modernizr-2.5.3.1 js.select2-4.0.4.post1 js.tinymce-4.5.4 lingua-4.13 peppercorn-0.5 plaster-1.0 plaster-pastedeploy-0.4.2 polib-1.1.0 py-bcrypt-0.4 pyramid-1.9.1 pyramid-beaker-0.8 pyramid-chameleon-0.3 pyramid-deform-0.2 pyramid-mailer-0.15.1 pyramid-tm-2.2 pyramid-zcml-1.1.0 python-dateutil-2.6.1 python-editor-1.0.3 pytz-2018.3 repoze.lru-0.7 repoze.sendmail-4.4.1 repoze.workflow-1.0b1 repoze.zcml-1.0b1 rfc6266-parser-0.0.5.post2 shutilwhich-1.1.0 six-1.11.0 sqlalchemy-1.2.4 sqlalchemy-utils-0.33.0 transaction-2.1.2 translationstring-1.3 unidecode-1.0.22 usersettings-1.0.7 venusian-1.1.0 waitress-1.1.0 webencodings-0.5.1 zope.component-4.4.1 zope.configuration-4.1.0 zope.deprecation-4.3.0 zope.event-4.3.0 zope.i18nmessageid-4.1.0 zope.interface-4.4.3 zope.schema-4.5.0 zope.sqlalchemy-1.0

Python 3.6, setuptools-38.5.1:

disko@diskobook:~/tmp ✔ pyenv local 3.6.3
disko@diskobook:~/tmp ✔ python -m venv kotti362
disko@diskobook:~/tmp ✔ kotti362/bin/pip install -U setuptools
Collecting setuptools
  Using cached setuptools-38.5.1-py2.py3-none-any.whl
Installing collected packages: setuptools
  Found existing installation: setuptools 28.8.0
    Uninstalling setuptools-28.8.0:
      Successfully uninstalled setuptools-28.8.0
Successfully installed setuptools-38.5.1

disko@diskobook:~/tmp ✔ kotti362/bin/pip install Kotti==2.0.0a1
[…]
Successfully installed Babel-2.5.3 Chameleon-3.2 Kotti-2.0.0a1 LEPL-5.1.3 Mako-1.0.7 MarkupSafe-1.0 PasteDeploy-1.5.2 WebOb-1.7.4 alembic-0.9.8 appdirs-1.4.3 beaker-1.9.0 bleach-2.1.2 bleach-whitelist-0.0.8 colander-1.4 deform-2.0.5 docopt-0.6.2 fanstatic-1.0.0 filedepot-0.5.2 formencode-2.0.0a1 html2text-2018.1.9 html5lib-1.0.1 hupper-1.0 iso8601-0.1.11 js.angular-1.1.4 js.bootstrap-3.3.4 js.deform-2.0.3 js.fineuploader-5.14.0 js.html5shiv-3.7.3 js.jquery-1.9.1 js.jquery-form-3.9 js.jquery-maskedinput-1.4.1 js.jquery-maskmoney-3.0.2 js.jquery-sortable-0.9.13 js.jquery-tablednd-0.4 js.jquery-timepicker-addon-1.5.3 js.jqueryui-1.10.3 js.jqueryui-tagit-2.0.24.post2 js.modernizr-2.5.3.1 js.select2-4.0.4.post1 js.tinymce-4.5.4 lingua-4.13 peppercorn-0.5 plaster-1.0 plaster-pastedeploy-0.4.2 polib-1.1.0 py-bcrypt-0.4 pyramid-1.9.1 pyramid-beaker-0.8 pyramid-chameleon-0.3 pyramid-deform-0.2 pyramid-mailer-0.15.1 pyramid-tm-2.2 pyramid-zcml-1.1.0 python-dateutil-2.6.1 python-editor-1.0.3 pytz-2018.3 repoze.lru-0.7 repoze.sendmail-4.4.1 repoze.workflow-1.0b1 repoze.zcml-1.0b1 rfc6266-parser-0.0.5.post2 shutilwhich-1.1.0 six-1.11.0 sqlalchemy-1.2.4 sqlalchemy-utils-0.33.0 transaction-2.1.2 translationstring-1.3 unidecode-1.0.22 usersettings-1.0.7 venusian-1.1.0 waitress-1.1.0 webencodings-0.5.1 zope.component-4.4.1 zope.configuration-4.1.0 zope.deprecation-4.3.0 zope.event-4.3.0 zope.i18nmessageid-4.1.0 zope.interface-4.4.3 zope.schema-4.5.0 zope.sqlalchemy-1.0

How can I help troubleshoot this?

Could you please pip install -U setuptools in your virtualenv and try again? If it solves the issue, adding a sentence to the installation section of the docs would be highly appreciated!

HTH,

Andreas

Andreas Kaiser

unread,
Feb 23, 2018, 9:55:42 AM2/23/18
to Kotti

On 23 Feb 2018, at 14:58, mike.cu...@gmail.com wrote:

FYI, this doesn't build on my macbook pro running Sierra 10.12.6. Tried it
with new virtual envs for both 3.5 and 3.6.

How can I help troubleshoot this?

Oh, and of course thanks for trying it out, that helps a lot!

Cheers,
Andreas

mike.cu...@gmail.com

unread,
Feb 23, 2018, 11:22:19 AM2/23/18
to Kotti
Cha-ching! That solved the issue for both 3.5 and 3.6. I edited the docs on github to add a note about updating setuptools.

Successfully installed Kotti-2.0.0a1 LEPL-5.1.3 appdirs-1.4.3 repoze.workflow-1.0b1 repoze.zcml-1.0b1 rfc6266-parser-0.0.5.post2 sqlalchemy-utils-0.33.0 usersettings-1.0.7 waitress-1.1.0 zope.sqlalchemy-1.0

FFFFFFFab

unread,
Feb 24, 2018, 4:34:12 AM2/24/18
to Kotti
Thanks for your work !

Anders Nylund

unread,
Mar 14, 2018, 1:53:00 PM3/14/18
to Kotti
Hello, and thanks for a new release!

It was a while since I worked with Kotti, so I have probably just forgot something essential. I installed with
pip install Kotti==2.0.0a1 kotti-image kotti_tinymce
and added kotti_image to kotti.configurators.

pserve app.ini errors out with:
  File "/home/anders/Kotti-2/lib/python3.5/site-packages/kotti_tinymce/__init__.py", line 10, in <module>
    from kotti.resources import Image
ImportError: cannot import name 'Image'

If I uninstall kotti_tinymce and disable it in app.ini then it starts. Am I missing something or isn't tinymce working?

Andreas Kaiser

unread,
Mar 14, 2018, 2:28:50 PM3/14/18
to ko...@googlegroups.com
Hi Anders,


> Am 14.03.2018 um 18:52 schrieb Anders Nylund <nylund...@gmail.com>:
>
> Hello, and thanks for a new release!
>
> It was a while since I worked with Kotti, so I have probably just forgot something essential. I installed with
> pip install Kotti==2.0.0a1 kotti-image kotti_tinymce
> and added kotti_image to kotti.configurators.
>
> pserve app.ini errors out with:
> File "/home/anders/Kotti-2/lib/python3.5/site-packages/kotti_tinymce/__init__.py", line 10, in <module>
> from kotti.resources import Image
> ImportError: cannot import name 'Image'
>
> If I uninstall kotti_tinymce and disable it in app.ini then it starts. Am I missing something or isn't tinymce working?

you’ve found an issue with kotti_tinymce, which imports Image from kotti.resources, which has been deprecated for some time. With Kotti 2.0.0 this no longer works. I’ll try to make a new release for kotti_tinymce tomorrow.

Thanks for reporting!

Andreas

--

Please excuse brevity and typos - sent from a mobile device.

Andreas Kaiser

unread,
Mar 16, 2018, 3:32:03 PM3/16/18
to ko...@googlegroups.com

On 14 Mar 2018, at 19:28, Andreas Kaiser wrote:

Am 14.03.2018 um 18:52 schrieb Anders Nylund <nylund...@gmail.com>:

It was a while since I worked with Kotti, so I have probably just forgot something essential. I installed with
pip install Kotti==2.0.0a1 kotti-image kotti_tinymce
and added kotti_image to kotti.configurators.

pserve app.ini errors out with:
File "/home/anders/Kotti-2/lib/python3.5/site-packages/kotti_tinymce/__init__.py", line 10, in <module>
from kotti.resources import Image
ImportError: cannot import name 'Image'

If I uninstall kotti_tinymce and disable it in app.ini then it starts. Am I missing something or isn't tinymce working?

you’ve found an issue with kotti_tinymce, which imports Image from kotti.resources, which has been deprecated for some time. With Kotti 2.0.0 this no longer works. I’ll try to make a new release for kotti_tinymce tomorrow.

I've released kotti_image 1.0.1 and kotti_tinymce 0.7.0 today. These should fix the above issue (as well as updating TinyMCE and CodeMirror to their latest respective versions).

Please try updating and let us know whether it also solves the issue for you.

Have a nice weekend,
Andreas

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Anders Nylund

unread,
Mar 17, 2018, 7:08:07 AM3/17/18
to Kotti
Hmm, I don't really get this, it just says 'message deleted' when I try to reply...

Anders Nylund

unread,
Mar 17, 2018, 7:09:31 AM3/17/18
to Kotti


On Saturday, March 17, 2018 at 1:08:07 PM UTC+2, Anders Nylund wrote:
Hmm, I don't really get this, it just says 'message deleted' when I try to reply...

Ok, this went through... Then here is the original text:

That was quick! Yes, now it works flawlessly. Thanks!

I'm glad Kotti still lives on. The dead 'demo site' link had me worried that this excellent cms was abandoned. Would it be possible to just remove the link to avoid appearing dead?
 
 
 

Andreas Kaiser

unread,
Mar 19, 2018, 7:15:09 AM3/19/18
to Kotti
On 17 Mar 2018, at 12:09, Anders Nylund wrote:

> That was quick! Yes, now it works flawlessly. Thanks!
>
> I'm glad Kotti still lives on.

It does and it will.

My company and some of our customers rely on Kotti for a number of large
projects that will exist for years to come.

So it's safe to assume that Kotti will stay actively maintained.

> The dead 'demo site' link had me worried
> that this excellent cms was abandoned. Would it be possible to just
> remove
> the link to avoid appearing dead?

You're absolutely right. I've removed the links for now (until we manage
to get a new demo site up again).


Thanks,

Andreas
Reply all
Reply to author
Forward
0 new messages