Wiki Page
QuickStart Buildout
Cyn.in Dependency installation using Package Managers
Ubuntu 8.0.4 (Hardy)
sudo apt-get build-dep python-ldap python-lxml
sudo apt-get install build-essential gcc g++ libc6-dev libssl-dev zlib1g-dev libjpeg62-dev libreadline5-dev readline-common wv python2.4-dev poppler-utils python-imaging python-libxml2 libxml2-dev libxslt1-dev subversion libdb4.4-dev libldap2-dev libsasl2-dev libssl-dev python-ldap python-setuptools
Ubuntu 8.1.0 (Intrepid) and Debian 5.0 (Lenny)
sudo apt-get install build-essential gcc g++ libc6-dev libssl-dev zlib1g-dev libjpeg62-dev libreadline5-dev readline-common wv python2.4-dev poppler-utils python-imaging python-libxml2 libxml2-dev libxslt1-dev subversion libsasl2-dev libssl-dev python-ldap libdb-dev libldap2-dev python-setuptools
Ubuntu 9.04 (Jaunty)
sudo apt-get install build-essential libssl-dev libjpeg62-dev libreadline5-dev wv libxml2-dev libxslt1-dev libsasl2-dev poppler-utils libdb4.4-dev libldap2-dev python2.4-dev
Ubuntu 9.10 (Karmic)
sudo apt-get install build-essential libssl-dev libjpeg62-dev libreadline5-dev wv libxml2-dev libxslt1-dev libsasl2-dev libbz2-dev poppler-utils libdb-dev libldap2-dev python2.4-dev
Ubuntu 10.04 (Lucid)
sudo apt-get install build-essential libssl-dev libjpeg62-dev libreadline5-dev wv libxml2-dev libxslt1-dev libsasl2-dev poppler-utils libdb-dev libldap2-dev
Ubunto 12.04 (Precise)
sudo apt-get install build-essential libssl-dev libjpeg62-dev libreadline-gplv2-dev wv libxml2-dev libxslt1-dev libsasl2-dev poppler-utils libdb-dev libldap2-devUbuntu 10.04 and higher do not ship with a package for python2.4, so we'll build it from source, like this:
Go to home directory:
cd ~
Make a folder for storing python source
mkdir src
Go to src folder
cd src
Download last python 2.4 source tarball
wget http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz
Extract the source and cd to the new folder
tar -zxf Python-2.4.6.tgz cd Python-2.4.6
Run the configure script which will create a makefile to compile Python (lots of output with yes and no, this is normal)
./configure --with-threads --enable-unicode=ucs4 --with-readline
Run make to compile Python (lots of output, with pretty much unreadable stuff, again this is normal)
makeRun make test to ensure that there are no major problems (missing modules are generally okay, no test should fail)
make test
Install to your system with sudo
sudo make install
Test that it got installed properly:
python2.4 -V
Output from above command should be:
Python 2.4.6
That's it, you've got a running python that you can use for below. :)
sudo su cd /usr/local/bin rm python exit cd ~ python -V
The output from last command should be (where your x is whatever system default python is prevalent, as per last Ubuntu 2.6 package):
Python 2.6.x
Debian 5.0.4 (Lenny)
Contributed by @macagua from a Buildout Manual (Spanish version).
The following should work for Debian 5.0.4 (Lenny) x86 for the 'Cyn.in Dependency installation using Package Managers' section:
# aptitude install build-essential python2.4-dev libssl-dev libjpeg62-dev libreadline5-dev libxml2-dev libxslt1-dev libsasl2-dev libdb4.5-dev libldap2-dev zlib1g zlib1g-dev poppler-utils wv xpdf
CentOS 5.4
Contributed by @millisa and here's where CentOS is most discussed.
The following should work for CentOS 5.4 x86 for the 'Cyn.in Dependency installation using Package Managers' section:
sudo yum install openssl-devel libjpeg-devel readline-devel libgsf libxml2-devel libxslt-devel cyrus-sasl-devel poppler poppler-utils db4-devel openldap-devel python-devel gcc gcc-c++ glibc-devel python-imaging subversion python-ldap python-setuptools cvs
Obtain the wv package from the Dag repository at: http://dag.wieers.com/rpm/packages/wv/ for your CPU architecture
for x86:
wget http://dag.wieers.com/rpm/packages/wv/wv-1.2.4-1.el5.rf.i386.rpm sudo rpm -ivh wv-1.2.4-1.el5.rf.i386.rpm
For Arch Linux
sudo clyde -S python24 python24-ldap python24-pil python24-setuptools libjpeg6 wv libxml2 libxslt libsasl poppler
Mac OS X 10.6.4 (Snow Leopard)
Mac OS X 10.6.4 with the latest update has Python 2.6.1; we want 2.4. So we will build python using the plone collective python buildout, and then build a virtualenv from that. So for Mac OS X ignore the Make a new VirtualEnv for your login section, instead use the one outlined in this section.
Install XCode
You need to install XCode IDE to be able to compile, it installs gcc and cc1 etc., so pop in your Mac OS X cd and install that first.
Export the python buildout from Plone collective
cd ~ svn export http://svn.plone.org/svn/collective/buildout/python pythonbuildout cd pythonbuildout
Comment out python25 and python26
Edit the buildout.cfg file to comment out the python25 and python26 parts, because we don't need/want them. Make it look like follows (Note: the # character *must* be the first character in the line):
# This is here just for backward compatibility
[buildout]
extends =
src/base.cfg
src/readline.cfg
src/libjpeg.cfg
src/python24.cfg
# src/python25.cfg
# src/python26.cfg
src/links.cfg
parts =
${buildout:base-parts}
${buildout:readline-parts}
${buildout:libjpeg-parts}
${buildout:python24-parts}
# ${buildout:python25-parts}
# ${buildout:python26-parts}
${buildout:links-parts}
python-buildout-root = ${buildout:directory}/src
# we want our own eggs directory and nothing shared from a
# ~/.buildout/default.cfg to prevent any errors and interference
eggs-directory = eggs
[install-links]
prefix = /opt/local
Bootstrap Python with Buildout egg
Check that the Buildout egg is installed and if not, install it.
python bootstrap.py
Build the python buildout
./bin/buildout
Make a new VirtualEnv from this built python
./bin/virtualenv -p python-2.4/bin/python2.4 ~/venv
Make a new VirtualEnv for your login
After getting dependencies using your package manager, checkout any cyninsrc branch/trunk. From this, you'll find a file, ez_setup.py, you have to run this to install easy_install:
sudo python2.4 ez_setup.py -U setuptools
Next, we install virtualenv which will be used for installing required python dependencies of cyn.in:
sudo easy_install-2.4 -U virtualenv
Lets start by making a virtualenv based virtual python environment for our own usermode python installation:
virtualenv --python=python2.4 ~/venv
This makes a local python install at ~venv which we will now use to do the buildout. First we need to easy_install the dependencies.
Install python dependencies to your VirtualEnv
Use this concatenated command that will easy_install all dependencies together.
~/venv/bin/easy_install-2.4 ZopeSkel && ~/venv/bin/easy_install-2.4 lxml && ~/venv/bin/easy_install-2.4 python-ldap && ~/venv/bin/easy_install-2.4 http://dist.plone.org/thirdparty/PIL-1.1.7.tar.gz && ~/venv/bin/easy_install-2.4 ftp://xmlsoft.org/libxml2/python/libxml2-python-2.4.30.tar.gz
Do Bootstrap
That's it for the dependencies, you're ready to do the buildout, just take care to use the venv python2.4 instead of the system-wide one.
cd to your buildout directory (it must have bootstrap.py, buildout.cfg, versions.cfg and user.cfg in it) and:
~/venv/bin/python2.4 bootstrap.py
Do Buildout
Now you can proceed as normal by running your buildout as always:
./bin/buildout -c user.cfgRemember to open user.cfg in your text editor and change the effective-user setting to the linux user you want to run the Cyn.in instance with (typically your username), first!

