Eclipse Pydev update error ?
Does anyone know why this error is occurring in my Eclipse Pydev update ? An error occurred while collecting items to be installed No repository found containing: org.python.pydev/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.ast/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.core/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.debug/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.feature/org.eclipse.update.feature/1.4.7.2843 No repository found containing: org.python.pydev.help/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.jython/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.parser/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.refactoring/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.templates/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.customizations/osgi.bundle/1.4.7.2843 Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: Eclipse Pydev update error ?
On Fri, 2009-07-24 at 16:43 -0300, Fabio Zadrozny wrote: On Fri, Jul 24, 2009 at 4:17 PM, Linuxguy123linuxguy...@gmail.com wrote: Does anyone know why this error is occurring in my Eclipse Pydev update ? An error occurred while collecting items to be installed No repository found containing: org.python.pydev/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.ast/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.core/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.debug/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.feature/org.eclipse.update.feature/1.4.7.2843 No repository found containing: org.python.pydev.help/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.jython/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.parser/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.refactoring/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.templates/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.customizations/osgi.bundle/1.4.7.2843 This usually happens if there was some connection error during the update. You can try other mirrors (see: http://pydev.blogspot.com/2009/07/pydev-147-released.html for the new added mirrors). Excellent reply. Thanks. I added http://fabioz.com/pydev/updates to my site list and the update completed immediately. I'll bookmark the blog as well. Thanks again. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python servlet for Java applet ?
On Thu, 2009-04-30 at 14:06 +0200, Piet van Oostrum wrote: Well, for a start, in the Python world the word 'servlet' isn't used much. So I assume it comes from your Java legacy and you actually mean 'any server-side python script' (in webware they use the term 'servlet', however). snip I agree that servlet isn't a Python term. I should have put it in quotes. Your reply was very instructive. Thanks for taking the time to post it. I am probably going to build my servlet as a simple Python socket service. LG -- http://mail.python.org/mailman/listinfo/python-list
Re: Python servlet for Java applet ?
On Wed, 2009-04-29 at 15:37 +0200, Marco Bizzarri wrote: On Wed, Apr 29, 2009 at 3:14 PM, Linuxguy123 linuxguy...@gmail.com wrote: How does one connect the servlet to the applet ? Does anyone know of an example program that demonstrates a Python servlet with a Java applet ? Thanks ! Ok, let's make some basic questions: 1) do you know how to program an applet in order to invoke an URL on a server? I know how to invoke a URL with an application. I assume its the same doing it with an applet. 2) do you know how to program a server in order to answer to HTTP requests? I've got a good idea how to do that. I thought that applets weren't allowed to access URLs directly. If they can, this problem becomes trivial. Thanks for the reply. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python servlet for Java applet ?
On Sat, 2009-04-25 at 02:00 +0200, Piet van Oostrum wrote: Linuxguy123 linuxguy...@gmail.com (L) wrote: L Hi guys. L Is there a way to use a python application as the back end (ie rpc) for L a Java based applet ? Yes, you can use Corba, XMLRPC, SOAP, JSON-RPC. Corba probably will have to be tunnelled through port 80 (the others already do this by default because they are based on HTTP). L How does it work compared to a Java servlet with a Java applet ? With a Java applet communicating with a Java servlet you also have the option of using RMI. For the rest it is similar. How does one connect the servlet to the applet ? Does anyone know of an example program that demonstrates a Python servlet with a Java applet ? Thanks ! -- http://mail.python.org/mailman/listinfo/python-list
Python servlet for Java applet ?
Hi guys. Is there a way to use a python application as the back end (ie rpc) for a Java based applet ? How does it work compared to a Java servlet with a Java applet ? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Why doesn't this work ? For loop variable scoping ?
Hi people. I've got a small piece of code that I don't understand. Basically, a variable inside an if statement inside a for loop doesn't seem to be updating. Is this a scope issue ? Thanks Code segment: snip # run through the cycle and calculate the temperature and pressure at each position, ie every 0.5 crankshaft degrees #global newCylinderPressure #global newCylinderTemperature for position in range(1,721): newCylinderPressure = cylinderPressure[position -1] * (cylinderVolume[position -1] / cylinderVolume[position])**1.4 newCylinderTemperature = (cylinderTemperature[position -1] + 459.67) * (cylinderVolume[position -1] / cylinderVolume[position])**0.4 - 459.67 # add 1.0 BTUs of heat to the combustion chamber at TDC, which is position # 360 if position == 360: #calculate the new temperature print newCylinderTemperature deltaTemp = 1.0 / (airMass * Cv) newCylinderTempertature = newCylinderTemperature + deltaTemp print deltaTemp print newCylinderTemperature The output from this code is: 1357.65862978 -- newCylinderTemperature when we enter the if statement 2626.04165688 -- deltaTemp, as it should be 1357.65862978 -- newCylinderTemperature at the end of the if statement, which HASN'T CHANGED. It should be 1357 + 2626 = 3983. Why doesn't it change ? Is there some sort of scope issue here ? -- http://mail.python.org/mailman/listinfo/python-list
How do I declare global vars or class vars in Python ?
How do I do this in Python ? # declare A,B function getA return A function getB return B function setA(value) A = value function setB(value) B = value main() getA getB dosomething setA(aValue) setB(aValue) The part I don't know to do is declare the variables, either as globals or as vars in a class. How is this done in Python without setting them to a value ? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Function name limit in Python ?
Excuse my ignorance, but is there a limit to the size of function names in Python ? I named a function getSynclientVersion() and I got an error when I called it. I renamed the same function to getSCVersion() and it called fine. Why ? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Object explorer for python ?
Is there a (stand alone ?) object explorer for python objects such as the PyQt4 collection ? How else could I find out what is in PyQt4.QtCore, .QtGui and .QtWebKit ? Thanks -- http://mail.python.org/mailman/listinfo/python-list
HOWTO for setting up a PyQt project in Eclipse ?
Does anyone know of a HOWTO for setting up a PyQt project in Eclipse ? I know about setting up a PyDev project, just wondering how to integrate the QtDesigner parts. For example, should I save the QtDesigner project in the root PyDev directory ? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Why doesn't this work in Eclipse ? (Simple pexpect code that works in bash)
I'm trying to build a small Python app in Eclipse under Fedora 10. I have the following code: import os import sys import pexpect child = pexpect.spawn('/bin/bash') child.interact() When I run it in Eclipse, I get: Traceback (most recent call last): File /home/xxx/workspace/FixPermissions/src/default/main.py, line 56, in module child.interact() File /usr/lib/python2.5/site-packages/pexpect.py, line 1489, in interact mode = tty.tcgetattr(self.STDIN_FILENO) termios.error: (22, 'Invalid argument') Yet if I run it in a bash shell, it works: $ python Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38) [GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2 Type help, copyright, credits or license for more information. import os import sys import pexpect child = pexpect.spawn('/bin/bash') child.interact() [...@localhost ~]$ ls outputs file list here... [...@localhost ~]$ exit Why doesn't it run under Eclipse and how do I fix it so it does ? Thanks -- http://mail.python.org/mailman/listinfo/python-list
libsudo ?
Does anyone know where I would find libsudo ? If you had the choice of using pexpect or libsudo, which would you use ? Thanks -- http://mail.python.org/mailman/listinfo/python-list
How do I get my python program to get the root password ?
I want to make a python program that I can run as a normal user that changes the permission on some device files. It will need to ask me for the root password and then run chown as root in order to do this. How do I accomplish this (easily) ? Thanks -- http://mail.python.org/mailman/listinfo/python-list
I'm a python addict !
I just started using python last week and I'm addicted. I hate Perl. I never did learn to use it with any competence. I has to be the most obfuscated, cryptic language I've ever seen. Making it object oriented only makes it worse ! While I am at it, I dislike bash shell programming too. Man, I love Python ! Its so clean and easy to use. Its so complete. It links into everything one way or another... Java, C, C++, Qt, KDE, SWT, Swing and probably more things that I don't know about. Python makes sense. Python is readable. I will never write another Perl or Bash script again. I will never use another low level language to do simple things again. I love how Python has object member lists in PyDev in Eclipe. It makes it easy to use and explore the language and objects. I wrote a simple command line serial emulator in about 10 minutes using the PySerial library. Unbelievable. I see a lot of Python in my future. -- http://mail.python.org/mailman/listinfo/python-list
PyQt4 on Windows ?
What does it take to get a PyQt4 application running on a Windows machine ? I'm sorry if this is a redundant question, but I've searched this and I am not finding a comprehensive answer. If anyone is running a PyQt4 application on a Windows (XP or Vista) machine, I'd love to know how it works for you and how extensive the application is and how much of the Qt library it uses. Thanks -- http://mail.python.org/mailman/listinfo/python-list