Please login or register to participate.
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-dev
Ubuntu 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

Enable SSL for python2.4: 

vi ./Modules/Setup.dist
 
...
206 # CSV file helper
207 #_csv _csv.c
208
209 # Socket module helper for socket(2)
210 _socket socketmodule.c
211
212 # Socket module helper for SSL support; you must comment out the other
213 # socket line above, and possibly edit the SSL variable:
214 #SSL=/usr/local/ssl
215 _ssl _ssl.c \
216     -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
217     -L$(SSL)/lib -lssl -lcrypto

218
219 # The crypt module is now disabled by default because it breaks builds
220 # on many systems (where -lcrypt is needed), e.g. Linux (I believe).

Install SSL (please look below for installation of easy_install): 

sudo easy_install ssl

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)

make
Run 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. :)

Note: If you are doing above on a desktop edition of Ubuntu 10.04 then you will possibly have a problem with Ubuntu UI apps' default python getting clobbered with your new, compiled python version. To prevent this, you should remove the new python binary that landed in your /usr/local/bin folder:
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

 
Arch Linux has a rolling release model, so surely when you installed your system and make the first upgrade you are almost on the last "release". Here is what you need for your installation of Cynin on Arch Linux (taken from the Spanish Installation Instructions in Narratopedia):
 
First install and configure Clyde or another package manager that let you access to the packages in AUR (Arch User Repository), then do:
 
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.

Note: These instructions might work for other versions of Mac OS X. Let us know if it does. or if you have problems.
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
After modifying the file like above, run:
./bin/buildout
This will take some time, (okay a lot of time, please be patient if you have low bandwidth or less CPU, python will be downloaded and built!). At the end of it, you'll have a ready python2.4 to use in the pythonbuildout/python-2.4 folder. We'll use this one to build the virtualenv folder at ~/venv.
Make a new VirtualEnv from this built python
./bin/virtualenv -p python-2.4/bin/python2.4 ~/venv
That command should give you a new python2.4 virtualenv ready to use, in further steps as per below (next is Install python dependencies to your VirtualEnv).

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:

Downlaoad setuptool prior to installation into local directory

wget 'https://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c9-py2.4.egg'

Now install setuptool

sudo phyton2.4 ez_setup.py -U setuptool

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.cfg
Remember 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!


            
        
Description
Quick Steps required to be done to get a fully working Cyn.in buildout development environment
Comments (78)
deadlines Jun 02, 2010 02:47 AM
Dhiraj,

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.
dhiraj Jun 02, 2010 02:47 AM
Added libxml2-python dependency to the easy_install command list. This prevents the initial warning that's shown on startup about Marshall not working properly.
dhiraj Jun 02, 2010 02:47 AM
Added new dependency list for Ubuntu 9.10 (Karmic). There's only 1 minor change in dependency list, karmic does not have libdb4.4-dev, instead just ibdb-dev should do. This dependency is primarily for LDAP support, so while this shouldn't cause a problem, as such, do please tell us if this causes issues in setting up LDAP integration with Cyn.in buildout running on Karmic.
amandahla Jun 02, 2010 02:47 AM
Change the buildout.cfg, instead archetypes.schemaextender, write "archetypes.schemaextender==1.5".
roflcopter Jun 02, 2010 02:47 AM
Hey amandahla,

that was the soultion! Great! Thanks for the hint!
dhiraj Jun 02, 2010 02:47 AM
Added procedure for building out on Ubuntu 10.04LTS.
Updated parameters to easy_intall to get most updated versions of setuptools and virtualenv.
jocirilo Jun 02, 2010 02:47 AM
Mais um comentário fora do assunto para apagar.
deadlines Jun 02, 2010 02:47 AM
These instructions need an overhaul, multiple problems noted and additional newer scripts are being installed (e.g. easy_install2.5) that this guide makes no mention of. After attempting a run through and realizing the rules break down at the Do Bootstrap phase, I tried to scrap everything and start from scratch. Unfortunately now all I get when I attempt to run the easy_install2.4 or easy_install2.5 is:

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.


deadlines Jun 02, 2010 02:47 AM
Ok, my mistake I just noticed the easy_install step already installed virtualenv hence the, "not a recognized archive type" error.

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.

dhiraj Jun 02, 2010 02:47 AM
Hi deadlines,

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".
dhiraj Jun 02, 2010 02:47 AM
Ah yes. Coffee. Elixir of the Geeks. I know exactly what you mean. ;)

Edit and delete of comments: Hmm... let's start a new discussion for this: http://www.cynapse.com/comm[…]sily-editable-and-deletable
athospat Jun 02, 2010 02:47 AM
Hi,
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.
dhiraj Jun 02, 2010 02:47 AM
Hmmm... cool, so buildout from source is working easily now. :)

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.
dhiraj Jun 02, 2010 02:47 AM
Added CentOS dependencies courtesy @millisa from this discussion: http://www.cynapse.com/[…]/view
roflcopter Jun 02, 2010 02:47 AM
Hey dhiraj,

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.
dhiraj Jun 02, 2010 02:47 AM
Removed no-site-packages setting from virtualenv
Changed PIL to 1.1.7 and from dist.plone.org/thirdparty
amandahla Jun 02, 2010 02:47 AM
Change the buildout.cfg, instead archetypes.schemaextender, write "archetypes.schemaextender==1.5".
farinspace Jun 09, 2010 08:26 PM
I think I've done everything correctly thus far, I even created a "cynin" linux user which seemed to have resolved a previous issue, but now i get the following:


/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 ...
dhiraj Jun 09, 2010 09:07 PM
farinspace: You're attempting to run Cyn.in with root user??
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.
roflcopter Jun 09, 2010 11:59 PM
Next to the installation problems, you have to take care running cynin as root. I don't think thats a good idea
roflcopter Jun 10, 2010 12:00 AM
forgot to mention that i think so because of security aspects :-)
dhiraj Jun 09, 2010 10:00 PM
Added note on how to prevent clobbering system python on Ubuntu 10.04.
alex1hamilton Jun 24, 2010 04:35 PM
I can't get ./bin/instance fg to work. The error message is:

