Buildout Error 4.3.1

Hello, I am running 4.3.1 on windows. The problem I am having is when I add a new egg collective.document_hide_summary = 1.1.1 I cannot get it to install while another egg collective.quickupload = 1.6.2 does install.

I will try and upload a copy of my buildout.cfg and a copy of the actual buildout. I appreciate any help.
Config
buildouterror.txt

Thanks

I'm assuming that it's the last buildout error that you're trying to deal with. If so, I find the okascore reference bizarre. Can you try removing everything from the buildout except collective.document_hide_summary and try just that?

By the way, that add-on was created for and tested only with Plone 5 and Dexterity.

Thanks for the reply. I believe okascore goes with the collective quickupload egg that did install.

I did not realize it was for Plone 5, I made a mistake. I just missed it.

Yes I will give it a try and let you know what happens.

Another error, it also shut down access to the website via localhost but the plone service is still running. I have dealt with this particular problem before so I can get that going. I am really sorry about the mistake, I totally missed the version number.

C:\Plone43>bin\buildout
Uninstalling run-instance.
Uninstalling precompiler.
Uninstalling zopepy.
Uninstalling instance.
Unused options for buildout: 'buildout-user' 'need-sudo'.
Installing instance.
Getting distribution for 'collective.document-hide-summary'.
warning: no previously-included files matching '.pyc' found anywhere in distribution
Got collective.document-hide-summary 1.1.1.
Getting distribution for 'z3c.jbot'.
warning: no previously-included files matching '
.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Got z3c.jbot 0.7.2.
The constraint, 1.7.3, is not consistent with the requirement, 'Products.GenericSetup>=1.8.2'.
While:
Installing instance.
Error: Bad constraint 1.7.3 Products.GenericSetup>=1.8.2
*************** PICKED VERSIONS ****************
[versions]
collective.document-hide-summary = 1.1.1
z3c.jbot = 0.7.2

*************** /PICKED VERSIONS ***************

C:\Plone43>bin\buildout

Normally when I see a Bad constraint error I TEMPORARILY unpin the dependency. In your case Products.GenericSetup.

To unpin Products.GenericSetup update the [versions] section of your buildout to include a line which
sets the Products.GenericSetup to nothing.

[versions]
Products.GenericSetup =

Then try to rerun bin/buildout.

If it builds successfully and doesn't have any additional constraint errors then make a note of the PICKED VERSIONS.
The picked version (which will be 1.8.2 or better) is what you want to set as your pinned version in [versions].

So if it says it picked Products.GenericSetup version 9.4.5 then pin it to that.

Thanks David,

I will give that a try and see how it goes. I will let you know.

Barry

Hi, well it did not work. The buildout went just as you described that it would David, there were no errors but it killed Plone.

Maybe I am going about this the wrong way. I am using Windows 7 and I am considering a dual partition then update to Plone 5. If that is the best thing to do that is what I will do.

I have run 4.3.1 on windows with the upload portlet and it has worked perfectly for a long time. What I need to do now is hopefully using that same setup is hide the text that comes onto the page when a text document is uploaded but still searchable. That all works great except there is a ton of text. I could stick with what I have if I had a way to hide that.

Is there a better approach you know of than the one I am trying? Thanks a ton for the help and for even reading about what I have written. I sincerely do appreciate it.

Barry

I don't understand what you mean by it killed Plone. Please provide the log when you start Plone.

Let me start with my post at the point I am now. I accidentally closed the window without saving the buildout result. I will run it again.

I started the server (I think) but localhost:8080 does not connect. Normally I do not have to try and restart.

I looked in adminstration/sevices and the service is running. Whatever is happening I do not know how to see it.