Blog
Status Log
First, thanks very much for the quick reply. Second, I screwed up big time and posted too quickly... I'll blame it on the lack of coffee. Btw, any plans to add edit/deletion of comments soon? ;) Thanks again, everything is working fine now.
that was the soultion! Great! Thanks for the hint!
Updated parameters to easy_intall to get most updated versions of setuptools and virtualenv.
Processing virtualenv
error: Not a recognized archive type: virtualenv
So, two questions:
1.) Why aren't the bootstrap.py and buildout.cfg files being placed in ~/venv/bin? Are you supposed to copy them manually from the root? Trying that workaround was fruitless, you end up receiving errors when you attempt to build.
2.) What's the deal with the easy_install2.5 script? Are we supposed to be using this? If not, why is it even included?
Any help would be appreciated.
The only problem in the instructions lies in the ambiguity of the Do Bootstrap phase.
Here's what needs to be added, imho:
Manually copy over THREE files from your svn checkout root to your ~/venv directory: bootstrap.py, buildout.cfg AND versions.cfg
Then the bootstrap will complete properly.
I'm not sure I follow your point. How come your buildout directory *did not* have these files? In the buildout source snapshot, (as well as the svn checkout) these files are there at the buildout root, right?
bootstrap.py is there in the root of the buildout. To bootstrap you have to cd to the folder that is present and run it with the virtualenv that you just created in your linux home folder.
So suppose you extracted the buildout at "/home/dhiraj/buildout" you would "cd /home/dhiraj/buildout" or just "cd ~/buildout" and then run "~/venv/bin/python2.4 bootstrap.py".
Edit and delete of comments: Hmm... let's start a new discussion for this: http://www.cynapse.com/comm[…]sily-editable-and-deletable
cool, I have installed Cyn.in from source code on a Jaunty based virtual machine. Just a minor comment to the QuickStart Buildout: the README.txt file in the cyn305 sources folder is almost identical to the QuickStart Buildout but it is more complete: the step about setting the effective-user is not mentioned in the QuickStart.
Congrats for the excellent quality, even a newbie can get through the installation.
Will be working on elaborating on the developer side of the picture a little in a few days. In 3.0.4 the Readme.txt file had slipped out of the spec, so we redid the Readme based on the new way using virtualenv, and you're right, it's essentially a re-formatted paste of the quickstart part in the readme, which retains the rest of the valid parts of the original text. The rest of the topics in the whole dev environment setup on the Cyn.in Developers wiki haven't gotten started yet, they'll hopefully be fleshed out soon.
I tried to install with your Quickstart under ubuntu 9.04 but when I start the zope server I get a failure:
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/iwd/cynin/parts/instance/etc/site.zcml", line 14.2-14.55
ZopeXMLConfigurationError: File "/home/iwd/cynin/parts/instance/etc/package-includes/013-archetypes.schemaextender-configure.zcml", line 1.0-1.67
IOError: [Errno 2] No such file or directory: '/home/iwd/cynin/eggs/archetypes.schemaextender-2.0.1-py2.4.egg/archetypes/schemaextender/caching.zcml'
Any idea what went wrong? Anything else worked pretty fine.
Thanks for your efforts.
Changed PIL to 1.1.7 and from dist.plone.org/thirdparty
/root/cynin313-source-snapshot/parts/instance/bin/runzope -X debug-mode=on
2010-06-09 18:21:15 INFO ZServer HTTP server started at Wed Jun 9 18:21:15 2010
Hostname: 0.0.0.0
Port: 8080
2010-06-09 18:21:15 INFO ZServer Clock server for "/cynin/@@tickupdate" started (user: Anonymous, period: 60)
2010-06-09 18:21:15 INFO ZServer WebDAV server started at Wed Jun 9 18:21:15 2010
Hostname: 0.0.0.0
Port: 1980
2010-06-09 18:21:15 INFO Zope Set effective user to "cynin"
Traceback (most recent call last):
File "/root/cynin313-source-snapshot/parts/zope2/lib/python/Zope2/Startup/run.py", line 56, in ?
File "/root/cynin313-source-snapshot/parts/zope2/lib/python/Zope2/Startup/run.py", line 21, in run
File "/root/cynin313-source-snapshot/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 99, in prepare
File "/root/cynin313-source-snapshot/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 293, in makeLockFile
ImportError: No module named misc.lock_file
Any help would be appreciated ...
That's a Really Bad Idea.
Perhaps you need to buildout in "normal" user space. Like in a folder that looks like /home/farinspace/buildouts/cynin313-source-snapshot for example, instead of /root/cynin313-source-snapshot.
What's happening in your particular case is that during the instance startup, the effective user that you set to, "cynin" probably is not getting access to some egg located in a /root/... folder.
If you login with your normal user and start over your buildout folder you'll probably have better success.
/home/alex/cynin/parts/instance/bin/runzope -X debug-mode=on
2010-06-24 14:30:14 INFO ZServer HTTP server started at Thu Jun 24 14:30:14 2010
Hostname: 0.0.0.0
Port: 8080
2010-06-24 14:30:14 INFO ZServer Clock server for "/cynin/@@tickupdate" started (user: Anonymous, period: 60)
2010-06-24 14:30:14 INFO ZServer WebDAV server started at Thu Jun 24 14:30:14 2010
Hostname: 0.0.0.0
Port: 1980
/home/alex/cynin/products/ATRatings/indexableattributes.py:72: DeprecationWarning: The registerIndexableAttribute hook has been deprecated and will be
removed in Plone 4.0. Please use the following pattern instead:
>>> from plone.indexer.decorator import indexer
>>> @indexer(Interface)
... def my_indexer(object):
... return <some value>
Then register the indexer as an adapter in ZCML:
<adapter factory='.indexers.my_indexer' name='my_attribute' />
Note that you can (and should) use a more specific interface for your
indexer to ensure that it only applies to a particular content type.
registerIndexableAttribute("getCyninRating", getCyninRating)
2010-06-24 14:30:16 INFO CMFNotification Monkey-patched CMFCore.RegistrationTool
2010-06-24 14:30:16 INFO CMFNotification Monkey-patched CMFCore.MemberDataTool
2010-06-24 14:30:17 INFO Plone PlonePAS: Wrapping method at LDAPPluginBase.getPropertiesForUser
2010-06-24 14:30:17 INFO Plone PlonePAS: Wrapping method at LDAPMultiPlugin.getGroupsForPrincipal
Exception caught during check for ssopubkey, so mod_auth_pubtkt cannot be supported
2010-06-24 14:30:18 INFO Plone Dependency
Unable to detect Zope version. Please make sure you have Zope 2.10.4 or newer installed.
2010-06-24 14:30:20 ERROR Application Couldn't install Five
Traceback (most recent call last):
File "/home/alex/cynin/parts/zope2/lib/python/OFS/Application.py", line 786, in install_product
initmethod(context)
File "/home/alex/cynin/parts/zope2/lib/python/Products/Five/__init__.py", line 28, in initialize
zcml.load_site()
File "/home/alex/cynin/parts/zope2/lib/python/Products/Five/zcml.py", line 53, in load_site
_context = xmlconfig.file(file)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 579, in file
include(context, name, package)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 515, in include
processxmlfile(f, context)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 349, in endElementNS
self.context.end()
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/config.py", line 544, in end
self.stack.pop().finish()
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/config.py", line 692, in finish
actions = self.handler(context, **args)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 515, in include
processxmlfile(f, context)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 349, in endElementNS
self.context.end()
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/config.py", line 544, in end
self.stack.pop().finish()
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/config.py", line 692, in finish
actions = self.handler(context, **args)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 508, in include
f = openInOrPlain(path)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 419, in openInOrPlain
fp = open(filename)
ZopeXMLConfigurationError: File "/home/alex/cynin/parts/instance/etc/site.zcml", line 14.2-14.55
ZopeXMLConfigurationError: File "/home/alex/cynin/parts/instance/etc/package-includes/013-archetypes.schemaextender-configure.zcml", line 1.0-1.67
IOError: [Errno 2] No such file or directory: '/home/alex/cynin/eggs/archetypes.schemaextender-2.0.2-py2.4.egg/archetypes/schemaextender/caching.zcml'
Traceback (most recent call last):
File "/home/alex/cynin/parts/zope2/lib/python/Zope2/Startup/run.py", line 56, in ?
run()
File "/home/alex/cynin/parts/zope2/lib/python/Zope2/Startup/run.py", line 21, in run
starter.prepare()
File "/home/alex/cynin/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 102, in prepare
self.startZope()
File "/home/alex/cynin/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 278, in startZope
Zope2.startup()
File "/home/alex/cynin/parts/zope2/lib/python/Zope2/__init__.py", line 47, in startup
_startup()
File "/home/alex/cynin/parts/zope2/lib/python/Zope2/App/startup.py", line 102, in startup
OFS.Application.initialize(application)
File "/home/alex/cynin/parts/zope2/lib/python/OFS/Application.py", line 309, in initialize
initializer.initialize()
File "/home/alex/cynin/parts/zope2/lib/python/OFS/Application.py", line 338, in initialize
self.install_products()
File "/home/alex/cynin/parts/zope2/lib/python/OFS/Application.py", line 603, in install_products
return install_products(app)
File "/home/alex/cynin/parts/zope2/lib/python/OFS/Application.py", line 634, in install_products
folder_permissions, raise_exc=debug_mode)
File "/home/alex/cynin/parts/zope2/lib/python/OFS/Application.py", line 786, in install_product
initmethod(context)
File "/home/alex/cynin/parts/zope2/lib/python/Products/Five/__init__.py", line 28, in initialize
zcml.load_site()
File "/home/alex/cynin/parts/zope2/lib/python/Products/Five/zcml.py", line 53, in load_site
_context = xmlconfig.file(file)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 579, in file
include(context, name, package)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 515, in include
processxmlfile(f, context)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 349, in endElementNS
self.context.end()
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/config.py", line 544, in end
self.stack.pop().finish()
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/config.py", line 692, in finish
actions = self.handler(context, **args)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 515, in include
processxmlfile(f, context)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 349, in endElementNS
self.context.end()
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/config.py", line 544, in end
self.stack.pop().finish()
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/config.py", line 692, in finish
actions = self.handler(context, **args)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 508, in include
f = openInOrPlain(path)
File "/home/alex/cynin/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 419, in openInOrPlain
fp = open(filename)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/alex/cynin/parts/instance/etc/site.zcml", line 14.2-14.55
ZopeXMLConfigurationError: File "/home/alex/cynin/parts/instance/etc/package-includes/013-archetypes.schemaextender-configure.zcml", line 1.0-1.67
IOError: [Errno 2] No such file or directory: '/home/alex/cynin/eggs/archetypes.schemaextender-2.0.2-py2.4.egg/archetypes/schemaextender/caching.zcml'
I've tried changing buildout.cfg, from archetypes.schemaextender, to "archetypes.schemaextender==1.5", but that doesn't work.
Thanks
In buildout.cfg, in the zcml section, change the line that says:
archetypes.schemaextender:caching.zcml
to instead be just:
archetypes.schemaextender
Then re-buildout with ./bin/buildout -c user.cfg and your instance should start to run.
It feels like I'm close -- 20 years of C++, 2 yrs of Linux, but new to Python / Plone. Software Looks great -- I'd like to contribute.
Here's what I'm seeing...
File "/home/rick/src/cynin313-source-snapshot/src/ubify.viewlets/ubify/viewlets/browser/custommethods.py", line 39, in ?
import jsonlib
File "/home/rick/src/cynin313-source-snapshot/eggs/jsonlib-1.3.10-py2.4-linux-i686.egg/jsonlib.py", line 7, in ?
File "/home/rick/src/cynin313-source-snapshot/eggs/jsonlib-1.3.10-py2.4-linux-i686.egg/jsonlib.py", line 6, in __bootstrap__
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/rick/src/cynin313-source-snapshot/parts/instance/etc/site.zcml", line 14.2-14.55
ZopeXMLConfigurationError: File "/home/rick/src/cynin313-source-snapshot/parts/instance/etc/package-includes/004-ubify.viewlets-configure.zcml", line 1.0-1.58
ZopeXMLConfigurationError: File "/home/rick/src/cynin313-source-snapshot/src/ubify.viewlets/ubify/viewlets/configure.zcml", line 46.4-46.34
ZopeXMLConfigurationError: File "/home/rick/src/cynin313-source-snapshot/src/ubify.viewlets/ubify/viewlets/browser/configure.zcml", line 624.4-630.10
ImportError: /home/rick/src/cynin313-source-snapshot/var/.python-eggs/jsonlib-1.3.10-py2.4-linux-i686.egg-tmp/jsonlib.so: undefined symbol: PyUnicodeUCS4_FromObject
I've updated the ./configure command in Ubuntu 10.04 section with more --params, please flow through it again.
The exact problem is that the python is seeming to default compile to without Unicode UCS4 support, and the JSON library needs that.
I'm not a python developer, so i have really no clue, what's going on..
I would appreciate to get some help!
Thx guys!
/opt/cynin/parts/instance/bin/runzope -X debug-mode=on
2010-08-06 14:42:09 INFO ZServer HTTP server started at Fri Aug 6 14:42:09 2010
Hostname: 0.0.0.0
Port: 8080
2010-08-06 14:42:09 INFO ZServer Clock server for "/cynin/@@tickupdate" started (user: Anonymous, period: 60)
2010-08-06 14:42:09 INFO ZServer WebDAV server started at Fri Aug 6 14:42:09 2010
Hostname: 0.0.0.0
Port: 1980
2010-08-06 14:42:09 INFO Zope Set effective user to "cynin"
2010-08-06 14:42:10 ERROR Application Could not import Products.ATContentTypes
Traceback (most recent call last):
File "/opt/cynin/parts/zope2/lib/python/OFS/Application.py", line 709, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/__init__.py", line 37, in ?
from Products.ATContentTypes.config import HAS_LINGUA_PLONE
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/config.py", line 30, in ?
from Products.ATContentTypes.configuration import zconf
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/configuration/__init__.py", line 25, in ?
from Products.ATContentTypes.configuration.config import zconf
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/configuration/config.py", line 29, in ?
from Products.ATContentTypes.configuration.schema import atctSchema
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/configuration/schema.py", line 29, in ?
from Products.ATContentTypes.configuration import datatype
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/configuration/datatype.py", line 25, in ?
from Products.CMFCore import permissions as CMFCorePermissions
File "/opt/cynin/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/__init__.py", line 35, in ?
import FSZSQLMethod
File "/opt/cynin/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/FSZSQLMethod.py", line 23, in ?
from Products.ZSQLMethods.SQL import SQL
File "/opt/cynin/parts/zope2/lib/python/Products/ZSQLMethods/__init__.py", line 18, in ?
import Shared.DC.ZRDB.Search, Shared.DC.ZRDB.Aqueduct, SQL
File "/opt/cynin/parts/zope2/lib/python/Products/ZSQLMethods/SQL.py", line 19, in ?
import Shared.DC.ZRDB.DA
File "/opt/cynin/parts/zope2/lib/python/Shared/DC/ZRDB/DA.py", line 18, in ?
import OFS.SimpleItem, Aqueduct, RDB, re
File "/opt/cynin/parts/zope2/lib/python/Shared/DC/ZRDB/RDB.py", line 22, in ?
from array import array
ImportError: No module named array
Traceback (most recent call last):
File "/opt/cynin/parts/zope2/lib/python/Zope2/Startup/run.py", line 56, in ?
run()
File "/opt/cynin/parts/zope2/lib/python/Zope2/Startup/run.py", line 21, in run
starter.prepare()
File "/opt/cynin/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 102, in prepare
self.startZope()
File "/opt/cynin/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 278, in startZope
Zope2.startup()
File "/opt/cynin/parts/zope2/lib/python/Zope2/__init__.py", line 47, in startup
_startup()
File "/opt/cynin/parts/zope2/lib/python/Zope2/App/startup.py", line 45, in startup
OFS.Application.import_products()
File "/opt/cynin/parts/zope2/lib/python/OFS/Application.py", line 686, in import_products
import_product(product_dir, product_name, raise_exc=debug_mode)
File "/opt/cynin/parts/zope2/lib/python/OFS/Application.py", line 709, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/__init__.py", line 37, in ?
from Products.ATContentTypes.config import HAS_LINGUA_PLONE
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/config.py", line 30, in ?
from Products.ATContentTypes.configuration import zconf
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/configuration/__init__.py", line 25, in ?
from Products.ATContentTypes.configuration.config import zconf
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/configuration/config.py", line 29, in ?
from Products.ATContentTypes.configuration.schema import atctSchema
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/configuration/schema.py", line 29, in ?
from Products.ATContentTypes.configuration import datatype
File "/opt/cynin/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/configuration/datatype.py", line 25, in ?
from Products.CMFCore import permissions as CMFCorePermissions
File "/opt/cynin/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/__init__.py", line 35, in ?
import FSZSQLMethod
File "/opt/cynin/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/FSZSQLMethod.py", line 23, in ?
from Products.ZSQLMethods.SQL import SQL
File "/opt/cynin/parts/zope2/lib/python/Products/ZSQLMethods/__init__.py", line 18, in ?
import Shared.DC.ZRDB.Search, Shared.DC.ZRDB.Aqueduct, SQL
File "/opt/cynin/parts/zope2/lib/python/Products/ZSQLMethods/SQL.py", line 19, in ?
import Shared.DC.ZRDB.DA
File "/opt/cynin/parts/zope2/lib/python/Shared/DC/ZRDB/DA.py", line 18, in ?
import OFS.SimpleItem, Aqueduct, RDB, re
File "/opt/cynin/parts/zope2/lib/python/Shared/DC/ZRDB/RDB.py", line 22, in ?
from array import array
ImportError: No module named array
I've configured Zope, that it runs on port 14,000.
If i type http://IP_ADDRESS:14000/ I just get the Zope welcome screen.
I don't have access to the zope management interface, because I've got no clue, what the password is..
Help, PLZ :)
The "normal" administrative user is:
username: siteadmin
password: secret
You can (and should) change the password of that using the Edit Profile link.
The "zope" administrative user is:
username: admin
password: secret
You can (and should) change the password of that using this: http://www.cynapse.com/[…]/change-admin-password
i'm running the buildout and it gives me the folling error:
Getting distribution for 'plone.app.locales==3.3.9'.
error: Not a recognized archive type: /tmp/tmpYvh7N6get_dist/plone.app.locales-3.3.9.zip
any help would be much appreciated
Possibly the downloaded egg is corrupted. What you need to do is find all the cached, and the downloaded versions of this egg and *delete* them and then buildout again. Try doing this with a find|grep combination or just look for the zip in the eggs or download directories.
Another possible thing that might work is if you use the -n parameter in your buildout command, it will try to fetch newer versions of all eggs and thus refresh the download.
Installing Python
$ cd ~
(pwd: /home/zope)
(!) zope is my username, you have your own :P !!!
Installing python
$ mkdir downloads python
$ cd downloads
$ wget http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz
$ tar -zxf Python-2.4.6.tgz
$ cd Python-2.4.6
./configure --with-threads --enable-unicode=ucs4 --with-readline --prefix=/home/zope/python/2.4.6
$ make
$ make test
$ make install
Installing easy_install
$ cd ..
(pwd: /home/zope/downloads)
$ wget http://pypi.python.org/pack[…]f9b0eac4c42497034dec2ec0c2b
$ sh setuptools-0.6c11-py2.4.egg --prefix=/home/zope/python/2.4.6
Setting python 2.4.6 and easy_install recently installed as default to current user at prompt (to avoid some mistakes):
$ echo "PATH=/home/zope/python/2.4.6/bin:$PATH" >> ~/.bashrc && source ~/.bashrc
Installing cyn.in python dependencies:
$ easy_install ZopeSkel && easy_install lxml && easy_install python-ldap && easy_install http://dist.plone.org/thirdparty/PIL-1.1.7.tar.gz && easy_install ftp://xmlsoft.org/[…]/libxml2-python-2.4.30.tar.gz
Installing Cyn.in:
Put cyn.in package on you download directory (pwd: /home/zope/downloads)
$ unzip cynin_3_1_3-source.zip
I will install on /opt (you can install on other place):
$ sudo mkdir /opt/cyn
$ sudo chown zope.zope /opt/cyn
$ mv cynin313-source-snapshot/* /opt/cyn
$ cd /opt/cyn
$ python bootstrap.py
* Remember to change user.cfg to your current user. Or simply do this:
$ sed "/effective-user/s/[^ ]\ *$/`whoami`/g" user.cfg
Then run buildout:
$ ./bin/buildout -c user.cfg
* Observations:
To not use virtualenv, i've used my own python compiled from source on my own specific user for running those services.
I've tried to use on this environment cyn.in and another plone site (for other use), but content actions (add new content dropdown) doesn't appears. Any ideas?
Tested on ubuntu intrepid and debian lenny (of course, you must have some packages listed on each distro above).
I'm using Ubuntu 10.04 and want to install Plone CMS (not sure which version 4 or 3.3.5). So i wanted to ask can Cyn.in be installed inside Plone like an add-on product? Because i image if i walk through the installation guide here (building cyn.in) from source then cyn.in will work like a seperate instance and will not have to do anything with Plone CMS?
Thanks
Im a newbie and Im hoping somebody can be of assistance.
im trying to install on a ubuntu 9.04 cloud server
Keeping recieving this erorr
Compiling python modules
Creating fake eggs
Installing instance.
Unused options for instance: 'security-policy-implementation'.
Installing maildrophost.
Wrote /root/home/buildouts/cynin313-source-snapshot/bin/maildropctl
Installing zopepy.
Installing i18noverrides.
collective.recipe.i18noverrides: Creating directory /root/home/buildouts/cynin313-source-snapshot/parts/instance/i18n
collective.recipe.i18noverrides: Copied 1 po files.
Installing chown.
chown: Running '
chmod 600 .installed.cfg
touch /root/home/buildouts/cynin313-source-snapshot/var/log/zeoserver.log
find /root/home/buildouts/cynin313-source-snapshot -type d -name var -exec chown -R david \{\} \;
find /root/home/buildouts/cynin313-source-snapshot -type d -name LC_MESSAGES -exec chown -R david \{\} \;
find /root/home/buildouts/cynin313-source-snapshot -name runzope -exec chown david \{\} \;'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
chown: invalid user: `david'
Unused options for chown: 'update-command'.
Installing allsrc.
allsrc: (While processing egg distribute) Package 'easy_install' is zipped. Skipping.
allsrc: (While processing egg distribute) Package 'pkg_resources' is zipped. Skipping.
allsrc: (While processing egg distribute) Package 'setuptools' is zipped. Skipping.
allsrc: (While processing egg distribute) Package 'site' is zipped. Skipping.
allsrc: (While processing egg uuid) Package 'uuid' is zipped. Skipping.
allsrc: (While processing egg odict) Package 'odict' is zipped. Skipping.
allsrc: (While processing egg zodict) Package 'zodict' is zipped. Skipping.
allsrc: (While processing egg elementtree) Package 'elementtree' is zipped. Skipping.
allsrc: (While processing egg simplejson) Package 'simplejson' is zipped. Skipping.
allsrc: (While processing egg python-openid) Package 'openid' is zipped. Skipping.
allsrc: (While processing egg jsonlib) Package 'jsonlib' is zipped. Skipping.
Installing backup.
Installing precompile.
precompiling python scripts in /root/home/buildouts/cynin313-source-snapshot/products/
precompiling python scripts in /root/home/buildouts/cynin313-source-snapshot/parts/productdistros
precompiling python scripts in /root/home/buildouts/cynin313-source-snapshot/parts/maildrop
root@dearlord:~/home/buildouts/cynin313-source-snapshot# apt-get update allsrc
E: The update command takes no arguments
root@dearlord:~/home/buildouts/cynin313-source-snapshot# ./bin/instance fg
/root/home/buildouts/cynin313-source-snapshot/parts/instance/bin/runzope -X debug-mode=on
2010-09-26 02:14:49 INFO ZServer HTTP server started at Sun Sep 26 02:14:49 2010
Hostname: 0.0.0.0
Port: 8080
2010-09-26 02:14:49 INFO ZServer Clock server for "/cynin/@@tickupdate" started (user: Anonymous, period: 60)
2010-09-26 02:14:49 INFO ZServer WebDAV server started at Sun Sep 26 02:14:49 2010
Hostname: 0.0.0.0
Port: 1980
2010-09-26 02:14:49 ERROR Zope Can't find username 'david'
Traceback (most recent call last):
File "/root/home/buildouts/cynin313-source-snapshot/parts/zope2/lib/python/Zope2/Startup/run.py", line 56, in ?
run()
File "/root/home/buildouts/cynin313-source-snapshot/parts/zope2/lib/python/Zope2/Startup/run.py", line 21, in run
starter.prepare()
File "/root/home/buildouts/cynin313-source-snapshot/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 98, in prepare
self.dropPrivileges()
File "/root/home/buildouts/cynin313-source-snapshot/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 234, in dropPrivileges
return dropPrivileges(self.cfg)
File "/root/home/buildouts/cynin313-source-snapshot/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 413, in dropPrivileges
raise ZConfig.ConfigurationError(msg)
ZConfig.ConfigurationError: Can't find username 'david'
root@dearlord:~/home/buildouts/cynin313-source-snapshot#
any assistance thanks
Although the installation process finishes (tho it does dump obscene amounts of syntax errors in various eggs during buildout) it ends with a working Zope2 -- in that I can bin/instance start, and log in to zope management interface on myhost:8080/manage, but I can't find cyn.in anywhere.
When I go to myhost:8080/plone all I get is an empty page with this on the top:
<Products.Five.metaclass.Plone object at 0xf76ff2c>
and this is the exact message I get no matter what instructions I follow (and I've followed original instructions on Ubuntu Server 10.4 and Debian Lenny, as well as Domarques ones on Ubuntu Server 10.4).
What am I doing wrong?
I am trying to install Cynin on a Ubuntu 8.04 LTS and during the Buildout I get some Errors like SyntaxError: Function outside, but and the end it leads to working Zope.
The Problem is when i try to add a plone site i get this error:
Site Error
An error was encountered while publishing this resource.
Error Type: KeyError
Error Value: 'constrainTypesMode'
Troubleshooting Suggestions
This resource may be trying to reference a nonexistent object or variable 'constrainTypesMode'.
The URL may be incorrect.
The parameters passed to this resource may be incorrect.
A resource that this resource relies on may be encountering an error.
For more detailed information about the error, please refer to the error log.
If the error persists please contact the site maintainer. Thank you for your patience.
I get also an Error if i try to import an Cynin.zexp file...
Could you Help me ???
Anybody got a solution for this ?
Kindly do let us know on the forum.
Thanks
That error was because I missed the "archetypes.schemaextender==1.5"
Sorry. You guys had already mentioned it in here.
So keeping sharp!
Thanks again
I installed a Cyn.in instance months ago and it went perfectly smooth, but now i'm trying to install it again in a production environment and i get the following error:
http://pastebin.com/iTSUF06Y
Thanks in advance for any help.
Downloading http://pypi.python.org/[…]/distribute-0.6.19.tar.gz
Extracting in /tmp/tmpZ5Nfca
Now working in /tmp/tmpZ5Nfca/distribute-0.6.19
Building a Distribute egg in /tmp/tmpmy8wXf
/tmp/tmpmy8wXf/distribute-0.6.19-py2.4.egg
While:
Initializing.
Getting section buildout.
Initializing section buildout.
Getting option buildout:eggs.
Getting section libxml.
Initializing section libxml.
Installing recipe zc.recipe.egg==1.2.2.
Getting distribution for 'zc.recipe.egg==1.2.2'.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1804, in main
user_defaults, windows_restart, command)
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 252, in __init__
options = self['buildout']
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1056, in __getitem__
options._initialize()
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1130, in _initialize
self._dosub(k, v)
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1177, in _dosub
v = '$$'.join([self._sub(s, seen) for s in v.split('$$')])
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1241, in _sub
v = self.buildout[section].get(option, None, seen)
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1056, in __getitem__
options._initialize()
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1141, in _initialize
recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout)
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1097, in _install_and_load
prefer_final=not buildout.accept_buildout_test_releases)
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/easy_install.py", line 1090, in install
return installer.install(specs, working_set)
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/easy_install.py", line 896, in install
for dist in self._get_dist(requirement, ws, self._always_unzip):
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/easy_install.py", line 790, in _get_dist
dists = self._call_easy_install(
File "/tmp/tmpmy8wXf/zc.buildout-1.5.2-py2.4.egg/zc/buildout/easy_install.py", line 538, in _call_easy_install
tmp = tempfile.mkdtemp(dir=dest)
File "/usr/lib/python2.4/tempfile.py", line 328, in mkdtemp
_os.mkdir(file, 0700)
OSError: [Errno 2] No such file or directory: '/tmp/cynin_3_2_2/eggs/tmp7gQneU'
can someone help, please?
/opt/cynin_3_1_3# ./bin/buildout -c user.cfg
...
Got zope.ptresource 3.9.0.
While:
Installing instance.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/opt/cynin_3_1_3/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/buildout.py", line 1660, in main
getattr(buildout, command)(args)
...
File "build/bdist.linux-i686/egg/pkg_resources.py", line 2216, in requires
def load_entry_point(self, group, name):
UnknownExtra: zope.i18n 0.0 has no such extra feature 'zcml'
Have you any idea, what should be wrong?
I installed cywin like you wrote in the top of teh page (with venv) under a fresh new installed Debian Lenny in a Xen-VM...
Getting distribution for 'zope.ptresource'.
Got zope.ptresource 3.9.0.
While:
Installing instance.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/home/cynin/trunk/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/buildout.py", line 1660, in main
getattr(buildout, command)(args)
File "/home/cynin/trunk/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/buildout.py", line 532, in install
installed_files = self[part]._call(recipe.install)
File "/home/cynin/trunk/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/buildout.py", line 1204, in _call
return f()
File "/home/cynin/trunk/eggs/plone.recipe.zope2instance-3.6-py2.4.egg/plone/recipe/zope2instance/__init__.py", line 51, in install
requirements, ws = self.egg.working_set()
File "/home/cynin/trunk/eggs/zc.recipe.egg-1.2.2-py2.4.egg/zc/recipe/egg/egg.py", line 89, in working_set
allow_hosts=self.allow_hosts,
File "/home/cynin/trunk/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/easy_install.py", line 800, in install
return installer.install(specs, working_set)
File "/home/cynin/trunk/eggs/zc.buildout-1.4.3-py2.4.egg/zc/buildout/easy_install.py", line 660, in install
ws.resolve(requirements)
File "/home/cynin/venv/lib/python2.4/site-packages/distribute-0.6.15-py2.4.egg/pkg_resources.py", line 557, in resolve
requirements.extend(dist.requires(req.extras)[::-1])
File "/home/cynin/venv/lib/python2.4/site-packages/distribute-0.6.15-py2.4.egg/pkg_resources.py", line 2179, in requires
raise UnknownExtra(
UnknownExtra: zope.i18n 0.0 has no such extra feature 'zcml'
Any ideas please?
Thanks
Or is the cyn.in-project dead?
What I tried to solve this was edit the user.cfg and add the following:
[zope2]
fake-zope-eggs = true
skip-fake-eggs =
zope.testing
zope.component
zope.i18n
Then you'll get another error.
[zope2]
fake-zope-eggs = true
skip-fake-eggs =
zope.testing
zope.component
zope.i18n
zope.interface
zope.proxy
zope.schema
zope.security
zope.lifecycleevent
zope.traversing
zope.publisher
zope.contenttype
zope.pagetemplate
additional-fake-eggs =
Plone
[versions]
Plone = 0.0
It works until a message saying something about "five.localsitemanager" and its conflict with "zope.component"'s version.
[zope2]
fake-zope-eggs = true
skip-fake-eggs =
zope.testing
zope.component
zope.i18n
zope.interface
zope.proxy
zope.schema
zope.security
zope.lifecycleevent
zope.traversing
zope.publisher
zope.contenttype
zope.pagetemplate
additional-fake-eggs =
five.localsitemanager
[versions]
five.localsitemanager = 2.0
i spent a hole day for searching and found it...
The problem is, that the version off "plone.reload" is not pinned in the version.cfg (or the buildout.cfg). In this case, the newest version >2.0 for plone.reload will be installed, which requires Zope >2.12 (and a lot og newer zope-eggs/five-eggs, see the list of lincolntlng).
For the Plone 3.3.5-buildout, which ist the base for cynin, Zope in 2.10.x will be installed. To solve the error, pin the version for plone.reload in the buildout.cfg (two "==" needed):
plone.reload==1.5
OR in the version.cfg (only one "=")
plone.reload = 1.5
Source of solution: http://plone.293351.n2.nabb[…]d-not-pinned-td6265328.html
and: http://pypi.python.org/pypi/plone.reload
This will solve the error with
UnknownExtra: zope.i18n 0.0 has no such extra feature 'zcml'
@cynin: Why you include the egg "plone.reload" in your public buildout? It should be used only for developement...
regards
Thomas
Now, the buildout runs without error...
But i get another error, if i start the instance in the foreground:
> ./bin/instance fg
Traceback (most recent call last):
File "/opt/cynin_3_1_3/parts/zope2/lib/python/Zope2/Startup/run.py", line 56, in ?
run()
File "/opt/cynin_3_1_3/parts/zope2/lib/python/Zope2/Startup/run.py", line 21, in run
...
File "/opt/Python-2.4.6/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/opt/cynin_3_1_3/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 349, in endElementNS
self.context.end()
File "/opt/cynin_3_1_3/parts/zope2/lib/python/zope/configuration/config.py", line 544, in end
self.stack.pop().finish()
File "/opt/cynin_3_1_3/parts/zope2/lib/python/zope/configuration/config.py", line 691, in finish
args = toargs(context, *self.argdata)
File "/opt/cynin_3_1_3/parts/zope2/lib/python/zope/configuration/config.py", line 1383, in toargs
args[str(name)] = field.fromUnicode(s)
File "/opt/cynin_3_1_3/parts/zope2/lib/python/zope/configuration/fields.py", line 139, in fromUnicode
value = self.context.resolve(name)
File "/opt/cynin_3_1_3/parts/zope2/lib/python/zope/configuration/config.py", line 184, in resolve
mod = __import__(mname, *_import_chickens)
File "/opt/cynin_3_1_3/src/ubify.viewlets/ubify/viewlets/browser/custommethods.py", line 39, in ?
import jsonlib
File "/opt/cynin_3_1_3/eggs/jsonlib-1.3.10-py2.4-linux-i686.egg/jsonlib.py", line 7, in ?
File "/opt/cynin_3_1_3/eggs/jsonlib-1.3.10-py2.4-linux-i686.egg/jsonlib.py", line 6, in __bootstrap__
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/opt/cynin_3_1_3/parts/instance/etc/site.zcml", line 14.2-14.55
ZopeXMLConfigurationError: File "/opt/cynin_3_1_3/parts/instance/etc/package-includes/004-ubify.viewlets-configure.zcml", line 1.0-1.58
ZopeXMLConfigurationError: File "/opt/cynin_3_1_3/src/ubify.viewlets/ubify/viewlets/configure.zcml", line 46.4-46.34
ZopeXMLConfigurationError: File "/opt/cynin_3_1_3/src/ubify.viewlets/ubify/viewlets/browser/configure.zcml", line 624.4-630.10
ImportError: /opt/cynin_3_1_3/var/.python-eggs/jsonlib-1.3.10-py2.4-linux-i686.egg-tmp/jsonlib.so: undefined symbol: PyUnicodeUCS4_FromObject
Have sombody any ideas? cynin?
...
i see that this error was reported above.
The recompilation of python with
./configure --enable-unicode=ucs4
got me the error in make install:
> Compiling /opt/Python-2.4.6/lib/python2.4/zipfile.py ...
> make: *** [libinstall] Error 1
This could be ignored with:
make -i install
so, i got now a python-2.4.6. with UCS4:
>>> import sys
>>> print sys.maxunicode
1114111
Then i got the "archetypes.schemaextender"-error reported above and with thiss correction the buildout and the start of the instance works fine.
I will wrote later a conclusion of all modifications to be done for a succesfull installation based on the svn-tag cynin_3_1_3.
@cynin: Ist the tag "cynin_3_2_2" free for public use?
If i try it, i get the same error like "earpnet" 16:48:
OSError: [Errno 2] No such file or directory: '/tmp/cynin_3_2_2/eggs/tmp7gQneU'
I prefer to use the Canin 3.2.2., becaus the new buildout-configuration is much better structured as the older one. I see, that you evolve the software... Thanks!
When you plan to publish this new version?
Regards
Thomas
Sorry for the late answer.
I made the following changes in the buildout.cfg:
...
[cyninbase]
...
eggs =
...
elementtree
archetypes.schemaextender==1.5
Products.fatsyndication
Pygments
jsonlib==1.3.10
plone.reload==1.5
I add a fixed version to archetypes.schemaextender and plone.reload
This solved my problems (with the --enable-unicode=ucs4 while compiling Python)
Regards
Thomas
I just wanted to let the world know that I successfully got Cyn.in 3.1.3 working on Ubunto 12.04 LTS.
In addition to all of the fixes in the comments above, I also had to create symlinks in /usr/lib for each of the libraries listed in the apt-get step, as Ubuntu has decided to move the libraries to /usr/lib/i386-linux-gnu or /lib/i386-linux-gnu and Python 2.4's configure/makefile isn't aware of this.
I also had to pin virtualenv to version 1.7.2 as version 1.8 and above no longer support Python 2.4.
With those two fixes and all of those in the comments above, Cyn.in will run on Ubuntu Precise Pangolin.
--
Jonathan
Downloading http://pypi.python.org/[…]/distribute-0.6.36.tar.gz
Extracting in /tmp/tmpT4Cckf
Now working in /tmp/tmpT4Cckf/distribute-0.6.36
Building a Distribute egg in /tmp/tmpuIFalY
File "build/bdist.linux-i686/egg/setuptools/tests/test_easy_install.py", line 315
finally:
^
SyntaxError: invalid syntax
/tmp/tmpuIFalY/distribute-0.6.36-py2.4.egg
File "build/bdist.linux-i686/egg/zc/buildout/easy_install.py", line 133
current_umask = os.umask(0o022)
^
SyntaxError: invalid syntax
File "build/bdist.linux-i686/egg/zc/buildout/configparser.py", line 178
tail = tail.replace(';', '#') if tail else ''
^
SyntaxError: invalid syntax
File "/tmp/tmpuIFalY/zc.buildout-2.1.0-py2.4.egg/zc/buildout/easy_install.py", line 133
current_umask = os.umask(0o022)
^
SyntaxError: invalid syntax
File "/tmp/tmpuIFalY/zc.buildout-2.1.0-py2.4.egg/zc/buildout/configparser.py", line 178
tail = tail.replace(';', '#') if tail else ''
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "bootstrap.py", line 119, in ?
import zc.buildout.buildout
File "/tmp/tmpuIFalY/zc.buildout-2.1.0-py2.4.egg/zc/buildout/buildout.py", line 18, in ?
import zc.buildout.easy_install
File "/tmp/tmpuIFalY/zc.buildout-2.1.0-py2.4.egg/zc/buildout/easy_install.py", line 133
current_umask = os.umask(0o022)
^
SyntaxError: invalid syntax
Can someone please help me.
fyi
I also had problems with easy_install-2.4 installing a newer version of virtualenv which doesn't support python below 2.5,so i used pip install virtualenv=1.7.2