/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
dhiraj Jun 24, 2010 05:26 PM
You need to change the buildout.cfg line of archetypes.schemaextender. The one from the Cyn.in 3.1.3 tag will *not* work directly in buildout, due to changes in archetypes.schemaextender that have happened after the 3.1.3 release.

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.
rsprenkle Jul 25, 2010 03:49 AM
Hi dhiraj - I had the exact same problem (diffed the error streams and they were identical) -- thought the fix would work for me as well, but it feels like some other minor issue too. I followed the Ubuntu 10.4 instructions, including the fix to the zcml section, saved and reran ./bin/buildout -c user.cfg, but got almost the same error string (slightly different errors at the bottom - see below)

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
dhiraj Jul 26, 2010 01:19 PM
Hi Rick,

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.
rsprenkle Aug 02, 2010 05:43 AM
That was it! I'm up and running now -- Thank You!
alex1hamilton Jun 24, 2010 06:53 PM
Thanks dhiraj - I now have Zope up and running. Next problem - when I go to the IP address:8080 I'm not able to see the site. I've installed on Ubuntu 10.04 on a RackSpace cloud. Any idea what I could be doing wrong? Thanks
dhiraj Jun 24, 2010 09:57 PM
Uhh.... nope. Could it be a firewall issue?
alex1hamilton Jun 24, 2010 11:53 PM
Not sure... but it's now working from a different machine. Thanks - it's an amazing product
iadawn Jun 27, 2010 03:18 PM
Ok, so this is all great and I am up and running and can see the ZMI... but what now? How do I actually get up and running with Cyn.in? Cheers for any pointers
dhiraj Jun 27, 2010 03:44 PM
You need to add a plone site named cynin, and install the ubify.policy product. Have a look at the Readme text file in the source for the details after getting your buildout running.
dhiraj Jun 27, 2010 09:23 PM
Added instructions for buildout on Mac OS X Snow leopard.
dhiraj Jul 26, 2010 01:16 PM
Added ./configure settings in Ubuntu 10.04 section.
denniswinter Aug 06, 2010 02:47 PM
Something didn't work here..
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
dhiraj Aug 06, 2010 04:26 PM
Hmm... that's a new one, haven't seen that before. There is something probably very badly wrong with your *python*, it can't find the array module! What OS are you trying this on?
denniswinter Aug 06, 2010 04:41 PM
I'm using Ubuntu 8.0.4! I'm on a Virtual Host environment with Plesk. I've followed the instructions for installing python, like it is stated above.
denniswinter Aug 06, 2010 08:31 PM
Ok, reinstalled everything! Zope starts now..
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 :)
dhiraj Aug 07, 2010 12:18 AM
There are two users, of whom you have to set the password.

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
dunamix Aug 28, 2010 12:37 AM
Hi,
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
dhiraj Aug 28, 2010 12:46 AM
Hi dunamix,

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.
domarques Sep 02, 2010 07:07 AM
For those that having problems in install cyn.in on debian/ubuntu way, I recomend installing Python from source instead using package managers like apt-get or aptitude. With some information located at this document you can do this:

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).
domarques Sep 02, 2010 07:11 AM
On sed command, use this instead: sed -i "/effective-user/s/[^ ]\ *$/`whoami`/g" user.cfg
domarques Sep 02, 2010 07:14 AM
after backslash (\) must have a plus (+)
lauraitis Sep 03, 2010 12:12 PM
Hello :) Just wanted to ask a few questions. I've installed Cyn.In community appliance using virtualization with VMware. Looks nicely there.

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
dhiraj Sep 30, 2010 09:01 AM
It's generally not a good idea to run a regular Plone site in the same Zope instance as Cyn.in. One of the reasons for this is that Cyn.in uses ZCML overrides to change certain parts of the UI that is not accessible for overriding in any other way (at least that we know) so regular Plone UI and policies may be affected even if the Cyn.in products are not installed into your plone instance.
davidprest Sep 26, 2010 04:23 AM
Hi
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
dhiraj Sep 30, 2010 09:04 AM
In user.cfg you have set your effective-user setting to david, but this user doesn't really exist on your system. You need to use your "normal" user instead of david. If you're using the alestic ubuntu AMI on Amazon EC2, then I think this username would be "ubuntu".
bmarkovic Nov 10, 2010 02:39 PM
I tried to follow the tutorial. Both the wiki one and the one in the comment of Domarques, but in both cases I end up with same reszlt.

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?
bmarkovic Nov 10, 2010 02:47 PM
Read the readme. Feel like a dumbass right now. To my defence Plone4 (what I used before) takes you by the hand from first page and guides you like a valkyre.
tauli Feb 22, 2011 03:01 PM
Hello,
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 ???
asdf12 Mar 08, 2011 07:33 AM
I am getting the Exact same issue.
Anybody got a solution for this ?

Kindly do let us know on the forum.

Thanks
asdf12 Mar 08, 2011 06:55 PM
Hey.
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
hectorcen May 30, 2011 07:56 PM
Hi everyone!

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.
timeu Jun 09, 2011 03:15 PM
yes I had the same issue. The only solution is to do a buildout on the new 3.2.x branch. The new one works.
earpnet Jun 23, 2011 06:48 PM
if i do the bootstrap on the 3.2.2 branch, i get following errors:

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?
thaeny Jul 08, 2011 03:41 PM
I get the following Error while running the buildout
/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...

elogic Jul 10, 2011 05:25 PM
Hi - I'm using Ubuntu 10.04 LTS and 3.1.3 from SVN. I've followed instructions perfectly but get this error:

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
thaeny Aug 16, 2011 03:33 PM
Is their any news about the error above?
Or is the cyn.in-project dead?
lincolntlng Oct 15, 2011 06:33 AM
Any ideas about that error?
lincolntlng Oct 15, 2011 07:07 AM
The error happens because of a change in Plone. If you wanna know more, follow this: http://plone.293351.n2.nabb[…]ning-buildout-td339436.html

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.
lincolntlng Oct 15, 2011 09:01 AM
I made a progress, but it still fail... I added the following lines in my user.cfg:

[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.
lincolntlng Oct 15, 2011 10:50 AM
Finally it concludes, but "./bin/instance start" will fail. The code:

[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
thaeny Dec 28, 2011 03:30 PM
Hi Folks

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

thaeny Dec 28, 2011 03:44 PM
Hi Cynin

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?
...
thaeny Dec 28, 2011 08:31 PM
Okay,

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


andrebrown May 26, 2012 06:58 AM
@thaney I see that you got the buildout working. Could you please publish the changes you made? Thanks.
thaeny Jul 31, 2012 07:24 PM
hello andrebrown

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
jonepps Oct 08, 2012 10:00 PM
Hi everyone

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
denver Apr 08, 2013 12:14 PM
Hi I'm using Ubuntu 12.04 LTS, and I'm really struggling with the bootstrap step. I get the next error each time.

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.
coldlamper May 19, 2013 06:37 AM
I have the same exact problem on ubuntu 10.04 but ~/venv/bin/python2.4 bottstrap.py downloads distribute-0.6.39.tar.gz at the beginning. Is this project still active? This doc seems really outdated.

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
gsiak Sep 16, 2013 03:23 PM
Yeah, just succesfully installed cyn.in 3.1.3 from scratch on Ubuntu 12.04 LTS 64bit......
incadence Sep 18, 2013 06:02 AM
Would love to know how gsiak! I've been struggling trying to get the virtualenv setup keep getting Syntax Errors

$ virtualenv -p python2.4 venv
Running virtualenv with interpreter /usr/local/bin/python2.4
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1508
    cp_or_ln = (os.symlink if symlink else copyfile)
SyntaxError: invalid syntax
popowich Sep 21, 2013 02:57 AM
Hello, how did your install process differ from the above for Ubuntu 12? Thanks!
popowich Sep 20, 2013 04:59 AM
Hi gsiak, me too, +1 the above post.
khurram85 Apr 03, 2014 02:56 PM
Hi,
I am having the same problem as denver was having where /bin/python2.4 bottstrap.py downloads distribute-0.6.39.tar.gz which i think isn't compatible with python2.4

Did anyone work this around? I have tried it on Ubuntu12 and Centos6.5 same error on both.
chanlhock May 09, 2014 04:58 AM
I have overcome the build problem and now when I start the server, I get the error message below. Can any help give some pointers as to how to resolve this issue? Thanks


[root@agmlxs201 cynin-master]# ./bin/instance fg
/var/www/html/cynin-master/parts/instance/bin/runzope -X debug-mode=on
2014-05-09 10:45:39 INFO ZServer HTTP server started at Fri May 9 10:45:39 2014
        Hostname: 0.0.0.0
        Port: 8080
2014-05-09 10:45:39 INFO ZServer Clock server for "/cynin/@@tickupdate" started (user: Anonymous, period: 60)
2014-05-09 10:45:39 INFO ZServer WebDAV server started at Fri May 9 10:45:39 2014
        Hostname: 0.0.0.0
        Port: 1980
2014-05-09 10:45:39 INFO Zope Set effective user to "chanhock"
2014-05-09 10:45:40 ERROR Application Could not import Products.ATContentTypes
Traceback (most recent call last):
  File "/var/www/html/cynin-master/parts/zope2/lib/python/OFS/Application.py", line 709, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "/var/www/html/cynin-master/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 "/var/www/html/cynin-master/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/config.py", line 30, in ?
    from Products.ATContentTypes.configuration import zconf
  File "/var/www/html/cynin-master/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 "/var/www/html/cynin-master/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 "/var/www/html/cynin-master/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/configuration/schema.py", line 29, in ?
    from Products.ATContentTypes.configuration import datatype
  File "/var/www/html/cynin-master/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 "/var/www/html/cynin-master/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/__init__.py", line 35, in ?
    import FSZSQLMethod
  File "/var/www/html/cynin-master/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/FSZSQLMethod.py", line 23, in ?
    from Products.ZSQLMethods.SQL import SQL
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Products/ZSQLMethods/__init__.py", line 18, in ?
    import Shared.DC.ZRDB.Search, Shared.DC.ZRDB.Aqueduct, SQL
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Products/ZSQLMethods/SQL.py", line 19, in ?
    import Shared.DC.ZRDB.DA
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Shared/DC/ZRDB/DA.py", line 18, in ?
    import OFS.SimpleItem, Aqueduct, RDB, re
  File "/var/www/html/cynin-master/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 "/var/www/html/cynin-master/parts/zope2/lib/python/Zope2/Startup/run.py", line 56, in ?
    run()
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Zope2/Startup/run.py", line 21, in run
    starter.prepare()
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 102, in prepare
    self.startZope()
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 278, in startZope
    Zope2.startup()
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Zope2/__init__.py", line 47, in startup
    _startup()
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Zope2/App/startup.py", line 45, in startup
    OFS.Application.import_products()
  File "/var/www/html/cynin-master/parts/zope2/lib/python/OFS/Application.py", line 686, in import_products
    import_product(product_dir, product_name, raise_exc=debug_mode)
  File "/var/www/html/cynin-master/parts/zope2/lib/python/OFS/Application.py", line 709, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "/var/www/html/cynin-master/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 "/var/www/html/cynin-master/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/config.py", line 30, in ?
    from Products.ATContentTypes.configuration import zconf
  File "/var/www/html/cynin-master/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 "/var/www/html/cynin-master/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 "/var/www/html/cynin-master/eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/configuration/schema.py", line 29, in ?
    from Products.ATContentTypes.configuration import datatype
  File "/var/www/html/cynin-master/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 "/var/www/html/cynin-master/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/__init__.py", line 35, in ?
    import FSZSQLMethod
  File "/var/www/html/cynin-master/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/FSZSQLMethod.py", line 23, in ?
    from Products.ZSQLMethods.SQL import SQL
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Products/ZSQLMethods/__init__.py", line 18, in ?
    import Shared.DC.ZRDB.Search, Shared.DC.ZRDB.Aqueduct, SQL
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Products/ZSQLMethods/SQL.py", line 19, in ?
    import Shared.DC.ZRDB.DA
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Shared/DC/ZRDB/DA.py", line 18, in ?
    import OFS.SimpleItem, Aqueduct, RDB, re
  File "/var/www/html/cynin-master/parts/zope2/lib/python/Shared/DC/ZRDB/RDB.py", line 22, in ?
    from array import array
ImportError: No module named array


sulabh Jun 05, 2014 03:50 PM
this doc seems really outdated.

First I tried the virtualenv thing, i get stuck with the error
**This script needs python2.6 or higher**

THen without virutal env, and with ONLY python2.4 on my ubuntu system,
I am stuck at bootstrap problem

Downloading http://pypi.python.org/[…]/distribute-0.6.49.tar.gz
Extracting in /tmp/tmpUHQueU
Now working in /tmp/tmpUHQueU/distribute-0.6.49
Building a Distribute egg in /tmp/tmpl1u-08
  File "build/bdist.linux-x86_64/egg/setuptools/tests/test_easy_install.py", line 315
    finally:
          ^
SyntaxError: invalid syntax
/tmp/tmpl1u-08/distribute-0.6.49-py2.4.egg
  File "build/bdist.linux-x86_64/egg/zc/buildout/easy_install.py", line 116
    with _Monkey(setuptools.package_index, log=_no_warn):
               ^
SyntaxError: invalid syntax
  File "build/bdist.linux-x86_64/egg/zc/buildout/configparser.py", line 178
    tail = tail.replace(';', '#') if tail else ''
                                   ^
SyntaxError: invalid syntax
  File "/tmp/tmpl1u-08/zc.buildout-2.2.1-py2.4.egg/zc/buildout/easy_install.py", line 116
    with _Monkey(setuptools.package_index, log=_no_warn):
               ^
SyntaxError: invalid syntax
  File "/tmp/tmpl1u-08/zc.buildout-2.2.1-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 118, in ?
    ws.require('zc.buildout' + VERSION)
  File "/home/ubuntu/python/2.4.6/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 698, in require
    class Environment(object):
  File "/home/ubuntu/python/2.4.6/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 600, in resolve
    
pkg_resources.VersionConflict: (setuptools 0.6c11 (/home/ubuntu/python/2.4.6/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg), Requirement.parse('setuptools>=0.7'))




was anyone able to do this without a hitch? would highly appreciate if someone shares a step by step for an ubuntu EC2 instance

Thanks
 
Loading