If you are just starting out with Spyce, be aware that it hasn't seen any development in several years. It was a great project, but it didn't gain a large user base.
I've been looking for a Spyce replacement for years, and recently I've finally found Mako. If you connect it to Apache, it does much of what Spyce did -- not everything, but quite a bit. The Mako project has a good following and a strong developer base. All by itself, it enables PHP-style/Spyce-style code in web pages.
For larger projects, I partner Mako with Django. Mako makes for a great front end, Django is a great back end.
You can get my Apache connector here: http://warp.byu.edu/site/content/813
Conan C. Albrecht, Ph.D.
Information Systems Department
Brigham Young University
On Jul 22, 2011, at 3:21 PM, Rui Coelho Justino wrote:
> Hi, check the last email
> On Saturday, 9 de April de 2011 15:06:01 Andy Sy wrote:
> > For those encountering the following:
> > syntax: please specify a spyce file to process
> > Use -h option for help.
> > issue, the fix is explained at:
> > http://www.neotitans.com/resources/python/spyce-tips-and-techniques.html
> > In a nutshell, change the following line in spyceCGI.py:
> > try: path = findScriptFile(environ['PATH_TRANSLATED'])
> > to
> > try: path = findScriptFile(environ['SCRIPT_FILENAME'])
> > Even unupdated for a couple of years(?), Spyce is *still*
> > the simplest and easiest way of getting Python server pages
> > functionality. Does anyone really know of a better
> > alternative?
> > For those having problems with Python 2.6, e.g. "as" and "with"
> > being used as keywords, the instances of "as" and "with" variables
> > in the following files need to be changed:
> > spyce-2.1/spyce.py
> > spyce-2.1/tags/form.py
> > then all should be working again.
> Good luck.
> On Thursday, 21 de July de 2011 22:33:38 Rodney Lewis wrote:
> > Hello;
> > I am trying to run the Spyce dev server on my local WinVista machine.
> > I get this error:
> > ---
> > C:\Spyce>spyceCmd.py -l
> > Traceback (most recent call last):
> > File "C:\Spyce\spyceCmd.py", line 12, in <module>
> > import spyce, spyceException, spyceUtil, spyceCompile, spycePreload
> > File "C:\Spyce\spyce.py", line 549
> > def _startModule(self, name, file=None, as=None, force=0):
> > ^
> > SyntaxError: invalid syntax
> > ----
> > The caret would be under the attribute name 'as' if it were in a
> > fixed-width font.
> > Any help would be greatly appreciated as I love Python am excited to
> > see Spyce in action on my computer.
> Sent from Kmail
> 10 Tips for Better Web Security
> Learn 10 ways to better secure your business today. Topics covered include:
> Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
> security Microsoft Exchange, secure Instant Messaging, and much more.
> Spyce-users mailing list