[Zope3-dev] Developers Book

Aaron Bodmer aaron.bodmer at appositetech.com
Sun Aug 15 07:20:50 EDT 2004


Vinj,

I looked and the install instructions for Zope on windows, given on P.13 of
the Zope Book, do need some expansion.  There's more to it than just running
the binary installer, and I'm not sure the book makes that clear to folks
who skip the instructions for other platforms.  

I'm on windows and can get the basic Zope server running, so let me offer
some links some links and instructions ...

Latest Zope Binary installer (currently beta-3)
http://zope.org/Products/ZopeX3
   	
Windows Install Directions
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ZopeX3300a1

In a nutshell, the install should go like this :
	
   1. Install Python 2.3 if you haven't already
   2.	Use the Add/Remove Control Panel to uninstall any previous
	version of ZopeX3
   3.	Run the installer for Zope X3
   4.	Get a windows command prompt and change directory to the 
	python install directory (usually c:\python23\  )
   5.	If your install directory is c:\zope3 and your username and
	password are both vinjvinj, enter the following text at the
	command prompt :
	.\python .\Scripts\mkzopeinstance -d c:\zope3 -u vinjvinj:vinjvinj

	Note: You don't have to edit principals.zcml, though you might 
		want to view it after the install.  The mkzopeinstance 
		script will use the -u option	to configure an initial 
		site manager.
	
   6.	The install is complete (or should be).  To run the server, enter 
	the following at the command prompt from within the python install 
	directory :
	
	.\python c:\zope3\bin\runzope
	
That's it.  It should run fine with the base install.  If it doesn't,
double-check your python version.  I found the whole process for starting it
on windows a bit cumbersome, so I created a desktop shortcut.  I'm attaching
it to the email in a ZIP file since some filters don't like shortcuts as
attachments.  

   Note on the shortcut :
   	If your python install directory isn't c:\python23 or your 
	zope directory isn't c:\zope3, you'll have to edit the shortcut.
	Just right click on it, select "properties", and it should be
	self-explanatory from there.


If you want to do some database stuff with your Zope, you'll probably also
want to download PostgreSQL and the PsycopgDA module.  Fortunately, in a
nice bit of timing, PostgreSQL has just begun beta testing of a Windows
version ( by which I mean standard windows installer with no separate Cygwin
install needed).

Latest PostgreSQL 8.0 Download (currently beta-1)
http://pgfoundry.org/project/showfiles.php?group_id=1000007

Psycopg Database Adapter

This is a problem, at least for me it is.  There is, at the moment I'm
writing, and to the best of my knowledge, no zip or gzip file you can
download to get a release of this module that works with Zope X3.

The python language website maintains a listing of python language database
adapters on http://python.org/topics/database/modules.html .  Not all of
these work with Zope X3 yet, of course, but Psycopg is listed there.  The
link it directs one to follow is currently dead.  I don't know if this is a
server problem or if the listing is just out of date.

Fortunately, as mentioned a few messages ago on-list, the most recent
version of PsycopgDA is available from the Zope 3 SVN repository.  On
WindowsXP, I've found Tortoise SVN is easily set up and easily used.  Just
create a folder where you want your checkout copy of PsycopgDA to go,
right-click on the folder, select "Checkout" and give it this address, which
will limit the checkout to just the adapter : 

	svn://svn.zope.org/repos/main/psycopgda

I initially downloaded the whole repository and discovered that WinXP with
TortoiseSVN installed really doesn't handle a large number of subdirectories
well.  

I haven't been able to get Zope to startup with Psycopg installed.  If you
decide to try installing it, let me know if it works.

If any part of this email is incoherent, it probably because I'm writing it
at 6a local time.  :)

Seriously, though, I hope this helps.

--Aaron

-----Original Message-----
From: zope3-dev-bounces+aaron.bodmer=appositetech.com at zope.org
[mailto:zope3-dev-bounces+aaron.bodmer=appositetech.com at zope.org] On Behalf
Of Vinj Vinj
Sent: Saturday, August 14, 2004 2:51 PM
To: zope3-dev at zope.org
Subject: RE: [Zope3-dev] Developers Book

I'm in the process of installing zope and building a
demo application so have patience with me. Following
the installation instructions in cookbook:

1. reading the instructions it was not clear where I
would zoperun on windows. I did a search on the
Python23 directory and found that there were tow
copies one in skel and one in zopeskel. Does it make
sense to have these in the root python23 directory?
What is the difference between skel and zopeskel. 

2. A lot of the files had an extra .in added to them
which I had to remove. For instance runzope was
runzope.in

3. After running runzope I get the following error:
C:\Python23\skel\bin>runzope
Error: no values for section type 'accesslog'; 1
required
For help, use C:\Python23\skel\bin\runzope.py -h

4. I tried to do a svn on the wiki project but got the
following error:
C:\Python23\Lib\site-packages\zope\app>svn co
svn://svn.zope.org/repos/main/Zope3/branches/ZopeX3-3.0/src/zope/app/wiki
wiki
svn: URL
'svn://svn.zope.org/repos/main/Zope3/branches/ZopeX3-3.0/src/zope/app/wiki'
doesn't exist

5. I then added the steps listed in installing from
svn (even though I sintalled the binary version):

  <principal
    id="zope.userid" title="User Name Title"
    login="vinjvinj" password="vinjvinj"
    />

  <grant role="zope.Manager" principal="zope.userid"
/>
  <grant role="zope.Manager" principal="zope.anybody"
/>

that did not fix the errors in 3. 

6. I could not find makezope anywhere under the
python23 direcotry. 

Thanks for your help,



-----Original Message-----
From: zope3-dev-bounces+vinjvinj=yahoo.com at zope.org
[mailto:zope3-dev-bounces+vinjvinj=yahoo.com at zope.org]On
Behalf Of Corey
Sent: Wednesday, August 11, 2004 12:40 PM
To: zope3-dev at zope.org
Subject: Re: [Zope3-dev] Developers Book


On Wednesday 11 August 2004 10:08 pm, Stephan Richter
wrote:
> On Monday 09 August 2004 05:02, Corey wrote:
> > How current is the Zope3 Book right now?
<snip>
> No, I have been working on it steadily. I just do
not update the entire
> book all the time online. I just did so. The first
three parts (or 18
> chapters) are now in their final state.
>

Great - thanks!

Much appreciated.


> > Any news as to when it's going to be published?
>
> I have prepared the first 18 chapters for the
publisher. I hope to finish
> the book this month, so we that the editing can
begin. The book should be
> out in October or November then.
>

Excellent! I'm looking forward to purchasing a copy.


Beers,

Corey

-- 

"Flags are bits of colored cloth that governments use
first to 
shrink-wrap people's minds and then as ceremonial
shrouds to bury
the dead." 
  - Arundhati Roy



_______________________________________________
Zope3-dev mailing list
Zope3-dev at zope.org
Unsub:
http://mail.zope.org/mailman/options/zope3-dev/aaron.bodmer%40appositetech.c
om

-------------- next part --------------
A non-text attachment was scrubbed...
Name: RunZope.zip
Type: application/x-zip-compressed
Size: 623 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20040815/b3a76370/RunZope.bin


More information about the Zope3-dev mailing list