C:\Plone43>bin\buildout
Uninstalling run-instance.
Uninstalling precompiler.
Uninstalling zopepy.
Uninstalling instance.
Unused options for buildout: 'buildout-user' 'need-sudo'.
Installing instance.
Generated script 'C:\Plone43\bin\instance'.
Generated interpreter 'C:\Plone43\parts\instance\bin\interpreter'.
Updating repozo.
Updating backup.
Installing zopepy.
Generated interpreter 'C:\Plone43\bin\zopepy'.
Installing precompiler.
Compiling Python files.
SyntaxError: ('invalid syntax', ('c:\plone43\eggs\restrictedpython-3.6.0-py2.6.egg\RestrictedPython\tests\before_and_after27.py', 30, 17, ' x = {y
: y for y in whatever if y}\n'))

SyntaxError: ('invalid syntax', ('c:\plone43\eggs\restrictedpython-3.6.0-py2.6.egg\RestrictedPython\tests\security_in_syntax27.py', 6, 13, ' {y: y
for _restricted_name in x}\n'))

Compiling locale files.
Error while compiling c:\plone43\eggs\python_gettext-1.2-py2.6.egg\pythongettext\tests\test5.po
Error while compiling c:\plone43\eggs\python_gettext-1.2-py2.6.egg\pythongettext\tests\test_escape.po
Installing run-instance.
Generated script 'C:\Plone43\bin\run-instance'.
Updating service.
*************** PICKED VERSIONS ****************
[versions]
collective.document-hide-summary = 1.1.1
collective.quickupload = 1.10.0
enfold.recipe.winservice = 0.7.2
plone.api = 1.5.1
products.genericsetup = 1.8.2
ua-parser = 0.7.2
z3c.jbot = 0.7.2

*************** /PICKED VERSIONS ***************

C:\Plone43>

Thanks,
Barry

There are no buildout errors.

I was asking for the output of the client or instance.

Here you're starting it in the background so you would have to look at the log file it creates. Search docs.plone.org for "debugging"

Or start it in foreground as per http://docs.plone.org/develop/plone/getstarted/index.html#development-mode-restarts

1 Like

as @tkimnguyen says you need to run it in foreground mode:

bin/instance fg

instead of

bin/instance start

Then you'll actually see what the issue is.

1 Like

Thanks, I did that and there are a lot of things there I never saw before. I am also glad to have that link. The output is listed below.

C:\Plone43>bin\instance fg
2017-01-01 15:59:49 INFO ZServer HTTP server started at Sun Jan 01 15:59:49 2017
Hostname: Linda-PC
Port: 8080
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied catalog patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied cb_decode patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied dataitems patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied get patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied imports patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied in_portal patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied linkintegrity patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied mail_password patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied member_portrait patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied objectmanager patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied principiaredirect patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied pts patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied publish patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied request patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied sendto patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied spamProtect patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied traverser patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied traverseName patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Applied typeswidget patch
2017-01-01 15:59:51 INFO Products.PloneHotfix20130618 Hotfix installed
2017-01-01 15:59:51 WARNING ZODB.blob (2660) Blob dir C:\Plone43\var\blobstorage\ has insecure mode setting
Traceback (most recent call last):
File "c:\plone43\eggs\zope2-2.13.20-py2.6.egg\Zope2\Startup\run.py", line 76, in
run()
File "c:\plone43\eggs\zope2-2.13.20-py2.6.egg\Zope2\Startup\run.py", line 22, in run
starter.prepare()
File "c:\plone43\eggs\zope2-2.13.20-py2.6.egg\Zope2\Startup_init_.py", line 86, in prepare
self.startZope()
File "c:\plone43\eggs\zope2-2.13.20-py2.6.egg\Zope2\Startup_init_.py", line 262, in startZope
Zope2.startup()
File "c:\plone43\eggs\zope2-2.13.20-py2.6.egg\Zope2_init_.py", line 47, in startup
_startup()
File "c:\plone43\eggs\zope2-2.13.20-py2.6.egg\Zope2\App\startup.py", line 118, in startup
load_zcml()
File "c:\plone43\eggs\zope2-2.13.20-py2.6.egg\Zope2\App\startup.py", line 52, in load_zcml
load_site()
File "c:\plone43\eggs\zope2-2.13.20-py2.6.egg\Zope2\App\zcml.py", line 46, in load_site
_context = xmlconfig.file(site_zcml)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 649, in file
include(context, name, package)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\Plone43\python\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 359, in endElementNS
self.context.end()
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\config.py", line 558, in end
self.stack.pop().finish()
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\config.py", line 706, in finish
actions = self.handler(context, **args)
File "c:\plone43\eggs\zope2-2.13.20-py2.6.egg\OFS\metaconfigure.py", line 46, in loadProducts
xmlconfig.include(_context, zcml, package=product)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\Plone43\python\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 359, in endElementNS
self.context.end()
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\config.py", line 558, in end
self.stack.pop().finish()
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\config.py", line 706, in finish
actions = self.handler(context, **args)
File "c:\plone43\eggs\z3c.autoinclude-0.3.4-py2.6.egg\z3c\autoinclude\zcml.py", line 104, in includePluginsDirective
includeZCMLGroup(_context, info, filename)
File "c:\plone43\eggs\z3c.autoinclude-0.3.4-py2.6.egg\z3c\autoinclude\zcml.py", line 30, in includeZCMLGroup
include(_context, filename, includable_package)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\Plone43\python\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 359, in endElementNS
self.context.end()
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\config.py", line 558, in end
self.stack.pop().finish()
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\config.py", line 706, in finish
actions = self.handler(context, **args)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\Plone43\python\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "C:\Plone43\python\lib\xml\sax\expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 359, in endElementNS
self.context.end()
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\config.py", line 558, in end
self.stack.pop().finish()
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\config.py", line 705, in finish
args = toargs(context, *self.argdata)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\config.py", line 1397, in toargs
args[str(name)] = field.fromUnicode(s)
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\fields.py", line 139, in fromUnicode
raise schema.ValidationError(v)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "C:\Plone43\parts\instance\etc\site.zcml", line 16.2-16.23
ZopeXMLConfigurationError: File "c:\plone43\eggs\products.cmfplone-4.3.1-py2.6.egg\Products\CMFPlone\configure.zcml", line 98.4-102.10
ZopeXMLConfigurationError: File "c:\plone43\eggs\collective.document_hide_summary-1.1.1-py2.6.egg\collective\document_hide_summary\configure.zcml", l
e 11.2-11.32
ZopeXMLConfigurationError: File "c:\plone43\eggs\collective.document_hide_summary-1.1.1-py2.6.egg\collective\document_hide_summary\browser\configure.
ml", line 21.2-29.6
ConfigurationError: ('Invalid value for', 'for', "ImportError: Couldn't import plone.app.contenttypes.interfaces, No module named contenttypes.interf
es")

C:\Plone43>

C:\Plone43>bin\instance start fg
Starting Windows Service "Zope1810026918".

C:\Plone43>

Barry

It's probably that this add on does not work with Plone 4.3 because you are not using the Dexterity content types.

Google "plone hide description field" and you will find an article from uwosh.edu that applies to Plone 4

I thought maybe that was the problem when I found out I missed the version that the addon was made for. Thank you for your help and the links to read. Keep my name around, maybe one day down the road you will have a refrigerator problem I can help you folks out with.

Thanks,
Barry

Did that uwosh.edu how-to work for you?

@Barry... :thumbsup: I have a deep freezer that needs some help :).

I have not had time to try yet Kim. I will and as soon as I do I will let you know. If you need to close this topic as some forums do you can mark it solved.

David I sent you a pm. I look forward to hearing from you.

Thanks,
Barry

I tried following the directions a couple of times at Uwosh but the problem I had was going to require more work and what I ended up doing was installing Ubuntu. I thought well if I am going to be serious about it I may as well invest some time and learn something so I dug through some of the hard drives I have here, installed the OS and installed Plone 5.0.6. Everything went perfectly. I followed the directions in the 5.0.4 Plone installation documents and as smooth as can be it is working. I also used buildout to install the very same addon collective.document-hide-summary 1.1.1 and it is perfect. Exactly what I was trying to do.

I couldn't be happier, I learned a lot, made mistakes, learned more and had help when I needed it. I will definitely not forget it, I saw the donation link.

Also I was serious about me helping you, I have a lot of documents and over 20 years experience in refrigerator repair. Give me a shout, if I can I will.

Barry

1 Like

I'm glad you got things worked out (and that you persisted!). But...I'm unhappy that it seems there is a problem related to Windows.

Is http://tekfiles.com/buildout.cfg still the buildout.cfg that gave you problems on Windows? Could you narrow it down by removing

collective.quickupload
ua_parser