Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old October 4th, 2003, 01:34 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 2 m 16 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
If you install mod_python or fastcgi then you'll get allot better results from Spyce (near to PHP speed). It is the best one out there imo, there are allot of tag based solussions but when it comes to embedding Spyce is in first place , you can use any extension you want, all you have to do is edit Apache's config file to run .html files though Spyce. damn MS ah well, have fun with debian (never used it but i like the logo)

This page may be of interest for users considering Unising Spyce but are unsure the speed.

http://spyce.sourceforge.net/doc-add_perf.html

Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #17  
Old October 4th, 2003, 07:11 AM
MasterChief MasterChief is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Virginia
Posts: 495 MasterChief User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 6 m 24 sec
Reputation Power: 6
Send a message via AIM to MasterChief Send a message via MSN to MasterChief
I downloaded and installed Spyce. I wasn't able to go to http://localhost/spyce/

Do I need to turn the RewriteEngine off or change the rule so that I can save stuff as ".htm"

#<IfModule mod_rewrite.c>
# RewriteEngine On
# RewriteRule ^(.*\.spy) http://localhost:8000$1 [p]
#</IfModule>

Reply With Quote
  #18  
Old October 4th, 2003, 11:46 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 2 m 16 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Don't worry about not being able to get to the docs that way Chief, i've never got it to work but it makes no diferance at all so

Mmmm, well i don't know about mod_rewrite, you shouldn't have to touch that. All you have to do is find the the section of you apache config which deals with spyce (near the end) and change all the .spy extensions to read .html and it should work fine.

There is one thing i should mension.. because Apache now see's html files as Spyce even none Spyce html pages will be parsed. So i'd only make these changes if your not going to be running any plain html pages though your localhost , unless you don't mind the chnage in preformance

Mark.

Reply With Quote
  #19  
Old October 4th, 2003, 05:09 PM
MasterChief MasterChief is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Virginia
Posts: 495 MasterChief User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 6 m 24 sec
Reputation Power: 6
Send a message via AIM to MasterChief Send a message via MSN to MasterChief
I downloaded and installed just Spyce.

I was trying to do my very first Spyce page but I ran into some trouble.

I use Notepad to do everything. Well, I wrote this:

<html><body>
Hello [[print 'world!',]]
[[ for i in range(10): { ]]
[[=i]]
[[ } ]]
</body></html>

I saved it as "hello.spy" then tried executing it. I got this:

Hello [[print 'world!',]] [[ for i in range(10): { ]] [[=i]] [[ } ]]

http://spyce.sourceforge.net/doc-intro_started.html

Reply With Quote
  #20  
Old October 4th, 2003, 05:39 PM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 2 m 16 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Oh ok, it sounds like apache hasn't been configured to run spyce.. did you download the windows installer?

You may want to check your config file and see if spyce is in there, also If you edited the config as above you'll need give your page a .html extension. Oh you need to restart apache after installing spyce if you havn't does this already.. i know it sounds dumb but you'd be surprised how often this happens.

Mark.

Reply With Quote
  #21  
Old October 4th, 2003, 06:11 PM
MasterChief MasterChief is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Virginia
Posts: 495 MasterChief User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 6 m 24 sec
Reputation Power: 6
Send a message via AIM to MasterChief Send a message via MSN to MasterChief
I downloaded spyce-1.3.11.exe from here

Spyce wasn't in my Apache config file. I chose not to change the extension. I restared my Apache server and it still doesn't work.

Reply With Quote
  #22  
Old October 4th, 2003, 06:34 PM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 2 m 16 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Ah, the installer should have configured Apache for you but no big. It's pretty simple, i've attached the spyce config so all you need to do is copy and paste it into Apache's config and change XXX to point at Sypce and your away

Mark.
Attached Files
File Type: txt spyceapache.txt (2.4 KB, 115 views)

Reply With Quote
  #23  
Old October 4th, 2003, 09:42 PM
MasterChief MasterChief is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Virginia
Posts: 495 MasterChief User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 6 m 24 sec
Reputation Power: 6
Send a message via AIM to MasterChief Send a message via MSN to MasterChief
I added that to my Apache config file and changed all the "XXX"s to where Spyce is located on my computer, but no luck.

* I did restart my Apache service after I made the changes.

Reply With Quote
  #24  
Old October 5th, 2003, 11:29 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 2 m 16 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Oh ok this makes no sence at all, I know your using Apache 2 but still.. let's try somthing new! Remove spyce from your config file and replace it with this..

Quote:
AddHandler spyce-cgi-handler spy
Action spyce-cgi-handler "/spyce-cgi/run_spyceCGI.py"
ScriptAlias /spyce-cgi/ "C:/Program Files/spyce/"

ScriptInterpreterSource registry


..which is a cut down version of the bits you need to run Spyce in CGI mode only. obviously if Spyce isn't at 'C:/Program Files/spyce/' then you'll need to change it a little but this is all you really need!

I'm running Spyce on WinXP Home and Apache 1.3.x and it works perfectly! But if the problem presists i'll download Apache 2 and give it a go..

Mark.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > XHTML and Python


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway