<html>
<head></head>
<body>
<p>It works for me Christoph, thank you very much!.</p>
<p>About Lucid, I tryed without exit xD. I've downloaded python 2.5.5 from Python website (<a href="http://www.python.org/download/releases/2.5.5/">http://www.python.org/download/releases/2.5.5/</a>) and build it:</p>
<p>1 - configure<br/>
2 - make<br/>
3 - sudo make altinstall</p>
<p>The bin folder is /usr/bin/python2.5.5/bin. So, I supose that I can do like you changing paths:</p>
<p><p>sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.6 10</p>
<br/>
<p>sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.5.5/bin/python 20</p>
<p>I run python on a terminal and version appears 2.5.5, however, I run VenueServer3.py and terminal shows the next message:</p>
<p>"Import Error: No module named twisted.internet"</p>
<p>VenueClient3.py shows "ImportError: no module named agversion"</p>
<p>So I suppose that this steps fails and AccessGrid doen't take the Python 2.5.5 modules.</p>
<p>I'll make more tests.</p>
<p>Regards and Thanks again!</p>
<br/>
<br/>
<div>El dia 18 may 2010 15:46, Christoph Willing &lt;c.willing@uq.edu.au&gt; escribi&oacute;:</div><blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>On 18/05/2010, at 10:44 PM, Christoph Willing wrote:</p>
<blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>On 18/05/2010, at 7:12 AM, Jesus Cea Oliva wrote:</p>
<blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>Thanks Christoph again for your responses, that, always helps ;).</p>
<p>It's possible install python 2.5 on newer Linux distributions and  do something for Access Grid "take" the python 2.5 modules? We have  a server with Ubuntu Karmic and reinstall the system is not  possible due to there are many programs installed for others  purposes.</p>
</blockquote><p>Although 2.6 is the default python on karmic, the official Ubuntu  repos have versions 2.4 and 2.5 available too (even 3.1 actually).  They can be installed at the same time. Applications can then call  any of them explicitly e.g. application script could start with #!/ usr/bin/python2.6 or #!/usr/bin/python2.5 etc. Another mechanism to  choose between them is to add python to the "alternatives" framework  and then select the version you want to be the default using "update- alternatives".</p>
<p>So I think the answer is yes - you may be able to run python 2.5 on  your server alongside 2.6. The AccessGrid applications all begin  with #!/usr/bin/python so they should use whichever python is set as  the default with update-alternatives.</p>
</blockquote><br/>
<p>I just tried this myself on a karmic system which already has  python2.6 - first install python2.5 using apt-get or synaptic etc.<br/>
Then add both versions to the alternatives framework:<br/>
sudo update-alternatives --install /usr/bin/python python /usr/ bin/python2.5 20<br/>
sudo update-alternatives --install /usr/bin/python python /usr/ bin/python2.6 10</p>
<p>Because 2.5 was given a higher priority (20 compared with 10)  python2.5 will now be the default.</p>
<p>Now run a VenueServer and VenueClient - the data upload works perfectly.</p>
<p>Just to confirm 2.6 bad behaviour, run:<br/>
sudo update-alternatives --configure python<br/>
and select python2.6 to be the new default. Now run a new VenueServer  and VenueClient - the data upload is broken.</p>
<br/>
<p>Unfortunately Lucid seems to have only pythons 2.6 and 3.1 so can't do  the same comparison there.</p>
<br/>
<p>chris</p>
<br/>
<blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>To protect the other services your server is providing, you would  want to check that those services are able to run OK in the  different python environment.</p>
<br/>
<blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>Thanks again for your help about differenciate rolles, I'll try as  soon as possible :).</p>
<p>It's possible to "work" with the Server? I would like to have a DB  (sqlite?) for manage Tests (tests, students, etc) and it should be  on the Server due to concurrency issues. So, the shared application  should send the data to the server and, then, it insert this data  (or manipulate) to the DB.</p>
</blockquote><br/>
<p>There is a sqlite3 module for python so your idea would probably  work OK. See:<br/>
<a href="http://docs.python.org/library/sqlite3.html" target="_blank">http://docs.python.org/library/sqlite3.html</a></p>
<br/>
<p>chris</p>
<br/>
<blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>El dia 17 may 2010 13:10, Christoph Willing &lt;c.willing@uq.edu.au&gt;  escribi&oacute;:<br/>
On 17/05/2010, at 6:41 AM, Jesus Cea Oliva wrote:</p>
<p>Hi list!</p>
<p>Firstly, any news about file uploading and sent/recive events? :P.  I have a virtual machine with Fedora 10 and there works all fine,  so, I'm working with this machine now.</p>
<p>The fact that Fedora 10 uses python2.5 (and works correctly)  supports someone's idea that this is problem is related to the  python version being used; so far, all known non-working cases use  python2.6.</p>
<br/>
<p>Well, we are doing some Shared Applications for our project, like a  PDF Viewer or, now, I'm developing an application for create  evaluation tests and, later, do them.</p>
<p>I need to differenciate two "roles" for my applications: the  "creator", I mean, the participant that "invokes" a Shared  Application; and the "viewer" or something like this, I mean, the  participant that receive the invitation of a Shared Application.  (sorry for the roles name xD)</p>
<p>I would like to show differents windows for this roles. For  example, on the evaluation tests designer; the application shows to  the creator (a teacher, for example) a form to design a evaluation  test. However, if the participant is the "viewer" (a student, for  example), the application shows a evaluation test designed.</p>
<p>On others Shared application, I would like to differenciate this  roles. It this possible?. How?</p>
<p>I suggest you have a look at AccessGrid/AppMonitor.py - it shows  how to join a Shared App., obtain its state and then its  description. This description seems to include the name of whoever  started the app - as is shown if you right click-&gt;Open Monitor on  any shared app. In your applications, if your own profile's name  matches that of the app's creator then you would consider yourself  the teacher, otherwise a student.</p>
<br/>
<p>chris</p>
<br/>
<p>Christoph Willing +61 7 3365 8316<br/>
QCIF Access Grid Manager<br/>
University of Queensland</p>
</blockquote><p>Christoph Willing                       +61 7 3365 8316<br/>
QCIF Access Grid Manager<br/>
University of Queensland</p>
</blockquote><p>Christoph Willing                       +61 7 3365 8316<br/>
QCIF Access Grid Manager<br/>
University of Queensland</p>
</blockquote><p>&nbsp;</p>
</body>
</html>