SunQuest
           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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 5th, 2003, 06:46 PM
coremah coremah is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 11 coremah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ActiveState Python, not loading after first time viewing

I am using ActiveState Python in my ASP code, (First Example)

The first time I load the page it works fine, anytime after that all I get is a blank page(Second Example).

If I resave the file then it works again, but only once.

I just installed Python onto the Server. (windows 2000)

Anyone have any Idea's?


***************************************
<html><head>
<title>Bob</title>
</head>
<body>
<%@ Language = Python %>
<%
Response.Write("Test")
%>
</body>
</html>

***************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Reply With Quote
  #2  
Old August 6th, 2003, 12:47 PM
coremah coremah is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 11 coremah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Slightly better explenation.

After playing around with a little more, I have figured out that it is simply not displaying anything at all after the first time it runs.
----------------------------------------
test
<%@ LANGUAGE = Python %>
----------------------------------------


The above source code will send test to the browser the first time I goto the page.

The second time I go to the page, nothing is generated.

If I use vbscript it works fine.

Devolpment on my site continues, but If I can't fix this then I can deploy it.

If anyone has any Idea's I would very much appriciate it.

Reply With Quote
  #3  
Old August 6th, 2003, 02:55 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,529 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 17 h 19 m 5 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
I don't know, this sounds like a setup/server thing, you'r not actually doing anything with Python that could cause this, infact from what i can see your not doing anything with Python at all. You might get a better reponce form the ASP forum.

One minor point, i thought the <%@ LANGUAGE = Lang %> had to be the first line in ASP? I'm not sure where I picked this up but..

If I figure somthing out then I will let you know,
Mark.

Reply With Quote
  #4  
Old August 6th, 2003, 03:15 PM
coremah coremah is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 11 coremah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem Solved

I just found the problem and resolved it.

Apartently this is a known bug in the 2.2.x release.

-------------------------------------------------------------------------------
This ia a bug I am hoping to fix very soon. If you are really keen,
then you can grab the framework.py from win32all-142.exe - you can open
that .exe using WinZip.

- Mark Hammond
-------------------------------------------------------------------------------


http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=vtk68.20338%248d1.7162721%40news1.rdc1.md.home.com&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dasp%2Bpython%2Brefresh

Reply With Quote
  #5  
Old August 6th, 2003, 03:26 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,529 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 17 h 19 m 5 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
good tracking, So how did you manage to solve the problem just out of interest? I've been interested in using Python with ASP but i dont like windows servers so i havnt taken it any further, maybe one day I will. Is the interface to ASP framework.py or an exe?

Mark.

Reply With Quote
  #6  
Old August 6th, 2003, 03:32 PM
coremah coremah is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 11 coremah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Basically I just hunted on google for a couple of hours until I found other people who had the same problem.

This issue aside, using Python for ASP works very well.

It was pretty easy to install, and works far better then vbscript.

Oh, and I hate working on a window's server too, but I doubt I could get permission to install linux; this is the next best thing.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > ActiveState Python, not loading after first time viewing


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