From python-uk at zorinholdings.com Mon Jul 7 16:56:18 2008 From: python-uk at zorinholdings.com (Matthew) Date: Mon, 07 Jul 2008 15:56:18 +0100 Subject: [python-uk] Peloton distributed service application platform Message-ID: <48722E92.3000903@zorinholdings.com> Hello This mail is slightly off-topic but sent to this list as there are people I know who were interested in the Peloton project (an open version of the kind of system discussed in my 'Twisted Movies' talk at PyCon UK 2007) whose details I have been careless enough to loose. Below is a link to a mail out on the twisted mailing list about Peloton. The project site is http://www.peloton-grid.net I hope this reaches a few more people who I was unable to contact previously! The Twisted mailout: http://twistedmatrix.com/pipermail/twisted-python/2008-July/018034.html Regards Matthew From ankur at techlightenment.com Thu Jul 17 12:19:25 2008 From: ankur at techlightenment.com (Ankur Shah) Date: Thu, 17 Jul 2008 11:19:25 +0100 Subject: [python-uk] Socialistics Jobs Message-ID: <487F1CAD.2030302@techlightenment.com> Hi All, We're looking for some Python supremos to help us with our product. We're developing a product based on semantic analysis, search and social networking. Looking ideally for two developers, with decent experience in using Python in the past few years, including desktop development. In addition, the GUI is being developed in wx. We're based in Shoreditch. Are well backed in terms of funding. And are working with some of the leading people in our industry. Salary is dependant upon experience and we're looking for someone to start as soon as possible. Would love to hear from you, if you're interested. Yours, Ankur Socialistics From suhailsqm at gmail.com Mon Jul 21 16:38:26 2008 From: suhailsqm at gmail.com (suhail shaik) Date: Mon, 21 Jul 2008 15:38:26 +0100 Subject: [python-uk] invalid syntax Message-ID: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> hi ... ################## #!/usr/bin/python #Globals here ROOTDIR = "/home/qmss2/Desktop/sbd/hive2_ffmpegsvn/" # Root dir where ts files are located (or recorded) PNAME = "/data/test/" #DAILY_UPLOAD_PATH = "/mmis-ss9952/newsroom/du-dev/" import os,glob ### MAIN ### os.chdir(ROOTDIR) os.mkdir("kf") os.chdir(PNAME) for fileName in glob.glob('*.mpg'): print filename file = fileName.split(".") print file os.chdir(ROOTDIR+"/kf") os.mkdir(file) command = "./hive2 -k kf/"+file+"/ -o "+file+".xml /data/test/"+fileName print command os.system(command) ################# i get the following error... File "/home/qmss2/Desktop/sbd/mpg.py", line 13, in print filename NameError: name 'filename' is not defined Please suggest me i am trying to read all the .mpg files from a directory.. thanks in advance ...please urgent help.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at timgolden.me.uk Mon Jul 21 16:42:38 2008 From: mail at timgolden.me.uk (Tim Golden) Date: Mon, 21 Jul 2008 15:42:38 +0100 Subject: [python-uk] invalid syntax In-Reply-To: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> References: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> Message-ID: <4884A05E.7020301@timgolden.me.uk> [You'll get a better audience on the main Python list. This list is mostly used for UK-specific stuff like meetups, job openings etc.] suhail shaik wrote: > hi ... > > ################## > #!/usr/bin/python > #Globals here > ROOTDIR = "/home/qmss2/Desktop/sbd/hive2_ffmpegsvn/" # Root dir where ts > files are located (or recorded) > PNAME = "/data/test/" > #DAILY_UPLOAD_PATH = "/mmis-ss9952/newsroom/du-dev/" > > import os,glob > ### MAIN ### > os.chdir(ROOTDIR) > os.mkdir("kf") > os.chdir(PNAME) > for fileName in glob.glob('*.mpg'): > print filename > > file = fileName.split(".") > print file > os.chdir(ROOTDIR+"/kf") > os.mkdir(file) > command = "./hive2 -k kf/"+file+"/ -o "+file+".xml /data/test/"+fileName > print command > os.system(command) > > ################# > > i get the following error... > > File "/home/qmss2/Desktop/sbd/mpg.py", line 13, in > print filename > NameError: name 'filename' is not defined Python is a case-sensitive language. You can' say "for fileName in..." in one line and then refer to "filename" in the next. Even apart from the other problems you're going to have when you realise that file is a list (and that you're shadowing a builtin name). TJG From connorsml at gmail.com Mon Jul 21 16:43:15 2008 From: connorsml at gmail.com (Michael Connors) Date: Mon, 21 Jul 2008 16:43:15 +0200 Subject: [python-uk] invalid syntax In-Reply-To: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> References: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> Message-ID: > > for fileName in glob.glob('*.mpg'): > print filename > > > Variable names are case sensitive. -- Michael Connors -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at timgolden.me.uk Mon Jul 21 16:53:38 2008 From: mail at timgolden.me.uk (Tim Golden) Date: Mon, 21 Jul 2008 15:53:38 +0100 Subject: [python-uk] invalid syntax In-Reply-To: <4884A05E.7020301@timgolden.me.uk> References: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> <4884A05E.7020301@timgolden.me.uk> Message-ID: <4884A2F2.2040004@timgolden.me.uk> Tim Golden wrote: > Python is a case-sensitive language. You can' say "for fileName in..." > in one line and then refer to "filename" in the next. Ooops. You *can't* say "for fileName in..." in one line and "filename" in the next. TJG From rshields at ucla.edu Mon Jul 21 16:54:04 2008 From: rshields at ucla.edu (Robin Shields) Date: Mon, 21 Jul 2008 15:54:04 +0100 Subject: [python-uk] invalid syntax In-Reply-To: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> References: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> Message-ID: I'm not sure this is the right place for your question, but check how you capitalised "filename" - in one case you used "fileName" and then called "print filename" - because it is all lowercase this variable is undefined, can't be printed, and you get an error. You would probably have better luck posting this kind of question on a python support forum (e.g. http://bytes.com). On Mon, Jul 21, 2008 at 3:38 PM, suhail shaik wrote: > hi ... > > ################## > #!/usr/bin/python > #Globals here > ROOTDIR = "/home/qmss2/Desktop/sbd/hive2_ffmpegsvn/" # Root dir where ts > files are located (or recorded) > PNAME = "/data/test/" > #DAILY_UPLOAD_PATH = "/mmis-ss9952/newsroom/du-dev/" > > import os,glob > ### MAIN ### > os.chdir(ROOTDIR) > os.mkdir("kf") > os.chdir(PNAME) > for fileName in glob.glob('*.mpg'): > print filename > > file = fileName.split(".") > print file > os.chdir(ROOTDIR+"/kf") > os.mkdir(file) > command = "./hive2 -k kf/"+file+"/ -o "+file+".xml > /data/test/"+fileName > print command > os.system(command) > > ################# > > i get the following error... > > File "/home/qmss2/Desktop/sbd/mpg.py", line 13, in > print filename > NameError: name 'filename' is not defined > > > Please suggest me i am trying to read all the .mpg files from a directory.. > > thanks in advance ...please urgent help.. > > > > > _______________________________________________ > python-uk mailing list > python-uk at python.org > http://mail.python.org/mailman/listinfo/python-uk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From suhailsqm at gmail.com Mon Jul 21 17:00:14 2008 From: suhailsqm at gmail.com (suhail shaik) Date: Mon, 21 Jul 2008 16:00:14 +0100 Subject: [python-uk] invalid syntax In-Reply-To: References: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> Message-ID: <44e9dc820807210800l38b5b1et4b91b5e8643e8ab3@mail.gmail.com> thanks silly me...it was of great help. On 7/21/08, Michael Connors wrote: > > > >> for fileName in glob.glob('*.mpg'): >> print filename >> >> >> Variable names are case sensitive. > -- > Michael Connors > > _______________________________________________ > python-uk mailing list > python-uk at python.org > http://mail.python.org/mailman/listinfo/python-uk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at hexten.net Mon Jul 21 16:41:49 2008 From: andy at hexten.net (Andy Armstrong) Date: Mon, 21 Jul 2008 15:41:49 +0100 Subject: [python-uk] invalid syntax In-Reply-To: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> References: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> Message-ID: On 21 Jul 2008, at 15:38, suhail shaik wrote: > ################## > #!/usr/bin/python > #Globals here > ROOTDIR = "/home/qmss2/Desktop/sbd/hive2_ffmpegsvn/" # Root dir > where ts files are located (or recorded) > PNAME = "/data/test/" > #DAILY_UPLOAD_PATH = "/mmis-ss9952/newsroom/du-dev/" > > import os,glob > ### MAIN ### > os.chdir(ROOTDIR) > os.mkdir("kf") > os.chdir(PNAME) > for fileName in glob.glob('*.mpg'): > print filename > > file = fileName.split(".") > print file > os.chdir(ROOTDIR+"/kf") > os.mkdir(file) > command = "./hive2 -k kf/"+file+"/ -o "+file+".xml /data/ > test/"+fileName > print command > os.system(command) > > ################# > > i get the following error... > > File "/home/qmss2/Desktop/sbd/mpg.py", line 13, in > print filename > NameError: name 'filename' is not defined Variables are case sensitive - so fileName and filename are not the same thing. -- Andy Armstrong, Just Another Perl Hacker :) From theology at gmail.com Mon Jul 21 17:08:12 2008 From: theology at gmail.com (Zeth) Date: Mon, 21 Jul 2008 16:08:12 +0100 Subject: [python-uk] invalid syntax In-Reply-To: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> References: <44e9dc820807210738k53771991qde92d5e0f034c61a@mail.gmail.com> Message-ID: In addition to what others have said, 2008/7/21 suhail shaik : > command = "./hive2 -k kf/"+file+"/ -o "+file+".xml /data/test/"+fileName > print command > os.system(command) Whatever you are trying to do here, you might want to try doing purely in Python instead of mixing in shell. Doing it all in Python will make your script more likely to work cross-platform. From leo_365 at yahoo.com Tue Jul 22 12:18:05 2008 From: leo_365 at yahoo.com (leo davis) Date: Tue, 22 Jul 2008 03:18:05 -0700 (PDT) Subject: [python-uk] automate logging Message-ID: <678720.43042.qm@web51805.mail.re2.yahoo.com> Hello, I'm trying to write a code to automate logging into a website.I have chosen the forum 'www.tek-tips.com' as an example and tried this script on it....But it doesnt seem to work...What am i missing here..plz help Code:import urllib2 theurl = 'www.tek-tips.com' protocol = 'http://' username = 'johnny' password = 'yesyes' passman = urllib2.HTTPPasswordMgrWithDefaultRealm() # this creates a password manager passman.add_password(None, theurl, username, password) # because we have put None at the start it will always # use this username/password combination for urls # for which `theurl` is a super-url authhandler = urllib2.HTTPBasicAuthHandler(passman) # create the AuthHandler opener = urllib2.build_opener(authhandler) urllib2.install_opener(opener) # All calls to urllib2.urlopen will now use our handler # Make sure not to include the protocol in with the URL, or # HTTPPasswordMgrWithDefaultRealm will be very confused. # You must (of course) use it when fetching the page though. pagehandle = urllib2.urlopen(protocol + theurl) # authentication is now handled automatically for us the_page=pagehandle.read() print the_page -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at timgolden.me.uk Tue Jul 22 14:00:06 2008 From: mail at timgolden.me.uk (Tim Golden) Date: Tue, 22 Jul 2008 13:00:06 +0100 Subject: [python-uk] automate logging In-Reply-To: <678720.43042.qm@web51805.mail.re2.yahoo.com> References: <678720.43042.qm@web51805.mail.re2.yahoo.com> Message-ID: <4885CBC6.8000306@timgolden.me.uk> leo davis wrote: > I'm trying to write a code to automate logging into a website.I have > chosen the forum 'www.tek-tips.com' as an example and tried this script > on it....But it doesnt seem to work...What am i missing here..plz help You'll get more help by posting to the main Python groups[1]. But you're very unlikely to get helpful responses on any group unless you say something more than "it doesn't seem to work". What doesn't work? Is there a syntax error? Does it hang? Is there a traceback? If so: dump it into the email. Does it crash your system? TJG [1] http://mail.python.org/mailman/listinfo/python-list From jjl at pobox.com Tue Jul 22 20:51:20 2008 From: jjl at pobox.com (John J Lee) Date: Tue, 22 Jul 2008 19:51:20 +0100 (BST) Subject: [python-uk] automate logging In-Reply-To: <678720.43042.qm@web51805.mail.re2.yahoo.com> References: <678720.43042.qm@web51805.mail.re2.yahoo.com> Message-ID: On Tue, 22 Jul 2008, leo davis wrote: > Hello, > > I'm trying to write a code to automate logging into a website.I have > chosen the forum 'www.tek-tips.com' as an example and tried this script > on it....But it doesnt seem to work...What am i missing here..plz help You should provide the Holy Trinity of bug reports (in this case, a bug in your own code): - What you did (check) - What happened (missing) - What you expected to happen (missing) Whenever you think the answer to one of these questions is obvious, you're probably wrong. John From funthyme at gmail.com Wed Jul 23 14:14:33 2008 From: funthyme at gmail.com (John Pinner) Date: Wed, 23 Jul 2008 13:14:33 +0100 Subject: [python-uk] Python training in London In-Reply-To: <48171A86.8020106@resolversystems.com> References: <48171A86.8020106@resolversystems.com> Message-ID: At last we have arranged a scheduled training course in London. The first one takes place from 18th to 20th August and is centrally located on Russell Square, near Russell Square tube station. Details at http://www.linuxemporium.co.uk/products/training/python_for_programmers Best wishes, John -- 2008/4/29 Giles Thomas : > Hi there, > > Some of our clients have been asking us about Python training in London, in > particular for financial markets. Does anyone on this list have experience > training quants and similar non-developer but still tech-savvy people in > Python programming? > > > Regards, > > Giles > > -- > Giles Thomas > MD & CTO, Resolver Systems Ltd. > giles.thomas at resolversystems.com > +44 (0) 20 7253 6372 > > Try out Resolver One! > (Free registration required) > > 17a Clerkenwell Road, London EC1M 5RD, UK > VAT No.: GB 893 5643 79 Registered in England and Wales as company number > 5467329. > Registered address: 843 Finchley Road, London NW11 8NA, UK > > > _______________________________________________ > python-uk mailing list > python-uk at python.org > http://mail.python.org/mailman/listinfo/python-uk > From fuzzyman at voidspace.org.uk Wed Jul 23 22:23:10 2008 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Wed, 23 Jul 2008 21:23:10 +0100 Subject: [python-uk] Talk on IronPython and Silverlight Tomorrow Evening, Thoughttworks London Message-ID: <4887932E.7050801@voidspace.org.uk> Hello all, Sorry for the late notice, I should have posted this earlier. Tomorrow I'm giving a talk on IronPython and Silverlight at the Thoughtworks Geek Night (London). It's open to all and I'd love some Python company! Details here: Upcoming: http://upcoming.yahoo.com/event/498227/ Wiki: http://londongeeknights.wetpaint.com/ Wiki page for event: http://londongeeknights.wetpaint.com/page/Iron+Python+Night Michael Foord -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/ http://www.trypython.org/ http://www.ironpython.info/ http://www.theotherdelia.co.uk/ http://www.resolverhacks.net/ From miles at jamkit.com Thu Jul 24 13:06:57 2008 From: miles at jamkit.com (Miles) Date: Thu, 24 Jul 2008 12:06:57 +0100 Subject: [python-uk] Junior Python Developer Position Message-ID: Hi, We're looking for a python developer to join our team and work on large open-source web projects for leading clients. We are a fast-growing web development company, specialising in usable and accessible open-source web solutions for the not-for-profit and public sector. Requirements: + learn new skills and technologies quickly; + enjoy the challenge of analysing and solving complex problems; + knowledge of website production, including SQL and HTML/CSS/JS; + familiarity with linux/shell/version control etc. Ideally, you will have some experience of web development and production, and be able to demonstrate projects that you have worked on (not necessarily in python). Deep knowledge and experience of python is not a must, but an interest and aptitude to learn is key. Knowledge/experience of Zope or Plone is also a bonus. This is a full-time position; please feel free to contact me if you require any further information. Miles From simon at apricotwebsolutions.co.uk Thu Jul 24 14:35:19 2008 From: simon at apricotwebsolutions.co.uk (Simon) Date: Thu, 24 Jul 2008 13:35:19 +0100 Subject: [python-uk] Junior Python Developer Position In-Reply-To: References: Message-ID: Hello Miles This sounds very interesting. Is that an in house opportunity or is it posable to work from home? Simon On 24 Jul 2008, at 12:06, Miles wrote: > Hi, > > We're looking for a python developer to join our team and work on > large open-source web projects for leading clients. > > We are a fast-growing web development company, specialising in > usable and accessible open-source web solutions for the not-for- > profit and public sector. > > Requirements: > + learn new skills and technologies quickly; > + enjoy the challenge of analysing and solving complex problems; > + knowledge of website production, including SQL and HTML/CSS/JS; > + familiarity with linux/shell/version control etc. > > Ideally, you will have some experience of web development and > production, and be able to demonstrate projects that you have worked > on (not necessarily in python). Deep knowledge and experience of > python is not a must, but an interest and aptitude to learn is key. > Knowledge/experience of Zope or Plone is also a bonus. > > This is a full-time position; please feel free to contact me if you > require any further information. > > Miles > > _______________________________________________ > python-uk mailing list > python-uk at python.org > http://mail.python.org/mailman/listinfo/python-uk From theology at gmail.com Sun Jul 27 16:46:33 2008 From: theology at gmail.com (Zeth) Date: Sun, 27 Jul 2008 15:46:33 +0100 Subject: [python-uk] PyCon UK 2008 update: Tutorials and Talk Abstracts Message-ID: Hello everyone, A quick update about PyCon UK 2008, the UK's dedicated Python Conference which is being held on the 12th to the 14th of September 2008. The timetable for the tutorials day has now been published: http://www.pyconuk.org/timetable.html The abstracts of currently accepted talks, tutorials and BOFs can be found at http://www.pyconuk.org/talk_abstracts.html The early bird rate is still open (but not for too much longer): http://www.pyconuk.org/booking.html Best Wishes, PyCon UK Committee From rakesh.thakrar at gmail.com Thu Jul 31 23:20:51 2008 From: rakesh.thakrar at gmail.com (Rakesh Thakrar) Date: Thu, 31 Jul 2008 22:20:51 +0100 Subject: [python-uk] Python Contractor required Message-ID: <40a44b660807311420o38b13f78na4ae06b858ffe8fe@mail.gmail.com> Hi All, An opportunity for a talented Python Software Engineer has arisen to join a company which is currently going through a phase of rapid expansion. Candidates must have excellent software development skills to join an established team within this small company with offices in the U.K. and U.S. An ideal candidate will be familiar with Linux, have a passion for working with OpenSource software and a flair for creating innovative solutions to complex problems. The candidate will be a self motivated, flexible software engineer working within the existing I.T. Team. The day to day role will almost exclusively focus on new projects. *Key elements of the role include* l Work closely with the I.T. team and business managers to aid the design and implementation of a new web based application for our customers and data processing engine. l Work closely with the application design team to understand, agree, plan and develop the new application. l Assess software requirements and assist with the project planning stage. l Design, code and test various software elements in both Windows and Linux based environments. l Ability to train and mentor other members of the software development team. l Experience of working within a development team using source control and collaborative tools such as Subversion, CVS, Trac, etc. l Providing required documentation (specifications, test plans, processes, etc). This is a 6-12 month contract based near Portsmouth in Hampshire UK . Please do not hesitate to contact me for further information. Regards Rakesh -------------- next part -------------- An HTML attachment was scrubbed... URL: