[ZODB-Dev] failed installation attempt on Vista

2009-12-20 Thread Ross Boylan
Even though I've used ZODB before (not standalone on Windows, however), 
I've been unable to get it installed, and barely able to follow your web 
presence.

The general index of persistence tools for python, 
http://wiki.python.org/moin/PersistenceTools, leads to 
http://wiki.zope.org/ZODB.  That in turn directs one to launchpad, but 
that is a red-herring for either installing the package or discovering 
documentation.  launchpad in turn directs one back to 
http://wiki.zope.org/ZODB.

Downloads go to http://pypi.python.org/pypi/ZODB3.  You pick the latest 
version, and there is nothing to download on the page.  The installation 
instructions suggest using easy_install.  The installation instructions 
there direct you to http://pypi.python.org/pypi/setuptools.  That in 
turn has an installation and download section.  That sends you to 
http://pypi.python.org/pypi/setuptools#files, which finally provides a 
windows installer.

Having installed easy install, which itself has some not easy 
installation instructions (if you have a prior version installed do x y 
and z), I then found no help on it.  Going back to the easy install web 
pages for useage, I tried this:
shell
 easy_install ZODB
easy_install ZODB
Searching for ZODB
Reading http://pypi.python.org/simple/ZODB/
Couldn't find index page for 'ZODB' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for ZODB
Best match: None
Traceback (most recent call last):
  File C:\Python26\Scripts\easy_install-script.py, line 8, in module
load_entry_point('setuptools==0.6c11', 'console_scripts', 
'easy_install')()
  File 
C:\Python26\lib\site-packages\setuptools\command\easy_install.py, line 
1712, in main
with_ei_usage(lambda:
  File 
C:\Python26\lib\site-packages\setuptools\command\easy_install.py, line 
1700, in with_ei_usage
return f()
  File 
C:\Python26\lib\site-packages\setuptools\command\easy_install.py, line 
1716, in lambda
distclass=DistributionWithoutHelpCommands, **kw
  File C:\Python26\lib\distutils\core.py, line 152, in setup
dist.run_commands()
  File C:\Python26\lib\distutils\dist.py, line 975, in run_commands
self.run_command(cmd)
  File C:\Python26\lib\distutils\dist.py, line 995, in run_command
cmd_obj.run()
  File 
C:\Python26\lib\site-packages\setuptools\command\easy_install.py, line 
211, in run
self.easy_install(spec, not self.no_deps)
  File 
C:\Python26\lib\site-packages\setuptools\command\easy_install.py, line 
434, in easy_install
self.local_index
  File C:\Python26\lib\site-packages\setuptools\package_index.py, line 
475, in fetch_distribution
return dist.clone(location=self.download(dist.location, tmpdir))
AttributeError: 'NoneType' object has no attribute 'clone'
/shell

I'm trying now with ZODB3, which seems to be going better.

And the documentation, as the package and web pages note, is in sad state.

This is all very awkward, and really quite unapproachable.

Ross Boylan
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


[ZODB-Dev] ZODB3 installation ambiguous conclusion

2009-12-20 Thread Ross Boylan
easy_install ZODB3 looked fairly good during installation until  the end:
quote
Processing transaction-1.0.0.tar.gz
Running transaction-1.0.0\setup.py -q bdist_egg --dist-dir 
c:\users\ross\appdata\local\temp\easy_install-cw1i4f\transaction-1.0.0\egg-dist-tmp-z7nrfd
Adding transaction 1.0.0 to easy-install.pth file

Installed c:\python26\lib\site-packages\transaction-1.0.0-py2.6.egg
Finished processing dependencies for ZODB3

WARNING:

An optional code optimization (C extension) could not be compiled.

Optimizations for this package will not be available!

Unable to find vcvarsall.bat

/quote
This seems to say things will work, just not as fast as they could.  But 
I'm a little puzzled why things would work at all, since I don't have a 
build environment on the machine (well, there is a compiler that's part 
of the MS SDK, but I'm not really sure how capable or operational it 
is--it did seem to compile some sample C code in the kit).

Is there a pure python fallback for the C code?  I thought ZODB had some 
C-level magic.

Ross
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] ZODB3 installation ambiguous conclusion

2009-12-20 Thread Laurence Rowe
2009/12/20 Ross Boylan rossboy...@stanfordalumni.org:
 easy_install ZODB3 looked fairly good during installation until  the end:
 quote
 Processing transaction-1.0.0.tar.gz
 Running transaction-1.0.0\setup.py -q bdist_egg --dist-dir
 c:\users\ross\appdata\local\temp\easy_install-cw1i4f\transaction-1.0.0\egg-dist-tmp-z7nrfd
 Adding transaction 1.0.0 to easy-install.pth file

 Installed c:\python26\lib\site-packages\transaction-1.0.0-py2.6.egg
 Finished processing dependencies for ZODB3
 
 WARNING:

        An optional code optimization (C extension) could not be compiled.

        Optimizations for this package will not be available!

 Unable to find vcvarsall.bat
 
 /quote
 This seems to say things will work, just not as fast as they could.  But
 I'm a little puzzled why things would work at all, since I don't have a
 build environment on the machine (well, there is a compiler that's part
 of the MS SDK, but I'm not really sure how capable or operational it
 is--it did seem to compile some sample C code in the kit).

 Is there a pure python fallback for the C code?  I thought ZODB had some
 C-level magic.

ZODB requires C-code modules to work, but pre-compiled win32 eggs are
available, and presumably that is what easy_install picked. It's not
clear to me what generated that warning, but then I don't use Windows.

Laurence
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


[ZODB-Dev] No module named Persistence

2009-12-20 Thread Ross Boylan
The IPC10 presentation says
#Works as a side-effect of importing ZODB above
from Persistence import Persistent

I tried that (with the indicate other imports first).  It led to a No 
module error.

I tried commenting out the line, since the comment could be interpreted 
to mean that importing ZODB already does what's necessary.  But there 
was no Persistent class defined I could use.

I tried from Globals import Persistent, as suggested in a 1998 posting.  
This produced No module named  Globals.

Suggestions?

Ross Boylan
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] No module named Persistence

2009-12-20 Thread Laurence Rowe
2009/12/20 Ross Boylan rossboy...@stanfordalumni.org:
 The IPC10 presentation says
 #Works as a side-effect of importing ZODB above
 from Persistence import Persistent

 I tried that (with the indicate other imports first).  It led to a No
 module error.

 I tried commenting out the line, since the comment could be interpreted
 to mean that importing ZODB already does what's necessary.  But there
 was no Persistent class defined I could use.

 I tried from Globals import Persistent, as suggested in a 1998 posting.
 This produced No module named  Globals.

 Suggestions?

That is the old Zope2 persistence base class. Try 'from persistent
import Persistent'.

http://docs.zope.org/zodb/zodbguide/prog-zodb.html#writing-a-persistent-class

(note that guide has probably not been updated since ZODB 3.7, so
don't expect any newer features to be documented there).

Laurence
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev