Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instance refuses to start with Python 2.6 #19

Closed
tisto opened this Issue Mar 7, 2013 · 7 comments

Comments

Projects
None yet
3 participants
@tisto
Copy link
Member

commented Mar 7, 2013

https://github.com/plone/plone.app.contenttypes/blob/master/plone/app/contenttypes/browser/migration.py

uses collections.Counter which was introduced in Python 2.7:

http://docs.python.org/2/library/collections.html

Therefore starting a Plone instance with Python 2.6 fails:

ZopeXMLConfigurationError: File "/srv/www/dkg-staging/krebswegweiser/src/plone.app.contenttypes/plone/app/contenttypes/configure.zcml", line 44.2-44.32
ZopeXMLConfigurationError: File "/srv/www/dkg-staging/krebswegweiser/src/plone.app.contenttypes/plone/app/contenttypes/browser/configure.zcml", line 119.2-125.6
ImportError: cannot import name Counter
@tisto

This comment has been minimized.

Copy link
Member Author

commented Mar 7, 2013

@csenger @pabo3000 Would you guys mind having a look?

@tisto

This comment has been minimized.

Copy link
Member Author

commented Mar 7, 2013

Preliminary fix: eed52a2

Right now there are no migration stats when running with Python 2.6.

@csenger

This comment has been minimized.

Copy link
Contributor

commented Mar 7, 2013

Your too fast :) I'll replace counter with some custom code.

@tisto

This comment has been minimized.

Copy link
Member Author

commented Mar 7, 2013

Sorry. :)

Let me know when you are done and I'll make a new release.

@tisto tisto closed this Apr 7, 2013

@bosim

This comment has been minimized.

Copy link
Contributor

commented May 31, 2013

@tisto I think a release of this package is important due to this fact. The only issue I had running a complete plone installation with p.a.dexterity etc on Python 2.6 was this particular line as reported in the bug report.

@bosim bosim reopened this May 31, 2013

@tisto

This comment has been minimized.

Copy link
Member Author

commented May 31, 2013

1.0b2 has been released.

@tisto tisto closed this May 31, 2013

@bosim

This comment has been minimized.

Copy link
Contributor

commented May 31, 2013

Ah didn't see, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.