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
Closed

Instance refuses to start with Python 2.6 #19

tisto opened this issue Mar 7, 2013 · 7 comments

Comments

@tisto
Copy link
Sponsor Member

tisto 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
Copy link
Sponsor Member Author

tisto commented Mar 7, 2013

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

@tisto
Copy link
Sponsor Member Author

tisto commented Mar 7, 2013

Preliminary fix: eed52a2

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

@csenger
Copy link
Contributor

csenger commented Mar 7, 2013

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

@tisto
Copy link
Sponsor Member Author

tisto commented Mar 7, 2013

Sorry. :)

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

@tisto tisto closed this as completed Apr 7, 2013
@bosim
Copy link
Contributor

bosim 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
Copy link
Sponsor Member Author

tisto commented May 31, 2013

1.0b2 has been released.

@tisto tisto closed this as completed May 31, 2013
@bosim
Copy link
Contributor

bosim 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants